How to prevent line split in typing block when using custom command?
Hi. Consider the following two example files: --------------------------------- 8< -------------------------------- <file name="exa-feat1.tex"> \setupbackend[export=yes] \definetyping[EXAMPLE][escape=yes] \starttext This is an example with \quotation{long} verbatim text. Why context complians? 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 \stopEXAMPLE \stoptext </file> --------------------------------- 8< -------------------------------- <file name="exa-feat3.tex"> \setupbackend[export=yes] \definetyping[EXAMPLE][escape=yes] \definestartstop[important][style=bold] \starttext This is an example with \quotation{long} verbatim text. Why context fail to compile this example? Is there a method to process it? \startEXAMPLE This is a short verbatim line This this this this this this very very very very very very /BTEX\important{long long long long}/ETEX long long line line line line line line \stopEXAMPLE \stoptext </file> --------------------------------- 8< -------------------------------- In first case the long line is not splitted, in second case the line is splitted. How to prevent line splitting? --- TIA, Vladimir Lomov -- Q: How many surrealists does it take to change a light bulb? A: Two, one to hold the giraffe, and the other to fill the bathtub with brightly colored machine tools. [Surrealist jokes just aren't my cup of fur. Ed.]
Am 16.08.2011 um 14:05 schrieb Vladimir Lomov:
Hi.
Consider the following two example files:
[…]
\definetyping[EXAMPLE][escape=yes] \definestartstop[important][style=bold]
\starttext
This is an example with \quotation{long} verbatim text. Why context fail to compile this example? Is there a method to process it?
\startEXAMPLE This is a short verbatim line
This this this this this this very very very very very very /BTEX\important{long long long long}/ETEX long long line line line line line line \stopEXAMPLE
\stoptext
In first case the long line is not splitted, in second case the line is splitted. How to prevent line splitting?
Use a nonbreakable space in the escaped text, i.e. “long~long”. Wolfgang
participants (2)
-
Vladimir Lomov
-
Wolfgang Schuster