On 3/12/2022 3:35 PM, Marco Patzer via ntg-context wrote:
On Mon, 31 Jan 2022 20:02:42 +0100
Marco Patzer via ntg-context <ntg-context@ntg.nl> wrote:

LMTX seems to have an issue with \asciimode and MetaPost:

\asciimode
\starttext
   \startMPcode
     fill unitsquare scaled 2cm;
   \stopMPcode
\stoptext

Results in:

metafun         > log > error: Isolated expression

This is still an issue with today's ver: 2022.03.12 11:27 LMTX.
that's because ascimode messes up some catcodes .. you can try this (in cont-new.tex):

\prependtoks
    \setcatcodetable\ctxcatcodes
\to \everyMPgraphic

and then do lots of tests with and without asciimode so see if this doesn't interfere

Hans

-----------------------------------------------------------------
                                          Hans Hagen | PRAGMA ADE
              Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
       tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
-----------------------------------------------------------------
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

Reply via email to