Help on \dostartbuffer needed
Hi, I'm trying to deal with \dostartbuffer. I found an old message on the ML about \dostartbuffer http://www.mail-archive.com/ntg-context@ntg.nl/msg08222.html and its is pretty what I want except that I do not know how can I get access to the buffer :) For instance, \def\startLST[#1]% {\def\stopLST{End of #1}% \dostartbuffer[LST][startLST][stopLST]} \starttext \startLST[whatever] bla bla \stopLST alb alb \stoptext will print End of whateveralb alb. I just want to get the content blabla in \stopLST. I guess, it should not be hard :) Antoine
Mmm... \getbuffer[LST] obviously
Sorry for the noise
On 27 April 2010 15:04, Antoine Cailliau
Hi,
I'm trying to deal with \dostartbuffer.
I found an old message on the ML about \dostartbuffer http://www.mail-archive.com/ntg-context@ntg.nl/msg08222.html and its is pretty what I want except that I do not know how can I get access to the buffer :)
For instance, \def\startLST[#1]% {\def\stopLST{End of #1}% \dostartbuffer[LST][startLST][stopLST]}
\starttext \startLST[whatever] bla bla \stopLST alb alb \stoptext
will print End of whateveralb alb. I just want to get the content blabla in \stopLST.
I guess, it should not be hard :)
Antoine
This time, it is not working, and I do not have any idea why. \defineenumeration[ENUM][] \definebuffer[Entity,before=\startENUM,after=\stopENUM] \starttext \startEntity \input tufte \stopEntity \stoptext fails with ! Missing \endcsname inserted. <to be read again> \let \noshowargumenterror ->\let \expectedarguments \noexpectedarguments \dodoubleempty #1->\noshowargumenterror \doifnextcharelse [{\dodoubletestemp... \startENUM ->\dodoubleempty \@@startdescription [ENUM] <argument> \??bu Entity,before=\startENUM ,after=\stopENUM \c!number \letvalue #1->\expandafter \let \csname #1 \endcsname ... l.4 On Tue, 2010-04-27 at 15:13 +0200, Antoine Cailliau wrote:
Mmm... \getbuffer[LST] obviously
Sorry for the noise
On 27 April 2010 15:04, Antoine Cailliau
wrote: Hi,
I'm trying to deal with \dostartbuffer.
I found an old message on the ML about \dostartbuffer http://www.mail-archive.com/ntg-context@ntg.nl/msg08222.html and its is pretty what I want except that I do not know how can I get access to the buffer :)
For instance, \def\startLST[#1]% {\def\stopLST{End of #1}% \dostartbuffer[LST][startLST][stopLST]}
\starttext \startLST[whatever] bla bla \stopLST alb alb \stoptext
will print End of whateveralb alb. I just want to get the content blabla in \stopLST.
I guess, it should not be hard :)
Antoine
Am 27.04.10 15:20, schrieb Antoine Cailliau:
This time, it is not working, and I do not have any idea why.
\defineenumeration[ENUM][] \definebuffer[Entity,before=\startENUM,after=\stopENUM]
\definebuffer[Entity][before=\startENUM,after=\stopENUM] \startEntity ... \stopEntity \getEntity or \def\startEntity {\dostartbuffer[Entity][startEntity][stopEntity]} \def\stopEntity {\startENUM \getbuffer[Entity] \stopENUM} Wolfgang
Damned, I didn't saw it. Thanks a lot for your help. On Wed, 2010-04-28 at 09:55 +0200, Wolfgang Schuster wrote:
Am 27.04.10 15:20, schrieb Antoine Cailliau:
This time, it is not working, and I do not have any idea why.
\defineenumeration[ENUM][] \definebuffer[Entity,before=\startENUM,after=\stopENUM]
\definebuffer[Entity][before=\startENUM,after=\stopENUM]
\startEntity ... \stopEntity
\getEntity
or
\def\startEntity {\dostartbuffer[Entity][startEntity][stopEntity]}
\def\stopEntity {\startENUM \getbuffer[Entity] \stopENUM}
Wolfgang
___________________________________________________________________________________ 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 ___________________________________________________________________________________ -- Antoine Cailliau UCLouvain Student Computer Sciences (Software engineering)
participants (2)
-
Antoine Cailliau
-
Wolfgang Schuster