Difference between revisions of "Command/startbuffer"

From Wiki
Jump to navigation Jump to search
m (Text replacement - "<syntax>start" to "<syntax type=“environment”>")
Line 5: Line 5:
  
 
== [[Help:Reference|Syntax]] (autogenerated) ==
 
== [[Help:Reference|Syntax]] (autogenerated) ==
<syntax>startbuffer</syntax>
+
<syntax type=“environment”>buffer</syntax>
 
== [[Help:Reference|Syntax]] ==
 
== [[Help:Reference|Syntax]] ==
 
<table cellspacing="4" cellpadding="2" class="cmd">
 
<table cellspacing="4" cellpadding="2" class="cmd">

Revision as of 19:47, 24 July 2020

\startbuffer

Syntax (autogenerated)

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 verbatim contents of the buffer, typset as though inside \starttyping...\stoptyping.

Buffers are set up with:

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


See also

\definebuffer, \setupbuffer

Help from ConTeXt-Mailinglist/Forum

All issues with: