Difference between revisions of "Command/getbuffer"
< Command
Jump to navigation
Jump to search
m (Text replace - "\[\[cmd:(.*)\|(.*)\]\]" to "{{cmd|$1}}") |
m (→Syntax) |
||
Line 5: | Line 5: | ||
== [[Help:Reference|Syntax]] == | == [[Help:Reference|Syntax]] == | ||
+ | <syntax>getbuffer</syntax> | ||
<table cellspacing="4" cellpadding="2" class="cmd"> | <table cellspacing="4" cellpadding="2" class="cmd"> | ||
<tr> | <tr> |
Revision as of 14:29, 6 October 2019
\getbuffer
Syntax
\getbuffer[...,...] | |
[...,...] | buffer |
\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-Mailinglist/Forum
All issues with: