At 16:52 08/04/2003 +0200, you wrote:
Just in case anyone else runs into the same problem.
From: Marko Schuetz
Subject: Re: [NTG-context] Re: referencing line numbers of a typing environment Date: Mon, 07 Apr 2003 20:22:50 +0200 (CEST) It's not my environment...
I narrowed it down to this
\starttext
\setuptyping[option=commands] \starttyping cout << "Test!"; \stoptyping
\stoptext
This does not work here. TeX stops at a *-prompt.
This works:
\starttext \def\cout{<<} \setuptyping[option=commands] \starttyping cout /cout "Test"; \stoptyping \stoptext
and so does this:
\starttext \starttyping cout << "Test"; \stoptyping \stoptext
and also this: (where reserve.cpp contains <<)
\starttext \setuptyping[option=commands] \typefile{reserve.cpp} \stoptext
but this does not work:
\starttext \setuptyping[option=commands] \starttyping cout << "Test"; \stoptyping \stoptext
this is a side effect: option=commands => <> so, in commands mode the << and >> act as braces option=slanted => <<this comes out slanted>> and here it does a font switch. Maybe we need another option -) Hans ------------------------------------------------------------------------- Hans Hagen | PRAGMA ADE | pragma@wxs.nl Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: +31 (0)38 477 53 69 | fax: +31 (0)38 477 53 74 | www.pragma-ade.com ------------------------------------------------------------------------- information: http://www.pragma-ade.com/roadmap.pdf documentation: http://www.pragma-ade.com/showcase.pdf -------------------------------------------------------------------------