Hans Hagen wrote:
On 13-12-2009 12:26, Tad Ashlock wrote:
As noted at http://wiki.contextgarden.net/Verbatim_text#Embedded_formatting_commands, the embedded formatting commands in verbatim text don't work in MkIV.
Are there any plans to fix this capability soon? I'm planning on working on a project on over the holiday break that will need it.
the beta has:
\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
so, in mkiv option-commands is gone and escape no longer is an escape character but a condition (range or start)
please wikify this
Hans
----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl -----------------------------------------------------------------
Ok, I'm (finally) getting back to this subject.
Is this supposed to work for any verbatim environment besides
\startTEX...\stopTEX? I can't get it to work for 'C' or even basic
'typing'. They don't pick up on the embedded formatting, everything is
typeset verbatim.
Tad
PS: Here are my test cases:
============================
\definetyping[C][option=C]
\setuptyping[C][escape=yes]
\starttext
\startC
#include