[NTG-context] How to prevent line split in typing block when using custom command?

Wolfgang Schuster schuster.wolfgang at googlemail.com
Tue Aug 16 23:36:44 CEST 2011


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


More information about the ntg-context mailing list