Difference between revisions of "Command/typesetbuffer"

From Wiki
Jump to navigation Jump to search
(Created page with "Documentation for \typesetbuffer")
(No difference)

Revision as of 14:30, 3 December 2021


\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 get back the verbatim content of the buffer use the command \typebuffer.

When you invoke \typesetbuffer on a buffer 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: