Re: buffer question
Hans Hagen via ntg-context <[email protected]>
| Newsgroups | gmane.comp.tex.context |
|---|---|
| Message-ID | <[email protected]> |
On 4/16/2026 1:14 PM, Jim via ntg-context wrote:
> Hi buffer experts,
>
> Is it possible to combine two buffers into one?
>
> Google (ha ha!) told me
>
> %%%%%%%%%%%%%%%%%%%%
> \starttext
>
> \startbuffer[one]
> Content from buffer one.
> \stopbuffer
>
> \startbuffer
> Content from buffer two.
> \stopbuffer
>
> \startbuffer[combined]
> \getbuffer[one]
> \getbuffer
> \stopbuffer
>
> ...
> %%%%%%%%%%%%%%%%%%%%
>
> but that only combines them in a useful way if I do
>
> \getbuffer[combined]
>
> If I do
>
> \typebuffer[combined]
>
> I don't get
>
> Content from buffer one.
>
> Content from buffer two.
>
> (I realize that if I have two named buffers "one" and "two" I can do
> \typebuffer[one,two]
> but what if I want to use the unnamed buffer?)
>
> Thanks.
It's baffling what usage patterns people can come up with.
\starttext
\startbuffer[one]
Content from buffer one.
\stopbuffer
\startbuffer
Content from buffer two.
\stopbuffer
\getbuffer[one,]
\getbuffer[one,{}]
\getbuffer[one,,,one]
\stoptext
-----------------------------------------------------------------
Hans Hagen | PRAGMA ADE
Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
-----------------------------------------------------------------
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!
maillist : [email protected] / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive : https://github.com/contextgarden/context
wiki : https://wiki.contextgarden.net
___________________________________________________________________________________