![](https://secure.gravatar.com/avatar/27c34cb91f1e92bd850fe60b3d9ef336.jpg?s=120&d=mm&r=g)
6 Dec
2012
6 Dec
'12
10:38 p.m.
Am 06.12.2012 um 21:24 schrieb Marco Patzer
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