On 2012–12–06 Otared Kavian wrote:
It seems that your command \cmd places again the content…
That's not the case. Check this example: \usemodule [annotation] \defineannotation [first] [alternative=command, command=\cmdFirst] \defineannotation [second] [alternative=command, command=\cmdSecond] \def\cmdFirst{} \def\cmdSecond {\placeannotationcontent} \starttext \startfirst first %% not printed \stopfirst \startsecond second %% printed twice \stopsecond \stoptext
Why do you want that command?
??? It allows for flexible placement of the content.
This works fine:
\usemodule [annotation] \defineannotation [myannotation]
\starttext \startmyannotation foo
\input knuth.tex \stopmyannotation \stoptext
Try to use a custom command. Marco