diff options
author | Hans Hagen <pragma@wxs.nl> | 2022-08-05 12:41:19 +0200 |
---|---|---|
committer | Context Git Mirror Bot <phg@phi-gamma.net> | 2022-08-05 12:41:19 +0200 |
commit | 79db9f0bfc67ea8b4ed21d966e270f0adddfd8b8 (patch) | |
tree | 47d1b3ffd491caa9bd24117387d7eb7ba5535637 /tex/context/modules | |
parent | 1e83b1b27a30fc8df44607a37103b6c65efec538 (diff) | |
download | context-79db9f0bfc67ea8b4ed21d966e270f0adddfd8b8.tar.gz |
2022-08-05 11:41:00
Diffstat (limited to 'tex/context/modules')
-rw-r--r-- | tex/context/modules/mkxl/x-mathml.mkxl | 39 |
1 files changed, 25 insertions, 14 deletions
diff --git a/tex/context/modules/mkxl/x-mathml.mkxl b/tex/context/modules/mkxl/x-mathml.mkxl index 1cb94ff44..12ddf2586 100644 --- a/tex/context/modules/mkxl/x-mathml.mkxl +++ b/tex/context/modules/mkxl/x-mathml.mkxl @@ -612,11 +612,13 @@ \stopxmlsetups \startxmlsetups mml:cn:polar:b - {\mr e}\normalsuperscript{\xmlsnippet{#1}{1}+\xmlsnippet{#1}{3}\thinspace{\mr i}} +% {\mr e}\normalsuperscript{\xmlsnippet{#1}{1}+\xmlsnippet{#1}{3}\thinspace{\mr i}} + \ee\normalsuperscript{\xmlsnippet{#1}{1}+\xmlsnippet{#1}{3}\ii} \stopxmlsetups \startxmlsetups mml:cn:polar:c - \exp\left(\xmlsnippet{#1}{1}+\xmlsnippet{#1}{3}\thinspace{\mr i}\right) +% \exp\left(\xmlsnippet{#1}{1}+\xmlsnippet{#1}{3}\thinspace{\mr i}\right) + \exp\left(\xmlsnippet{#1}{1}+\xmlsnippet{#1}{3}\ii\right) \stopxmlsetups \startxmlsetups mml:cn:complex-polar @@ -624,7 +626,8 @@ \stopxmlsetups \startxmlsetups mml:cn:complex % todo ( ) - \left(\xmlsnippet{#1}{1} + \xmlsnippet{#1}{3}\thinspace{\mr i}\right) +% \left(\xmlsnippet{#1}{1} + \xmlsnippet{#1}{3}\thinspace{\mr i}\right) + \left(\xmlsnippet{#1}{1} + \xmlsnippet{#1}{3}\ii\right) \stopxmlsetups \startxmlsetups mml:cn:complex-cartesian @@ -832,7 +835,7 @@ \startxmlsetups mml:otherwise % \xmlflush{#1}\MMLcPIECEseparator&{\mr otherwise}\crcr - \xmlflush{#1}&{\mr otherwise}\crcr + \xmlflush{#1}&\mtext{otherwise}\crcr \stopxmlsetups % end of piece @@ -866,8 +869,10 @@ % min max -\startxmlsetups mml:min \mathopnolimits{min} \xmlsetup{#1}{mml:minmax} \stopxmlsetups -\startxmlsetups mml:max \mathopnolimits{max} \xmlsetup{#1}{mml:minmax} \stopxmlsetups +% \startxmlsetups mml:min \mathopnolimits{min} \xmlsetup{#1}{mml:minmax} \stopxmlsetups +\startxmlsetups mml:min \min \xmlsetup{#1}{mml:minmax} \stopxmlsetups +% \startxmlsetups mml:max \mathopnolimits{max} \xmlsetup{#1}{mml:minmax} \stopxmlsetups +\startxmlsetups mml:max \max \xmlsetup{#1}{mml:minmax} \stopxmlsetups \startxmlsetups mml:minmax \xmldoif {#1} {/mml:bvar} { @@ -1243,7 +1248,8 @@ \xmlfirst{#1}{/mml:ci} } \xmldoifelse {#1} {/mml:bvar} { - \thinspace {\mr d} \xmlfirst{#1}{/mml:bvar} +% \thinspace {\mr d} \xmlfirst{#1}{/mml:bvar} + \dd \xmlfirst{#1}{/mml:bvar} } { % nothing } @@ -1270,7 +1276,8 @@ } { \xmldoifelse {#1} {/mml:bvar} { \mmlfrac { - {\mr d}{ +% {\mr d}{ + \dd{ \xmldoifelse {#1} {/mml:degree} { \normalsuperscript{\xmlconcat{#1}{/mml:degree}\empty} } { @@ -1292,7 +1299,8 @@ } } } { - {\mr d} +% {\mr d} + \dd \xmlfirst{#1}{/mml:bvar/!mml:degree} \xmldoif {#1} {/mml:bvar/mml:degree} { \normalsuperscript{\xmlfirst{#1}{/mml:bvar/mml:degree}} @@ -1330,7 +1338,8 @@ \startxmlsetups mml:partialdiff \xmldoifelse {#1} {/mml:list} { - {\mr D}\normalsubscript{ +% {\mr D}\normalsubscript{ + \DD\normalsubscript{ \begingroup \setfalse\mmllistdelimiters \xmlall{#1}{/mml:list} @@ -1340,7 +1349,8 @@ } { \xmldoifelse {#1} {/mml:bvar} { \mmlfrac { - {\mr d}\normalsuperscript{ +% {\mr d}\normalsuperscript{ + \dd\normalsuperscript{ \xmldoifelse {#1} {/mml:degree} { \xmlconcat{#1}{/mml:degree}\empty } { @@ -1353,7 +1363,8 @@ \xmldoif {#1}{/mml:bvar/!mml:degree} { \xmlfirst{#1}{/mml:bvar/!mml:degree} \, } - {\mr d}\xmlfirst{#1}{/(mml:apply\string|mml:reln\string|mml:ci\string|mml:cn)} +% {\mr d}\xmlfirst{#1}{/(mml:apply\string|mml:reln\string|mml:ci\string|mml:cn)} + \dd\xmlfirst{#1}{/(mml:apply\string|mml:reln\string|mml:ci\string|mml:cn)} \xmldoif {#1} {/mml:bvar/mml:degree} { \normalsuperscript{\xmlfirst{#1}{/mml:bvar/mml:degree}} } @@ -1692,8 +1703,8 @@ \startxmlsetups mml:naturalnumbers \naturalnumbers \stopxmlsetups \startxmlsetups mml:complexes \complexes \stopxmlsetups \startxmlsetups mml:primes \primes \stopxmlsetups -\startxmlsetups mml:exponentiale \mathopnolimits{e} \stopxmlsetups -\startxmlsetups mml:imaginaryi \mathopnolimits{i} \stopxmlsetups +\startxmlsetups mml:exponentiale \ee \stopxmlsetups % \mathopnolimits{e} \stopxmlsetups +\startxmlsetups mml:imaginaryi \ii \stopxmlsetups % \mathopnolimits{i} \stopxmlsetups \startxmlsetups mml:notanumber \mathopnolimits{NaN} \stopxmlsetups \startxmlsetups mml:true \mathopnolimits{true} \stopxmlsetups \startxmlsetups mml:false \mathopnolimits{false} \stopxmlsetups |