Am 06.12.2012 um 21:24 schrieb Marco Patzer <[email protected]>:

> In the following example the content of the annotation is printed
> twice. Bug?
> 
> \usemodule [annotation]
> 
> \defineannotation
>  [myannotation]
>  [alternative=command,
>   command=\cmd]
> 
> \def\cmd
>  {\placeannotationcontent}

The argument for the command keys has to be a macro with two parameters,
the first parameters contains the formatted header and the second argument
the formatted content of the environment.

You have to change your definition of \cmd to

  \define[2]\cmd{#2}

or

  \define[2]\cmd{\placeannotationcontent}

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

Reply via email to