Command/getbuffer

From Wiki
< Command
Revision as of 00:54, 15 March 2012 by Jannis (talk | contribs) (Text replace - "ConTeXt-Forum " to "Help from ConTeXt-Forum ")
Jump to navigation Jump to search

\getbuffer

Syntax

\getbuffer[buffer]
[buffer] name of the buffer

Description

With \getbuffer[mybuffer] you can get back the "formatted" content of buffer mybuffer, which was previously defined by command \startbuffer.

To get back the verbatim content of the buffer use the command \typebuffer.

Example

\starttext

\startbuffer[mybuffer]
This is a text, which is stored in the buffer with name \quotation{mybuffer}.
\stopbuffer

\getbuffer[mybuffer]

\stoptext

produces

See also

  • \input - Include the complete content of a text file.
  • \startbuffer - Define the content of a temporary buffer.
  • \typebuffer - Get back the content of a buffer as verbatim text.

Help from ConTeXt-Forum