Command/typebuffer
Jump to navigation
Jump to search
\typebuffer
Syntax
\typebuffer[buffer][...,...=...,...] | |
[buffer] | name of the buffer |
option | tex, ...? |
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
- \getbuffer - Get back the "formatted" content of a buffer.
- \input - Include the complete content of a text file.
- \startbuffer - Define the content of a temporary buffer.
Help from ConTeXt-Mailinglist/Forum
All issues with: