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}} @Hans: \scrn_comment_start_indeed is defined twice \def\scrn_comment_start_indeed {\doifelse{\commentparameter\c!state}\v!start {\scrn_comment_start_indeed} {\scrn_comment_start_ignore}} \def\scrn_comment_start_indeed[#title][#settings]% {\bgroup \doifassignmentelse{#title} {\setupcurrentcomment[\currentcomment][#title]} {\setupcurrentcomment[\currentcomment][\c!title=#title,#settings]}% \def\scrn_comment_stop{\scrn_comment_inject\egroup}% \grabbufferdatadirect\v!comment{\e!start\currentcomment}{\e!stop\currentcomment}} Wolfgang