Re: [NTG-context] \stopbuffer in macro

2005-06-02 Thread Peter Münster
On Tue, 31 May 2005, Hans Hagen wrote: \definebuffer[crap] \setupbuffer[crap][before=\blank\bgroup here we start,after=and here we end\egroup\blank] [...] Hello Hans and Taco, thank you for your hints, but I think, I did not explain my question well enough... I fact, all I need is to

Re: [NTG-context] \stopbuffer in macro

2005-06-02 Thread Taco Hoekwater
This should help: \def\startLST[#1]% {\def\stopLST{End of #1}% \dostartbuffer[LST][startLST][stopLST]} This is almost the same as: \definebuffer[LST] \def\stopLST{End of LST} Except that it is a little bit more low-level and thereby allows an argument to \startLST. Using a

Re: [NTG-context] \stopbuffer in macro

2005-06-02 Thread Hans Hagen
I once made the option \usememorybuffers but i'm not sure if it does the same Taco Hoekwater wrote: This should help: \def\startLST[#1]% {\def\stopLST{End of #1}% \dostartbuffer[LST][startLST][stopLST]} This is almost the same as: \definebuffer[LST]

Re: [NTG-context] \stopbuffer in macro

2005-05-30 Thread Hans Hagen
Peter Münster wrote: Hello, how could I build some macros, that make usage of \startbuffer and \stopbuffer? Example: \def\startXXX[#1]{\doSomeMagicSetups{#1}% \startbuffer[...]} \def\stopXXX{\stopbuffer \doSomeSpecialWorkHere} And then: \startXXX[some options] some text \stopXXX