[NTG-context] Line length limitation of typing block?

Vladimir Lomov lomov.vl at gmail.com
Tue Aug 16 12:00:08 CEST 2011


Hi.

Please consider the following two examples:

<file name="exa-feat1.tex">
\setupbackend[export=yes]
\definetyping[EXAMPLE][escape=yes]

\starttext

This is an example with \quotation{long} verbatim text.
Why context fails to compile the file? Is there a method to process this file?

\startEXAMPLE
This is a short verbatim line

This this this this this this very very very very very very long long long long long long line line line line line line
\stoptext

\stoptext
</file>

<file name="exa-feat2.tex">
\setupbackend[export=yes]
\definetyping[EXAMPLE][escape=yes]

\starttext

This is an example with \quotation{long} verbatim text.
The version without buffer fails.

\startbuffer[ex1]
This is a short verbatim line

This this this this this this very very very very very very long long long long long long line line line line line line
\stopbuffer

\startEXAMPLE
/BTEX\getbuffer[ex1]/ETEX
\stopEXAMPLE

\stoptext
</file>

context (mkiv) fails to compile first file (error:
<output name="exa-feat1.tex">
Runaway argument?
This this this this this this very ve\ETC.
! File ended while scanning use of \dododowithbuffer.

system          > tex > error on line 0 in file : File ended while
scanning use of \dododowithbuffer ...

<empty file>

<inserted text> 
                \par 
		<*> ./exa-feat1.tex 
		                    \stoptext
?
</output>
)

Seems that there is a limitation on line length in typing block, then
how to process a file with such line?

The second example compiles well but the long is splitted. How to avoid
this? (Adding ',space=fixed' to '\definetyping' doesn't help.)


P.S. Sorry two questions in one topic.

---
TIA, Vladimir Lomov

-- 
"The wages of sin are death; but after they're done taking out taxes,
it's just a tired feeling:"


More information about the ntg-context mailing list