[NTG-context] Reprocessing part of input

Hans Hagen pragma at wxs.nl
Tue Feb 2 19:43:42 CET 2016


On 2/2/2016 4:28 PM, Meer, Hans van der wrote:
> How to do the following eludes me.
>
> Inside macro -processing read into a buffer the following part of the input
> 	\startmyinput ...\stopmyinput
>
>
> Analogous to input containing
> \startbuffer[mystoragebuffer]
> 	\startmyinput
> 	 ...
> 	\stopmyinput
> \stopbuffer
>
> but now not executed at once, but stored in and executable from a buffer with \getbuffer[mystoragebuffer].

\setbuffer[foo]bar\endbuffer

> But of course there might be a better way to execute the same code more than once within one run of TeX.

for that to answer you need to give more info


-----------------------------------------------------------------
                                           Hans Hagen | PRAGMA ADE
               Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
       tel: 038 477 53 69 | www.pragma-ade.com | www.pragma-pod.nl
-----------------------------------------------------------------


More information about the ntg-context mailing list