[NTG-context] \asciimode and MetaPost in LMTX result in “Isolated expression”

Hans Hagen j.hagen at xs4all.nl
Sat Mar 12 15:51:16 CET 2022


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 at 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
-----------------------------------------------------------------


More information about the ntg-context mailing list