ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* code after \stopbuffer
@ 2013-02-13 16:49 H. van der Meer
  2013-02-13 21:34 ` Wolfgang Schuster
  0 siblings, 1 reply; 3+ messages in thread
From: H. van der Meer @ 2013-02-13 16:49 UTC (permalink / raw)
  To: ConTeXt NTG

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



___________________________________________________________________________________
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] 3+ messages in thread

* Re: code after \stopbuffer
  2013-02-13 16:49 code after \stopbuffer H. van der Meer
@ 2013-02-13 21:34 ` Wolfgang Schuster
  2013-02-14 15:59   ` Meer, H. van der
  0 siblings, 1 reply; 3+ messages in thread
From: Wolfgang Schuster @ 2013-02-13 21:34 UTC (permalink / raw)
  To: mailing list for ConTeXt users


Am 13.02.2013 um 17:49 schrieb H. van der Meer <H.vanderMeer@uva.nl>:

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


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

* Re: code after \stopbuffer
  2013-02-13 21:34 ` Wolfgang Schuster
@ 2013-02-14 15:59   ` Meer, H. van der
  0 siblings, 0 replies; 3+ messages in thread
From: Meer, H. van der @ 2013-02-14 15:59 UTC (permalink / raw)
  To: mailing list for ConTeXt users

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 <wolfgang.schuster@gmail.com> wrote:

> 
> Am 13.02.2013 um 17:49 schrieb H. van der Meer <H.vanderMeer@uva.nl>:
> 
>> 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
> ___________________________________________________________________________________

___________________________________________________________________________________
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] 3+ messages in thread

end of thread, other threads:[~2013-02-14 15:59 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-02-13 16:49 code after \stopbuffer H. van der Meer
2013-02-13 21:34 ` Wolfgang Schuster
2013-02-14 15:59   ` Meer, H. van der

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