Re: [NTG-context] \stopbuffer in macro

2005-06-03 Thread Peter Münster
On Thu, 2 Jun 2005, Taco Hoekwater wrote: > This should help: > >\def\startLST[#1]% > {\def\stopLST{End of #1}% > \dostartbuffer[LST][startLST][stopLST]} Thank you very very much!! This can be the base for some really nice modules, that I'm going to write. Of course, I'll put them

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] \def\stopLST{En

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 lo

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 k

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 \definebu

Re: [NTG-context] \stopbuffer in macro

2005-05-30 Thread Taco Hoekwater
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 I hope thi