ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Reprocessing part of input
@ 2016-02-02 15:28 Meer, Hans van der
  2016-02-02 18:43 ` Hans Hagen
  0 siblings, 1 reply; 2+ messages in thread
From: Meer, Hans van der @ 2016-02-02 15:28 UTC (permalink / raw)
  To: NTG ConTeXt

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].

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

Hans van der Meer




___________________________________________________________________________________
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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Reprocessing part of input
  2016-02-02 15:28 Reprocessing part of input Meer, Hans van der
@ 2016-02-02 18:43 ` Hans Hagen
  0 siblings, 0 replies; 2+ messages in thread
From: Hans Hagen @ 2016-02-02 18:43 UTC (permalink / raw)
  To: mailing list for ConTeXt users

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
-----------------------------------------------------------------
___________________________________________________________________________________
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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2016-02-02 18:43 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-02-02 15:28 Reprocessing part of input Meer, Hans van der
2016-02-02 18:43 ` Hans Hagen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).