For example:
Code: Select all
1. This is a Heading
this is some text
Code: Select all
a. next HeadingRegards
Chrow
Code: Select all
1. This is a Heading
this is some text
Code: Select all
a. next HeadingSorry about that. Yes, that @ symbol should be removed. It should just be "undefined".Chrow wrote:But I can't seem to get rid of those two warnings at the beginning:
first one: unknown path of @undefined
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 doingChrow wrote: second one: attempt to define variable with a command that doesn't return a value
(loosely translated from german version)
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: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.
Code: Select all
Note.insertFootnoteInTextAtIndex text, charIndex, [noteContent]Well, actually I just wrote a macro for this because I'm lazyChrow wrote:I thought that there might be a possibility without macros or I'd have at least tried to code it myself.![]()