ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: fv leung via ntg-context <ntg-context@ntg.nl>
To: ntg-context@ntg.nl
Cc: fv leung <fvleung@gmail.com>
Subject: metafun doesn't compile \root 3 \of 2
Date: Fri, 3 Sep 2021 17:48:12 +0800	[thread overview]
Message-ID: <CAN-yaTmFdGyeyLXuzbH4pF30vphTCYDuEEt_YVYpvMkPpgaKfw@mail.gmail.com> (raw)


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

             reply	other threads:[~2021-09-03  9:48 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-09-03  9:48 fv leung via ntg-context [this message]
2021-09-03 12:07 ` Hans Hagen via ntg-context

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CAN-yaTmFdGyeyLXuzbH4pF30vphTCYDuEEt_YVYpvMkPpgaKfw@mail.gmail.com \
    --to=ntg-context@ntg.nl \
    --cc=fvleung@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).