Hi,

As I needed ascii mode for some style, I played a bit more with it. In the process I realized that it was interfering with environment and module loading so I took care of that. Then there is the problem of commenting. As it is unlikely that a double % ends up in a document, I made a mechanism to deal with that:

\asciimode

\usemodule[x][mathml]

\starttext

10% interest %% is way too much

ABC%%
DEF

\mathematics{x^2}

\startMPcode
    fill fullcircle scaled 10cm withcolor red ; %% test
\stopMPcode

\starttyping
test test %% test
\stoptyping

\stoptext

So, as with -- in lua or // in c we have %% in ascii tex. I hope that this makes sense. (The beta on the ftp server has it.)

It might make sense to use a different way to trigger asciimode, with some setup command.

Hans


-----------------------------------------------------------------
                                          Hans Hagen | PRAGMA ADE
              Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
    tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
                                             | www.pragma-pod.nl
-----------------------------------------------------------------
_______________________________________________
dev-context mailing list
dev-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/dev-context

Reply via email to