Difference between revisions of "Command/getbuffer"

From Wiki
Jump to navigation Jump to search
m (Text replace - "ConTeXt-Forum " to "Help from ConTeXt-Forum ")
 
(7 intermediate revisions by 2 users not shown)
Line 4: Line 4:
 
}}
 
}}
  
 +
== [[Help:Reference|Syntax]] (autogenerated) ==
 +
<syntax>getbuffer</syntax>
 
== [[Help:Reference|Syntax]] ==
 
== [[Help:Reference|Syntax]] ==
 
<table cellspacing="4" cellpadding="2" class="cmd">
 
<table cellspacing="4" cellpadding="2" class="cmd">
Line 17: Line 19:
 
== Description ==
 
== Description ==
  
With <code>\getbuffer[mybuffer]</code> you can get back the "formatted" content of buffer <code>mybuffer</code>, which was previously defined by command [[cmd:startbuffer|\startbuffer]].
+
With <code>\getbuffer[mybuffer]</code> you can get back the "formatted" content of buffer <code>mybuffer</code>, which was previously defined by command {{cmd|startbuffer}}.
  
To get back the verbatim content of the buffer use the command [[cmd:typebuffer|\typebuffer]].
+
To get back the verbatim content of the buffer use the command {{cmd|typebuffer}}.
  
 
== Example ==
 
== Example ==
Line 38: Line 40:
 
== See also ==
 
== See also ==
  
* [[cmd:input|\input]] - Include the complete content of a text file.
+
* {{cmd|input}} - Include the complete content of a text file.
* [[cmd:startbuffer|\startbuffer]] - Define the content of a temporary buffer.
+
* {{cmd|startbuffer}} - Define the content of a temporary buffer.
* [[cmd:typebuffer|\typebuffer]] - Get back the content of a buffer as verbatim text.
+
* {{cmd|typebuffer}} - Get back the content of a buffer as verbatim text.
  
== Help from ConTeXt-Forum ==
+
== Help from ConTeXt-Mailinglist/Forum ==
 +
All issues with:
 
{{Forum|{{SUBPAGENAME}}}}
 
{{Forum|{{SUBPAGENAME}}}}
  
[[Category:Commands|getbuffer]]
+
[[Category:Command/Buffers|getbuffer]]

Latest revision as of 13:25, 13 October 2019

\getbuffer

Syntax (autogenerated)

\getbuffer[...,...]
[...,...]buffer


Syntax

\getbuffer[buffer]
[buffer] name of the buffer

Description

With \getbuffer[mybuffer] you can get back the "formatted" content of buffer mybuffer, which was previously defined by command \startbuffer.

To get back the verbatim content of the buffer use the command \typebuffer.

Example

\starttext

\startbuffer[mybuffer]
This is a text, which is stored in the buffer with name \quotation{mybuffer}.
\stopbuffer

\getbuffer[mybuffer]

\stoptext

produces

See also

  • \input - Include the complete content of a text file.
  • \startbuffer - Define the content of a temporary buffer.
  • \typebuffer - Get back the content of a buffer as verbatim text.

Help from ConTeXt-Mailinglist/Forum

All issues with: