Re: [NTG-context] \startcomment...\stopcomment with XML processing

2017-06-25 Thread Pablo Rodriguez
On 06/25/2017 12:18 PM, Hans Hagen wrote: > On 6/24/2017 10:53 PM, Pablo Rodriguez wrote: >> [...] >> I don’t know why I cannot get \startcomment...\stopcomment with >> \xmlpure{#1}. >> >> This is the only way I have to get lines and spaces in comments. &

Re: [NTG-context] \startcomment...\stopcomment with XML processing

2017-06-25 Thread Hans Hagen
} {pre[contains(@class,'copy\letterpercent-code')]/code} {xml:copy:code} \stopxmlsetups \xmlregistersetup{xml:initialize} \startxmlsetups xml:doc \xmlflush{#1} \stopxmlsetups \startxmlsetups xml:copy:code %~ \startcomment[location

[NTG-context] \startcomment...\stopcomment with XML processing

2017-06-24 Thread Pablo Rodriguez
} {xml:copy:code} \stopxmlsetups \xmlregistersetup{xml:initialize} \startxmlsetups xml:doc \xmlflush{#1} \stopxmlsetups \startxmlsetups xml:copy:code %~ \startcomment[location=inmargin, color=yellow] %~ \xmlpure{#1

[NTG-context] \startmode and \startcomment inside of \def

2010-11-07 Thread Vedran Miletić
Hi, I would like to define something like this: \def\startSolution{\startmode[solutions]...} \def\stopSolution{...\stopmode} But when I use \startSolution and \stopSolution, and mode solutions isn't enabled, I get something like Runaway argument? aaa \stopSolution \stoptext ! File ended while

Re: [NTG-context] \startmode and \startcomment inside of \def

2010-11-07 Thread Wolfgang Schuster
Am 07.11.2010 um 19:42 schrieb Vedran Miletić: Hi, I would like to define something like this: \def\startSolution{\startmode[solutions]...} \def\stopSolution{...\stopmode} But when I use \startSolution and \stopSolution, and mode solutions isn't enabled, I get something like Runaway

Re: [NTG-context] \startmode and \startcomment inside of \def

2010-11-07 Thread Vedran Miletić
2010/11/7 Wolfgang Schuster schuster.wolfg...@googlemail.com Am 07.11.2010 um 19:42 schrieb Vedran Miletić: Hi, I would like to define something like this: \def\startSolution{\startmode[solutions]...} \def\stopSolution{...\stopmode} But when I use \startSolution and

Re: [NTG-context] \startmode and \startcomment inside of \def

2010-11-07 Thread Wolfgang Schuster
Am 07.11.2010 um 20:49 schrieb Vedran Miletić: How would I then do something like this? \def\startSolution{\startmode[solutions]\startframedtext} \def\stopSolution{\stopframedtext\stopmode} \startmode[solution] \setupbuffer[Solution][local=no,before=\startframedtext,after=\stopframedtext]

Re: [NTG-context] \startmode and \startcomment inside of \def

2010-11-07 Thread Aditya Mahajan
On Sun, 7 Nov 2010, Wolfgang Schuster wrote: Am 07.11.2010 um 20:49 schrieb Vedran Miletić: How would I then do something like this? \def\startSolution{\startmode[solutions]\startframedtext} \def\stopSolution{\stopframedtext\stopmode} \startmode[solution]