Difference between revisions of "Command/startbuffer"

From ConTeXt wiki
m (cleanup)
m (cleanup)
Line 57: Line 57:
 
</texcode>
 
</texcode>
  
 
 
== Example ==
 
<!-- Please fill in an example if you can -->
 
  
 
== See also ==
 
== See also ==

Revision as of 08:13, 12 April 2010

\startbuffer

Syntax

\startbuffer[...] ... \stopbuffer
[...] name


Description

\startbuffer[buffer-name]
  Text...
\stopbuffer

\getbuffer[buffer-name]    % insert content of \startbuffer ... \stopbuffer

\typebuffer[buffer-name]   % type content in verbatim mode


Example

You can store information temporarily for future use in your document with:

\startbuffer[visit]
If you want to see what Hasselt has in store you should come and visit it
some time.
\stopbuffer
\getbuffer[visit]

With

\getbuffer[visit] 

you recall the stored text. The logical name is optional. With

\typebuffer[visit]

you get back the typeset version of the content of the buffer.

Buffers are set up with:

\setupbuffer[...][..,..=..,..]


See also