Difference between revisions of "Command/typebuffer"

From Wiki
Jump to navigation Jump to search
m (→‎See also: : \getbuffer)
(Filled this empty page with a description, an example and links to related ConTeXt commands.)
Line 15: Line 15:
 
</table>
 
</table>
  
 +
== Description ==
  
== Description ==
+
With <code>\typebuffer[mybuffer]</code> you can get back the verbatim content of buffer <code>mybuffer</code>, which was previously defined by command [[cmd:startbuffer|\startbuffer]].
  
 +
To get back the non-verbatim content of the buffer use the command [[cmd:getbuffer|\getbuffer]].
  
 
== Example ==
 
== Example ==
 
<!-- Please fill in an example if you can -->
 
<!-- Please fill in an example if you can -->
 +
 +
<context source="yes" text="produces">
 +
\starttext
 +
 +
\startbuffer[mybuffer]
 +
This is a text, which is stored in the buffer with name \quotation{mybuffer}.
 +
\stopbuffer
 +
 +
\typebuffer[mybuffer]
 +
 +
\stoptext
 +
</context>
  
 
== See also ==
 
== See also ==
[[cmd:startbuffer|\startbuffer]], [[cmd:getbuffer|\getbuffer]]
+
 
 +
* [[cmd:getbuffer|\getbuffer]] - Get back the "formatted" content of a buffer.
 +
* [[cmd:input|\input]] - Include the complete content of a text file (with extension .tex).
 +
* [[cmd:startbuffer|\startbuffer]] - Define the content of a temporarily buffer.
  
 
[[Category:Reference/en|typebuffer]]
 
[[Category:Reference/en|typebuffer]]

Revision as of 11:23, 2 July 2011

\typebuffer

Syntax

\typebuffer[...]
[...] name

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.