Is it possible to have a command automatically executed each time \stopbuffer has been read? Preferably coupled to a specific named \startbuffer[this_one], iff possible at all of course. Thus: \startbuffer[this_one] ..contents.. \stopbuffer % in execution followed by \command Hans van der Meer
Am 13.02.2013 um 17:49 schrieb H. van der Meer
Is it possible to have a command automatically executed each time \stopbuffer has been read? Preferably coupled to a specific named \startbuffer[this_one], iff possible at all of course.
Thus: \startbuffer[this_one] ..contents.. \stopbuffer % in execution followed by \command
\def\startmybuffer {\grabbufferdata[mybuffer][startmybuffer][stopmybuffer]} \def\stopmybuffer {\startframedtext[width=max] \getbuffer[mybuffer] \stopframedtext} \starttext \startmybuffer \input knuth \stopmybuffer \stoptext Wolfgang
Thanks, got the following now working:
\def\startxmlbuffer{\grabbufferdata[xmlbuffer][startxmlbuffer][stopxmlbuffer]}
\def\stopxmlbuffer{\endinput}
..
\xmlprocessbuffer{dvd}{xmlbuffer}{}
Hans van der Meer
On 13 feb. 2013, at 22:34, Wolfgang Schuster
Am 13.02.2013 um 17:49 schrieb H. van der Meer
: Is it possible to have a command automatically executed each time \stopbuffer has been read? Preferably coupled to a specific named \startbuffer[this_one], iff possible at all of course.
Thus: \startbuffer[this_one] ..contents.. \stopbuffer % in execution followed by \command
\def\startmybuffer {\grabbufferdata[mybuffer][startmybuffer][stopmybuffer]}
\def\stopmybuffer {\startframedtext[width=max] \getbuffer[mybuffer] \stopframedtext}
\starttext \startmybuffer \input knuth \stopmybuffer \stoptext
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 ___________________________________________________________________________________
participants (3)
-
H. van der Meer
-
Meer, H. van der
-
Wolfgang Schuster