Command/grabbufferdata

From Wiki
< Command
Revision as of 10:27, 15 December 2012 by Esteis (talk | contribs) (Created page with "{{Reference |name={{subst:SUBPAGENAME}} |attributes= }} == Syntax == <table cellspacing="4" cellpadding="2" class="cmd"> <tr> <td colspan="2" class="cmd...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

\grabbufferdata

Syntax

\grabbufferdata[...][...][...]
[...] name of the buffer to store the text
[...] string where the buffer contents start
[...] string where the buffer contents end

Description

This is a slightly low-level command to grab user input and store it in a buffer. It is different from \startbuffer[X]..\stopbuffer because it allows one to use custom start and end strings, instead of \startbuffer...\stopbuffer

Example

\grabbufferdata[mybuffer][thisisthestart][thisistheend]
\thisisthestart
My friend, you would not tell with such high zest
To children ardent for some desparate glory,
The old Lie: Dulce et decorum est 
Pro patria mori.
\thisistheend

\typebuffer[mybuffer]

internal error: copy error eRrxAd/cropped.pdf

See also

Help from ConTeXt-Mailinglist/Forum

All issues with: