Wolfgang Schuster <schuster.wolfg...@googlemail.com> writes:

> Am 03.02.2012 um 10:13 schrieb Marco Pessotto:
>
>> This is better, as the compilation doesn't fail and the comment appears
>> as comment, but on the page there is a literal "[title=,]" (in the first
>> example) or "[title=commentname,]" in the second and third example.
>
> scrn-wid.mkvi
>
> \def\scrn_comment_start_indeed[#title][#settings]%
>   {\bgroup
>    \doifassignmentelse{#title}
> -    {\setupcurrentcomment[\currentcomment][#title]}
> -    {\setupcurrentcomment[\currentcomment][\c!title=#title,#settings]}%
> +    {\setupcurrentcomment[#title]}
> +    {\setupcurrentcomment[\c!title=#title,#settings]}%
>    \def\scrn_comment_stop{\scrn_comment_inject\egroup}%
>    
> \grabbufferdatadirect\v!comment{\e!start\currentcomment}{\e!stop\currentcomment}}
>

Tested and works like a charm. Thanks a lot.
Best wishes

-- 
Marco
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / 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