Syntax
(autogenerated)
| \savebuffer[...,...][...] |
| [...,...] |
buffer |
| [...] |
file |
| \savebuffer[...=...,...] |
| list |
name |
| file |
file |
| prefix |
yes no |
| \savebuffer[buffer names][filename] |
| [buffer names] |
a comma-separated list of buffers you want to save. |
| [filename] |
e.g. XX results in the buffer being saved to the file jobname-XX.tmp |
| \savebuffer[...=...] |
| list |
list of buffer names |
| file |
filename to save to |
| prefix |
yes no whether to add the jobname- prefix to the filename |
Description
When part of the job myjob.tex, \savebuffer[buffer][suffix] saves a list of buffers to myjob-suffix.tmp. Each new buffer, including the first, is preceded by a newline. You can suppress the jobname prefix if you use the key-value variant (since 2013).
Example
\startbuffer[test]
Oranges and lemons
\stopbuffer
\savebuffer[test][whatever]
\savebuffer[list=test,file=something,prefix=no]
You can also use \jobname to refer to the name of the current ConTeXt job's name.
\starttext
\startbuffer[test]
Oranges and lemons
\stopbuffer
\savebuffer[list=test,file=\jobname-thesuffixyouwant,prefix=no]
\getbuffer[test]
\stoptext
See also
Help from ConTeXt-Mailinglist/Forum
All issues with: