Changes

Jump to navigation Jump to search
1,776 bytes added ,  17:56, 1 January 2013
Created page with "{{Reference |name={{subst:SUBPAGENAME}} |attributes= }} == Syntax == <table cellspacing="4" cellpadding="2" class="cmd"> <tr> <td colspan="2" class="cmd..."
{{Reference
|name=savebuffer
|attributes=
}}

== [[Help:Reference|Syntax]] ==
<table cellspacing="4" cellpadding="2" class="cmd">
<tr>
<td colspan="2" class="cmd">\savebuffer<!--
--><span class="first">[''buffer names'']</span><!--
--><span class="second">[''filename'']</span><!--
--></td>
</tr>
<tr valign="top" class="first">
<td class="cmd">[''buffer names'']</td>
<td>a comma-separated list of buffers you want to save.</td>
</tr>
<tr valign="top" class="second">
<td class="cmd">[''filename'']</td>
<td>''e.g. XX results in the buffer being saved to the file jobname-XX.tmp''</td>
</tr>
</table>

<table cellspacing="4" cellpadding="2" class="cmd">
<tr>
<td colspan="2" class="cmd">\savebuffer<!--
--><span class="third">[...=...]</span><!--
--></td>
</tr>
<tr valign="top" class="third">
<td class="cmd">list</td>
<td>''list of buffer names''</td>
</tr>
<tr valign="top" class="third">
<td class="cmd">file</td>
<td>''filename to save to''</td>
</tr>
<tr valign="top" class="third">
<td class="cmd">prefix</td>
<td>'''yes''' no ''whether to add the'' jobname- ''prefix to the filename''</td>
</tr>
</table>

== Description ==
When part of the job <tt>myjob.tex</tt>, {{cmd|savebuffer|[buffer][suffix]}} saves a list of buffers to <tt>myjob-suffix.tmp</tt>. Each new buffer, including the first, is preceded by a newline.

== Example ==
<texcode>
\startbuffer[test]
Oranges and lemons
\stopbuffer

\savebuffer[test][whatever]

\savebuffer[list=test,file=something,prefix=no]

</texcode>

== See also ==
* {{cmd|setuphead}}
* {{src|strc-sec.mkiv#l299}}

== Help from ConTeXt-Mailinglist/Forum ==
All issues with:
{{Forum|savebuffer}}

[[Category:Command/Buffers|savebuffer]]

Navigation menu