Difference between revisions of "Command/typebuffer"
< Command
Jump to navigation
Jump to search
(Filled this empty page with a description, an example and links to related ConTeXt commands.) |
(Made the syntax more clearly.) |
||
Line 7: | Line 7: | ||
<table cellspacing="4" cellpadding="2" class="cmd"> | <table cellspacing="4" cellpadding="2" class="cmd"> | ||
<tr> | <tr> | ||
− | <td colspan="2" class="cmd">\typebuffer<span class="first" >[ | + | <td colspan="2" class="cmd">\typebuffer<span class="first" >[buffer]</span></td> |
</tr> | </tr> | ||
<tr valign="top" class="first"> | <tr valign="top" class="first"> | ||
− | <td class="cmd">[ | + | <td class="cmd">[buffer]</td> |
− | <td>name </td> | + | <td>name of the buffer</td> |
</tr> | </tr> | ||
</table> | </table> |
Revision as of 11:35, 2 July 2011
\typebuffer
Syntax
\typebuffer[buffer] | |
[buffer] | name of the buffer |
Description
With \typebuffer[mybuffer]
you can get back the verbatim content of buffer mybuffer
, which was previously defined by command \startbuffer.
To get back the non-verbatim content of the buffer use the command \getbuffer.
Example
\starttext \startbuffer[mybuffer] This is a text, which is stored in the buffer with name \quotation{mybuffer}. \stopbuffer \typebuffer[mybuffer] \stoptext
produces
See also
- \getbuffer - Get back the "formatted" content of a buffer.
- \input - Include the complete content of a text file (with extension .tex).
- \startbuffer - Define the content of a temporarily buffer.