Changes

Jump to navigation Jump to search
→‎Getting text into LuaTex verbatim: Gave a long wikilink a shorter and friendlier face.
Ordinarily, getting text into a TeX macro with spaces and newlines
intact requires mucking about with <code>\obeylines</code> and
<code>\obeyspaces</code> &mdash; seethe [[Inside_ConTeXt#Passing_verbatim_text_as_macro_parameter|Inside Context]]article. Luckily forus, however, ConTeXt provides the
<code>\dostartbuffer[</code><i>name</i><code>][</code><i>bufferstart</i><code>][<i>bufferstop</i><code>]</code>
command, which creates a pair of buffer commands that write their contents verbatim to a named buffer. This buffer can then be accessed in LuaTeX via <code>buffers.content(</code><i>name</i><code>)</code>. Here is an example that shows how the buffer definition and the LuaTex call are combined.
contents, and each <code>\startDedent</code> flushes the buffer's contents, so
the construction can safely be used multiple times throughout the document.
 
= Parsing input without exploding your head =

Navigation menu