[NTG-context] escape in verbatim text eats line breaks

Stefan Müller warrence.stm at gmx.de
Mon Jan 10 12:23:29 CET 2011


Hi list,

there seems to be something wrong with the "escape" mechanism in 
verbatim. Line breaks before escaped code are ignored. Consider the 
following example from the wiki [1] (e.g. the second line is printed 
right behind the first with no line break):

\starttext

\setuptyping[TEX][escape=yes]

\startTEX
/BTEX\em sometex/ETEX
/BTEX\em sometex/ETEX \after
\before /BTEX\em sometex/ETEX
\before /BTEX\em sometex/ETEX \after
\before /BTEX\em sometex/ETEX \inbetween /BTEX\em sometex/ETEX \after
\before \after
\stopTEX

\setuptyping[TEX][escape={[[,]]}]

\startTEX
[[\em sometex]]
[[\em sometex]] \after
\before [[\em sometex]]
\before [[\em sometex]] \after
\before [[\em sometex]] \inbetween [[\em sometex]] \after
\before \after
\stopTEX

\setuptyping[TEX][escape=//]

\startTEX
//\em sometex
\before //\em sometex
\stopTEX

\stoptext

Is this a bug or am I missing something here?

Also "\setuptyping[TEX][escape=//]" seems to have no effect at all, "//" 
is printed just like normal chars.

Best regards,
Stefan Müller.


[1] http://wiki.contextgarden.net/Verbatim#Embedded_formatting_commands


More information about the ntg-context mailing list