Chrow wrote:But I can't seem to get rid of those two warnings at the beginning:
first one: unknown path of @undefined
Sorry about that. Yes, that @ symbol should be removed. It should just be "undefined".
Chrow wrote:
second one: attempt to define variable with a command that doesn't return a value
(loosely translated from german version)
That is the 'border' case. It happens if you try to run the macro without any previous heading. For that you really have to decide what kind of behavior you want from the macro. I generally prefer a 'light' style, where I don't make the macros 'idiot-proof', since I am just using them for myself, and I presumably know what I'm doing

But I have now re-written them so that they (a) insert 'Heading 1', if no previous style is found, and (b) do nothing if there are no heading styles in the document.
I have also changed them and added a single line with the prefix near the beginning of the macro. You can just uncomment the German one (with "Überschrift").
Chrow wrote:
PS: I know this does not belong in here, but since it is my own thread I am gonna misuse it for a second: Does anyone know what the macro-command for "put x in a footnote is?" because I am working on a macro that puts every {...} in the document in a footnote.
There should already be a bunch of macros around that can do this, but, by all means, try writing your own. If you look in the macro reference (in the Help menu), you will find the following:
Code: Select all
Note.insertFootnoteInTextAtIndex text, charIndex, [noteContent]
which will do what you want. If you have any questions, just ask. But perhaps better in a new thread, in the macro forum.
