Difference between revisions of "Command/typebuffer"

From Wiki
Jump to navigation Jump to search
(add options)
m (add autogenerated syntax and link to \setuptyping)
Line 3: Line 3:
 
|attributes=
 
|attributes=
 
}}
 
}}
 +
 +
== [[Help:Reference|Syntax]] (autogenerated)] ==
 +
<syntax>typebuffer</syntax>
  
 
== [[Help:Reference|Syntax]] ==
 
== [[Help:Reference|Syntax]] ==
Line 16: Line 19:
 
     <td class="cmd">option</td>
 
     <td class="cmd">option</td>
 
     <td>tex, ...?</td>
 
     <td>tex, ...?</td>
 +
  </tr>
 +
  <tr valign="top" class="second">
 +
    <td class="cmd">numbering</td>
 +
    <td>file, ...?</td>
 
   </tr>
 
   </tr>
 
   <tr valign="top" class="second">
 
   <tr valign="top" class="second">
Line 60: Line 67:
 
== See also ==
 
== See also ==
  
 +
* {{cmd|setuptyping}} – setup also for {{cmd|type}}
 
* {{cmd|getbuffer}} - Get back the "formatted" content of a buffer.
 
* {{cmd|getbuffer}} - Get back the "formatted" content of a buffer.
 
* {{cmd|input}} - Include the complete content of a text file.
 
* {{cmd|input}} - Include the complete content of a text file.

Revision as of 14:32, 6 September 2019

\typebuffer

Syntax (autogenerated)]

\typebuffer[...,...][...=...,...]
[...,...]buffer
...=...,...inherits from \setuptyping


Syntax

\typebuffer[buffer][...,...=...,...]
[buffer] name of the buffer
option tex, ...?
numbering file, ...?
range {label,label}

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

You can show only a part of a source:

\startbuffer[BB]
\setupsomething[]
\starttext
% begin
Do something interesting.
%end
\stoptext
\stopbuffer

\typebuffer[BB][option=tex,range={begin,end}]

See also

Help from ConTeXt-Mailinglist/Forum

All issues with: