Difference between revisions of "Command/ getbuffer"
< Command
Jump to navigation
Jump to search
(Add example for combining buffers) |
m |
||
Line 109: | Line 109: | ||
<cd:commandref name="setupbuffer" originator="system"></cd:commandref> | <cd:commandref name="setupbuffer" originator="system"></cd:commandref> | ||
<cd:source file="buff-ini.mkiv" originator="system"></cd:source> | <cd:source file="buff-ini.mkiv" originator="system"></cd:source> | ||
− | <cd:wikipage originator="system" page="Category:Buffer"></cd:wikipage></cd:seealso> | + | <cd:wikipage originator="system" page="Category:Buffer"></cd:wikipage> |
+ | <cd:wikipage page="Category:Buffers"></cd:wikipage></cd:seealso> | ||
</cd:commandgroup> | </cd:commandgroup> |
Revision as of 16:26, 14 April 2024
Contents
\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]