Re: [NTG-context] Doubled annotation content

2012-12-07 Thread Marco Patzer
On 2012–12–07 Wolfgang Schuster wrote: 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. That's how I used it in the past, but after an update I got an

Re: [NTG-context] Doubled annotation content

2012-12-07 Thread Wolfgang Schuster
Am 07.12.2012 um 10:26 schrieb Marco Patzer home...@lavabit.com: On 2012–12–07 Wolfgang Schuster wrote: 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

Re: [NTG-context] Doubled annotation content

2012-12-07 Thread Marco Patzer
On 2012–12–07 Wolfgang Schuster wrote: Commands need to be unexpandable because when you use the “command”. This is necessary because I check for a command and this needs \unexpanded\def to work. You can create a unexpandable command with \starttexdefintion by adding the unexpanded

[NTG-context] Doubled annotation content

2012-12-06 Thread 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} \starttext \startmyannotation foo \stopmyannotation \stoptext Marco

Re: [NTG-context] Doubled annotation content

2012-12-06 Thread Otared Kavian
Hi Marco, It seems that your command \cmd places again the content… Why do you want that command? This works fine: \usemodule [annotation] \defineannotation [myannotation] \starttext \startmyannotation foo \input knuth.tex \stopmyannotation \stoptext Best regards: OK On 6 déc.

Re: [NTG-context] Doubled annotation content

2012-12-06 Thread Marco Patzer
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,

Re: [NTG-context] Doubled annotation content

2012-12-06 Thread Aditya Mahajan
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

Re: [NTG-context] Doubled annotation content

2012-12-06 Thread Wolfgang Schuster
Am 06.12.2012 um 21:24 schrieb Marco Patzer home...@lavabit.com: 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

Re: [NTG-context] Doubled annotation content

2012-12-06 Thread Wolfgang Schuster
Am 06.12.2012 um 23:00 schrieb Marco Patzer home...@lavabit.com: Why do you want that command? ??? It allows for flexible placement of the content. You can also use \defineannotationalternative to create your own styles, see - http://www.ntg.nl/pipermail/ntg-context/2012/070019.html and