* MathML broken in mkiv?
@ 2011-02-27 14:40 Reviczky, Adam
2011-02-27 17:18 ` Hans Hagen
0 siblings, 1 reply; 2+ messages in thread
From: Reviczky, Adam @ 2011-02-27 14:40 UTC (permalink / raw)
To: ntg-context
[-- Attachment #1: Type: text/plain, Size: 167 bytes --]
Hi
I'm trying to use MathML with mkiv (latest beta), but I'm getting errors.
I'm attaching the minimal example (borrowed from the wiki) and the log file.
Adam
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: mathml.tex --]
[-- Type: text/x-tex; name="mathml.tex", Size: 264 bytes --]
\usemodule[mathml]
\starttext
test
\xmlprocessdata{}{
<math xmlns='http://www.w3.org/1998/Math/MathML'>
<mrow>
<msup> <mi>x</mi><mn>2</mn> </msup>
<mo>+</mo>
<mrow>
<mn>4</mn><mi>x</mi>
</mrow>
<mo>+</mo>
<mn>4</mn>
</mrow>
</math>
}{}
\stoptext
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #3: mathml.log --]
[-- Type: text/x-log; name="mathml.log", Size: 14882 bytes --]
(mathml.tex
ConTeXt ver: 2011.02.25 22:03 MKIV fmt: 2011.2.26 int: english/english
system > cont-new.mkiv loaded
(/usr/share/texmf/tex/context/base/cont-new.mkiv
system > beware: some patches loaded from cont-new.mkiv
)
system > mathml.top loaded
system > options > begin of optionfile
system > options >
system > options > % runtime options files (command line driven)
system > options > \unprotect
system > options > % feedback and basic job control
system > options > % handy for special styles
system > options > \startluacode
system > options > document = document or { }
system > options > document.arguments={
system > options > }
system > options > document.files={
system > options > "mathml.tex",
system > options > }
system > options > \stopluacode
system > options > % process info
system > options > \setupsystem[inputfile=mathml.tex]
system > options > \setupsystem[\c!n=1,\c!m=1]
system > options > % modes
system > options > % options (not that important)
system > options > \startsetups *runtime:options
system > options > \stopsetups
system > options > % styles and modules
system > options > \startsetups *runtime:modules
system > options > \stopsetups
system > options > % done
system > options > \protect \endinput
system > options >
system > options > end of optionfile
(mathml.top)
fonts > latin modern fonts are not preloaded
languages > language en is active
resolvers > modules > loaded: 'mathml'
(/usr/share/texmf/tex/context/base/x-mathml.mkiv
loading > ConTeXt XML Macros / MathML Renderer
<- /usr/share/texmf/tex/context/base/x-mathml.lua>
resolvers > modules > loaded: 'calcmath'
(/usr/share/texmf/tex/context/base/x-calcmath.mkiv<+ /usr/share/texmf/tex/context/base/x-calcmath.lua>)){/usr/share/texmf/fonts/map/pdftex/context/mkiv-base.map}
fonts > preloading latin modern fonts (second stage)
(/usr/share/texmf/tex/context/base/type-siz.mkiv) (/usr/share/texmf/tex/context/base/type-otf.mkiv){/usr/share/texmf/fonts/map/dvips/lm/lm-math.map}{/usr/share/texmf/fonts/map/dvips/lm/lm-rm.map}
fonts > fallback modern rm 12pt is loaded
system > begin file mathml.tex at line 2
xml > lpath > unknown function 'remapopenmath'
xml > lpath > unknown function 'remapmmlbind'
xml > lpath > unknown function 'remapmmlcsymbol'
! LuaTeX error <main ctx instance>:1: attempt to index field 'mathml' (a nil value)
stack traceback:
<main ctx instance>:1: in main chunk.
system > tex > error on line 7 in file mathml.tex: LuaTeX error ...
1 \usemodule[mathml]
2 \starttext
3 test
4 \xmlprocessdata{}{
5 <math xmlns='http://www.w3.org/1998/Math/MathML'>
6 <mrow>
7 >> <msup> <mi>x</mi><mn>2</mn> </msup>
8 <mo>+</mo>
9 <mrow>
10 <mn>4</mn><mi>x</mi>
11 </mrow>
12 <mo>+</mo>
13 <mn>4</mn>
14 </mrow>
15 </math>
16 }{}
17 \stoptext
\ctxmodulemathml ...rocount {moduledata.mathml.#1}
\@@su:mml:mo ...miter }\ctxmodulemathml {mo("#1")}
\setfalse \mmlignoredelimi...
l.7 }
\ctxlxml #1->\directlua \zerocount {lxml.#1}
\checkdelimiters ...\right \rightfakedelimiter $#1
\expandafter $\expandafter...
<argument> ...kdelimiters {\xmlall {::3}{/mml:mo}}
\fakeleftdelimiter \xmlflu...
...
l.16 }{}
? q
OK, entering \batchmode...
! LuaTeX error <main ctx instance>:1: attempt to index field 'mathml' (a nil value)
stack traceback:
<main ctx instance>:1: in main chunk.
system > tex > error on line 14 in file mathml.tex: LuaTeX error ...
4 \xmlprocessdata{}{
5 <math xmlns='http://www.w3.org/1998/Math/MathML'>
6 <mrow>
7 <msup> <mi>x</mi><mn>2</mn> </msup>
8 <mo>+</mo>
9 <mrow>
10 <mn>4</mn><mi>x</mi>
11 </mrow>
12 <mo>+</mo>
13 <mn>4</mn>
14 >> </mrow>
15 </math>
16 }{}
17 \stoptext
18
\ctxmodulemathml ...rocount {moduledata.mathml.#1}
\@@su:mml:mo ...miter }\ctxmodulemathml {mo("#1")}
\setfalse \mmlignoredelimi...
l.14 }
\ctxlxml #1->\directlua \zerocount {lxml.#1}
\checkdelimiters ...\right \rightfakedelimiter $#1
\expandafter $\expandafter...
<argument> ...kdelimiters {\xmlall {::3}{/mml:mo}}
\fakeleftdelimiter \xmlflu...
...
l.16 }{}
The lua interpreter ran into a problem, so the
remainder of this lua chunk will be ignored.
! LuaTeX error <main ctx instance>:1: attempt to index field 'mathml' (a nil value)
stack traceback:
<main ctx instance>:1: in main chunk.
system > tex > error on line 7 in file mathml.tex: LuaTeX error ...
1 \usemodule[mathml]
2 \starttext
3 test
4 \xmlprocessdata{}{
5 <math xmlns='http://www.w3.org/1998/Math/MathML'>
6 <mrow>
7 >> <msup> <mi>x</mi><mn>2</mn> </msup>
8 <mo>+</mo>
9 <mrow>
10 <mn>4</mn><mi>x</mi>
11 </mrow>
12 <mo>+</mo>
13 <mn>4</mn>
14 </mrow>
15 </math>
16 }{}
17 \stoptext
\ctxmodulemathml ...rocount {moduledata.mathml.#1}
l.7 }
\ctxlxml #1->\directlua \zerocount {lxml.#1}
<argument> {\mmlfirst {::4}
}\normalsuperscript {\mmlsecond {::4}}
\firstoftwoarguments #1#2->#1
l.8 }
...
l.16 }{}
The lua interpreter ran into a problem, so the
remainder of this lua chunk will be ignored.
! LuaTeX error <main ctx instance>:1: attempt to index field 'mathml' (a nil value)
stack traceback:
<main ctx instance>:1: in main chunk.
system > tex > error on line 7 in file mathml.tex: LuaTeX error ...
1 \usemodule[mathml]
2 \starttext
3 test
4 \xmlprocessdata{}{
5 <math xmlns='http://www.w3.org/1998/Math/MathML'>
6 <mrow>
7 >> <msup> <mi>x</mi><mn>2</mn> </msup>
8 <mo>+</mo>
9 <mrow>
10 <mn>4</mn><mi>x</mi>
11 </mrow>
12 <mo>+</mo>
13 <mn>4</mn>
14 </mrow>
15 </math>
16 }{}
17 \stoptext
\ctxmodulemathml ...rocount {moduledata.mathml.#1}
\@@su:mml:mn ...up \mr \ctxmodulemathml {mn("#1")}
\endgroup
l.7 }
\ctxlxml #1->\directlua \zerocount {lxml.#1}
<argument> ...\normalsuperscript {\mmlsecond {::4}
}
\firstoftwoarguments #1#2->#1
...
l.16 }{}
The lua interpreter ran into a problem, so the
remainder of this lua chunk will be ignored.
! LuaTeX error <main ctx instance>:1: attempt to index field 'mathml' (a nil value)
stack traceback:
<main ctx instance>:1: in main chunk.
system > tex > error on line 16 in file mathml.tex: LuaTeX error ...
6 <mrow>
7 <msup> <mi>x</mi><mn>2</mn> </msup>
8 <mo>+</mo>
9 <mrow>
10 <mn>4</mn><mi>x</mi>
11 </mrow>
12 <mo>+</mo>
13 <mn>4</mn>
14 </mrow>
15 </math>
16 >> }{}
17 \stoptext
18
\ctxmodulemathml ...rocount {moduledata.mathml.#1}
\@@su:mml:mo ...miter }\ctxmodulemathml {mo("#1")}
\setfalse \mmlignoredelimi...
l.16 }
\ctxlxml #1->\directlua \zerocount {lxml.#1}
<argument> ...}}\fakeleftdelimiter \xmlflush {::3}
\fakerightdelimiter \disab...
\firstoftwoarguments #1#2->#1
...
l.16 }{}
The lua interpreter ran into a problem, so the
remainder of this lua chunk will be ignored.
! LuaTeX error <main ctx instance>:1: attempt to index field 'mathml' (a nil value)
stack traceback:
<main ctx instance>:1: in main chunk.
system > tex > error on line 8 in file mathml.tex: LuaTeX error ...
1 \usemodule[mathml]
2 \starttext
3 test
4 \xmlprocessdata{}{
5 <math xmlns='http://www.w3.org/1998/Math/MathML'>
6 <mrow>
7 <msup> <mi>x</mi><mn>2</mn> </msup>
8 >> <mo>+</mo>
9 <mrow>
10 <mn>4</mn><mi>x</mi>
11 </mrow>
12 <mo>+</mo>
13 <mn>4</mn>
14 </mrow>
15 </math>
16 }{}
17 \stoptext
18
\ctxmodulemathml ...rocount {moduledata.mathml.#1}
\@@su:mml:mn ...up \mr \ctxmodulemathml {mn("#1")}
\endgroup
l.8 }
\ctxlxml #1->\directlua \zerocount {lxml.#1}
\@@su:mml:mrow ...lflush {#1}}\else \xmlflush {#1}
\fi \endgroup
l.24 }
...
l.16 }{}
The lua interpreter ran into a problem, so the
remainder of this lua chunk will be ignored.
! LuaTeX error <main ctx instance>:1: attempt to index field 'mathml' (a nil value)
stack traceback:
<main ctx instance>:1: in main chunk.
system > tex > error on line 15 in file mathml.tex: LuaTeX error ...
5 <math xmlns='http://www.w3.org/1998/Math/MathML'>
6 <mrow>
7 <msup> <mi>x</mi><mn>2</mn> </msup>
8 <mo>+</mo>
9 <mrow>
10 <mn>4</mn><mi>x</mi>
11 </mrow>
12 <mo>+</mo>
13 <mn>4</mn>
14 </mrow>
15 >> </math>
16 }{}
17 \stoptext
18
\ctxmodulemathml ...rocount {moduledata.mathml.#1}
l.15 }
\ctxlxml #1->\directlua \zerocount {lxml.#1}
\@@su:mml:mrow ...lflush {#1}}\else \xmlflush {#1}
\fi \endgroup
l.24 }
\ctxlxml #1->\directlua \zerocount {lxml.#1}
...
l.16 }{}
The lua interpreter ran into a problem, so the
remainder of this lua chunk will be ignored.
! LuaTeX error <main ctx instance>:1: attempt to index field 'mathml' (a nil value)
stack traceback:
<main ctx instance>:1: in main chunk.
system > tex > error on line 32 in file mathml.tex: LuaTeX error ...
\ctxmodulemathml ...rocount {moduledata.mathml.#1}
\@@su:mml:mo ...miter }\ctxmodulemathml {mo("#1")}
\setfalse \mmlignoredelimi...
l.32 }
\ctxlxml #1->\directlua \zerocount {lxml.#1}
<argument> ...}}\fakeleftdelimiter \xmlflush {::3}
\fakerightdelimiter \disab...
\firstoftwoarguments #1#2->#1
...
l.16 }{}
The lua interpreter ran into a problem, so the
remainder of this lua chunk will be ignored.
! LuaTeX error <main ctx instance>:1: attempt to index field 'mathml' (a nil value)
stack traceback:
<main ctx instance>:1: in main chunk.
system > tex > error on line 40 in file mathml.tex: LuaTeX error ...
\ctxmodulemathml ...rocount {moduledata.mathml.#1}
\@@su:mml:mn ...up \mr \ctxmodulemathml {mn("#1")}
\endgroup
l.40 }
\ctxlxml #1->\directlua \zerocount {lxml.#1}
<argument> ...}}\fakeleftdelimiter \xmlflush {::3}
\fakerightdelimiter \disab...
\firstoftwoarguments #1#2->#1
...
l.16 }{}
The lua interpreter ran into a problem, so the
remainder of this lua chunk will be ignored.
backend > xmp > using file '/usr/share/texmf/tex/context/base/lpdf-pdx.xml'
pages > flushing realpage 1, userpage 1, subpage 1
system > end file mathml.tex at line 17
)</usr/share/texmf/fonts/opentype/public/lm/lmroman12-regular.otf>
mkiv lua stats > used config file - /usr/share/texmf/web2c/texmfcnf.lua
mkiv lua stats > used cache path - /home/reviczky/.texmf-var/luatex-cache/context/e570cb3e0e3ab0118ca08dd148bbec7d
mkiv lua stats > input load time - 0.165 seconds
mkiv lua stats > stored bytecode data - 275 modules, 56 tables, 331 chunks
mkiv lua stats > loaded tex modules - 2 requested, 2 found (*-mathml x-calcmath), 0 missing
mkiv lua stats > cleaned up reserved nodes - 33 nodes, 9 lists of 411
mkiv lua stats > node memory usage - 19 glue_spec
mkiv lua stats > node list callback tasks - 6 unique task lists, 6 instances (re)created, 2647 calls
mkiv lua stats > used backend - pdf (backend for directly generating pdf output)
mkiv lua stats > loaded patterns - en::2
mkiv lua stats > callbacks - 2796 direct, 5272 indirect, 8068 total
mkiv lua stats > xml load time - 0.000 seconds, 0 files, 1 converted
mkiv lua stats > lxml preparation time - 0.001 seconds, 12 nodes, 26 lpath calls, 3 cached calls
mkiv lua stats > result saved in file - mathml.pdf
mkiv lua stats > loaded fonts - 33 files: stmary10.afm eufb10.tfm eufb7.tfm eufm10.tfm eufm7.tfm msam10.tfm msam7.tfm msbm10.tfm msbm7.tfm lmmono12-regular.otf lmmono8-regular.otf lmmono9-regular.otf lmroman12-bold.otf lmroman12-regular.otf lmroman7-bold.otf lmroman7-regular.otf lmroman9-bold.otf lmroman9-regular.otf lmsans12-regular.otf lmsans8-regular.otf lmsans9-regular.otf lmex10.tfm lmmi12.tfm lmmi7.tfm lmmi9.tfm lmmib10.tfm lmmib7.tfm lmsy10.tfm lmsy7.tfm lmsy9.tfm rm-lmr12.tfm rm-lmr7.tfm rm-lmr9.tfm
mkiv lua stats > fonts load time - 0.549 seconds
mkiv lua stats > luatex banner - this is luatex, version beta-0.66.0-2011022404 (rev 4088)
mkiv lua stats > control sequences - 30119 of 165536
mkiv lua stats > current memory usage - 32 MB (ctx: 33 MB)
mkiv lua stats > runtime - 12.996 seconds, 1 processed pages, 1 shipped pages, 0.077 pages/second
[-- Attachment #4: Type: text/plain, Size: 486 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://tex.aanhet.net
archive : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: MathML broken in mkiv?
2011-02-27 14:40 MathML broken in mkiv? Reviczky, Adam
@ 2011-02-27 17:18 ` Hans Hagen
0 siblings, 0 replies; 2+ messages in thread
From: Hans Hagen @ 2011-02-27 17:18 UTC (permalink / raw)
To: mailing list for ConTeXt users; +Cc: Reviczky, Adam
On 27-2-2011 3:40, Reviczky, Adam wrote:
> Hi
>
> I'm trying to use MathML with mkiv (latest beta), but I'm getting errors.
> I'm attaching the minimal example (borrowed from the wiki) and the log file..
remove line 20 in x-mathml.lua
-----------------------------------------------------------------
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
-----------------------------------------------------------------
___________________________________________________________________________________
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://tex.aanhet.net
archive : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2011-02-27 17:18 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-02-27 14:40 MathML broken in mkiv? Reviczky, Adam
2011-02-27 17:18 ` Hans Hagen
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).