Difference between revisions of "Command/getbuffer"

From Wiki
Jump to navigation Jump to search
m (moved Reference/en/getbuffer to Command/getbuffer: Text replace - "Reference/en/" to "Command/")
m (Text replace - "[[Category:Commands|" to "== ConTeXt-Forum == {{Forum|{{SUBPAGENAME}}}} [[Category:Commands|")
Line 41: Line 41:
 
* [[cmd:startbuffer|\startbuffer]] - Define the content of a temporary buffer.
 
* [[cmd:startbuffer|\startbuffer]] - Define the content of a temporary buffer.
 
* [[cmd:typebuffer|\typebuffer]] - Get back the content of a buffer as verbatim text.
 
* [[cmd:typebuffer|\typebuffer]] - Get back the content of a buffer as verbatim text.
 +
 +
== ConTeXt-Forum ==
 +
{{Forum|{{SUBPAGENAME}}}}
  
 
[[Category:Commands|getbuffer]]
 
[[Category:Commands|getbuffer]]

Revision as of 23:54, 14 March 2012

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

ConTeXt-Forum