ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* metafun doesn't compile \root 3 \of 2
@ 2021-09-03  9:48 fv leung via ntg-context
  2021-09-03 12:07 ` Hans Hagen via ntg-context
  0 siblings, 1 reply; 2+ messages in thread
From: fv leung via ntg-context @ 2021-09-03  9:48 UTC (permalink / raw)
  To: ntg-context; +Cc: fv leung


[-- Attachment #1.1: Type: text/plain, Size: 3131 bytes --]

\starttext

\m{\root3\of2}

\stoptext

works.

But

\starttext

\startMPcode
  label("\m{\root3\of2}", origin);
\stopMPcode

\stoptext

doesn't.

Running `LuaMetaTeX' on `trial' with
``/home/fvleung/ConTeXt/tex/texmf-linux-64/bin/mtxrun --autogenerate
--script context trial.tex''

resolvers       | formats | executing runner 'run luametatex format':
/home/fvleung/ConTeXt/tex/texmf-linux-64/bin/luametatex --jobname="trial"
--fmt=/home/fvleung/ConTeXt/tex/texmf-cache/luatex-cache/context/5fe67e0bfe781ce0dde776fb1556f32e/formats/luametatex/cont-en.fmt
--lua=/home/fvleung/ConTeXt/tex/texmf-cache/luatex-cache/context/5fe67e0bfe781ce0dde776fb1556f32e/formats/luametatex/cont-en.lui
cont-yes.mkiv --c:currentrun=1 --c:fulljobname="./trial.tex"
--c:input="./trial.tex" --c:kindofrun=1 --c:maxnofruns=9
--c:texmfbinpath="/home/fvleung/ConTeXt/tex/texmf-linux-64/bin"
open source     > level 1, order 1, name 'cont-yes.mkiv'
fonts           > beware: no fonts are loaded yet, using 'lm mono' in box
system          >
system          > ConTeXt  ver: 2021.07.27 19:27 LMTX  fmt: 2021.7.28  int:
english/english
system          >
system          > 'cont-new.mkxl' loaded
open source     > level 2, order 2, name
'/home/fvleung/ConTeXt/tex/texmf-context/tex/context/base/mkxl/cont-new.mkxl'
system          > beware: some patches loaded from cont-new.mkiv
close source    > level 2, order 2, name
'/home/fvleung/ConTeXt/tex/texmf-context/tex/context/base/mkxl/cont-new.mkxl'
system          > files > jobname './trial', input './trial.tex', result
'./trial'
fonts           > latin modern fonts are not preloaded
languages       > language 'en' is active
open source     > level 2, order 3, name './trial.tex'
fonts           > preloading latin modern fonts (second stage)
fonts           > 'fallback modern-designsize rm 12pt' is loaded
metapost        > initializing instance 'metafun:1' using format 'metafun'
and method 'default'
metapost        > loading 'metafun' as 'metafun.mpxl' using method 'default'
metapost        > initializing number mode 'scaled'
metapost        > trace > This is MPLIB for LuaMetaTeX, version 3.11,
running in scaled mode.
metapost        > trace >
metapost        > trace > loading metafun for lmtx, including the plain
1.004 base definitions
metapost        > trace >
tex error       > tex error on line 7 in file ./trial.tex: Argument of
\root has an extra }

32\normalstopimath \fi

<inserted text>
    \par
<to be read again>
    }
<lua output> }


<local> \global \setbox \mptextbox \hbox {\clf_mptexttoks
    }

<inserted text>
    [[special cmd: end local call]]

<to be read again>
    \relax
...


<line 4.5> \stopMPcode

1     \starttext
2
3     \startMPcode
4       label("\m{\root3\of2}", origin);
5     \stopMPcode
6
7 >>  \stoptext
8
I've run across a '}' that doesn't seem to match anything. For example,
'\def\a#1{...}' and '\a}' would produce this error. The '\par' that I've
just
inserted will cause me to report a runaway argument that might be the root
of the
problem.
mtx-context     | fatal error: return code: 256

TeX Output exited abnormally with code 1 at Fri Sep  3 17:44:19

[-- Attachment #1.2: Type: text/html, Size: 4081 bytes --]

[-- Attachment #2: Type: text/plain, Size: 493 bytes --]

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: metafun doesn't compile \root 3 \of 2
  2021-09-03  9:48 metafun doesn't compile \root 3 \of 2 fv leung via ntg-context
@ 2021-09-03 12:07 ` Hans Hagen via ntg-context
  0 siblings, 0 replies; 2+ messages in thread
From: Hans Hagen via ntg-context @ 2021-09-03 12:07 UTC (permalink / raw)
  To: mailing list for ConTeXt users; +Cc: Hans Hagen

On 9/3/2021 11:48 AM, fv leung via ntg-context wrote:
> \starttext
> 
> \m{\root3\of2}
> 
> \stoptext
> 
> works.
> 
> But
> 
> \starttext
> 
> \startMPcode
>    label("\m{\root3\of2}", origin);
> \stopMPcode
> 
> \stoptext
> 
> doesn't.
draw thetextext("\m{\root3\of2}",origin);

labels are done in the default (normally monospace) font

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2021-09-03 12:07 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-09-03  9:48 metafun doesn't compile \root 3 \of 2 fv leung via ntg-context
2021-09-03 12:07 ` Hans Hagen via ntg-context

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).