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
___________________________________________________________________________________
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
___________________________________________________________________________________