Command/definebuffer

From Wiki
< Command
Revision as of 17:55, 6 September 2020 by Taco (talk | contribs) (Created page with "Documentation for \definebuffer")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search


\definebuffer

Summary

The command \definebuffer defines a named buffer class.

Settings

\definebuffer[...][...][...=...,...]
[...]name
[...]buffer
...=...,...inherits from \setupbuffer

OptionExplanation
Name of the new buffer class
Optional buffer class to inherit from

Description

Named buffer classes replace the default buffer commands with special versions wherein the buffer part is replaced by your desired command.

On the downside, these newly defined buffers do not support an optional argument like \startbuffer does.

Examples

Example 1

\definebuffer[mybuffer]

\startmybuffer
Arbitrary content for my buffer
\stopmybuffer

Some more text

\getmybuffer

\typemybuffer

gives

Notes

See also

Help from ConTeXt-Mailinglist/Forum

All issues with: