Command/startbuffer

From ConTeXt wiki
< Command
Revision as of 02:44, 19 February 2018 by Mæstro (talk | contribs) (removed whitespace)

\startbuffer

Syntax

\startbuffer[...] ... \stopbuffer
[...] name


Description

\startbuffer[buffer-name]
  Text...
\stopbuffer

\getbuffer[buffer-name]    % insert content of \startbuffer ... \stopbuffer

\typebuffer[buffer-name]   % type content in verbatim mode


Example

You can store information temporarily for future use in your document with:

\startbuffer[visit]
If you want to see what Hasselt has in store you should come and visit it
some time.
\stopbuffer
\getbuffer[visit]

With

\getbuffer[visit]

you recall the stored text. The logical name is optional. With

\typebuffer[visit]

you get back the verbatim contents of the buffer, typset as though inside \starttyping...\stoptyping.

Buffers are set up with:

\setupbuffer[...][..,..=..,..]


See also

\definebuffer, \setupbuffer

Help from ConTeXt-Mailinglist/Forum

All issues with: