Command/startbuffer

From ConTeXt wiki
< Command
Revision as of 08:13, 12 April 2010 by Patrick Gundlach (talk | contribs) (cleanup)

\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 typeset version of the content of the buffer.

Buffers are set up with:

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


See also