Difference between revisions of "Command/getbuffer"
< Command
Jump to navigation
Jump to search
m (Removed an error in "See also" section: extension of text file in command \input must not be ".tex".) |
m (Corrected a type on section "See also".) |
||
Line 39: | Line 39: | ||
* [[cmd:input|\input]] - Include the complete content of a text file. | * [[cmd:input|\input]] - Include the complete content of a text file. | ||
− | * [[cmd:startbuffer|\startbuffer]] - Define the content of a | + | * [[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. | ||
[[Category:Reference/en|getbuffer]] | [[Category:Reference/en|getbuffer]] |
Revision as of 21:55, 7 July 2011
\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.