Command/ getbuffer

From Wiki
< Command
Revision as of 17:09, 18 December 2021 by Benjamin (talk | contribs) (Add example for combining buffers)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search


\getbuffer

Summary

The instances of \getbuffer are used for typesetting named buffer class contents.

Description

Fetches the content of a buffer class defined by \definebuffer to be typeset.

Examples

Combine buffers

One can combine buffers:

+ : nothing in between ++ : space in between +++ : empty line in between

\startbuffer[test]
    test
\stopbuffer

\startbuffer[oeps]
    oeps
\stopbuffer

\typebuffer[test] \getbuffer[test]

\startbuffer[test = * + test]
    prepend
\stopbuffer

\typebuffer[test] \getbuffer[test]

\startbuffer[test = test + *]
    append
\stopbuffer

\typebuffer[test] \getbuffer[test]

\startbuffer[test = * +++ test]
    before
\stopbuffer

\typebuffer[test] \getbuffer[test]

\startbuffer[test = test +++ *]
    after
\stopbuffer

\typebuffer[test] \getbuffer[test]

\startbuffer[test = * + oeps + test + oeps + * ]
    DONE
\stopbuffer

\typebuffer[test] \getbuffer[test]

Notes

See also

Help from ConTeXt-Mailinglist/Forum

All issues with: