On Thu, 6 Dec 2012, Marco Patzer wrote:
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}
Untested: Does \unexpanded\def\cmdSecond ... help?
\starttext \startfirst first %% not printed \stopfirst \startsecond second %% printed twice \stopsecond \stoptext
Aditya
___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki! maillist : [email protected] / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________
