Command/typesetbuffer

From Wiki
< Command
Revision as of 14:30, 3 December 2021 by Taco (talk | contribs) (Created page with "Documentation for \typesetbuffer")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search


\typesetbuffer

Summary

The command \typesetbuffer typesets a buffer verbatim

Settings

\typesetbuffer[...][...=...,...]
[...]* buffer
...=...,...inherits from \setupexternalfigure

Description

With \typesetbuffer[mybuffer], ConTeXt typesets the buffer mybuffer (previously defined by command \startbuffer) as an independent file and it includes it in the document as an external image.

To use the contents of the buffer as normal typeset material use the command \getbuffer.

To have the contents of the buffer typeset verbatim use the command \typebuffer.

When you invoke \typesetbuffer on a buffer that is already typeset, the buffer won’t be typeset again, but the requested page(s) will be included in the document as external figures.

Examples

Example 1

\startTEXpage

     \startbuffer [sample]
         \starttext
             \startTEXpage[offset=10pt] one   \stopTEXpage
             \startTEXpage[offset=10pt] two   \stopTEXpage
             \startTEXpage[offset=10pt] three \stopTEXpage
         \stoptext
     \stopbuffer

     one: \typesetbuffer[sample][frame=on,page=1]

     two: \externalfigure[\lasttypesetbuffer][frame=on,page=2]

    three: \typesetbuffer[*][frame=on,page=3]

\stopTEXpage


Notes

See also

Help from ConTeXt-Mailinglist/Forum

All issues with: