diff options
Diffstat (limited to 'Master/texmf-dist/tex/luatex/optex/base/math-unicode.opm')
-rw-r--r-- | Master/texmf-dist/tex/luatex/optex/base/math-unicode.opm | 22 |
1 files changed, 12 insertions, 10 deletions
diff --git a/Master/texmf-dist/tex/luatex/optex/base/math-unicode.opm b/Master/texmf-dist/tex/luatex/optex/base/math-unicode.opm index f35b8652e0b..03222fdad05 100644 --- a/Master/texmf-dist/tex/luatex/optex/base/math-unicode.opm +++ b/Master/texmf-dist/tex/luatex/optex/base/math-unicode.opm @@ -1,6 +1,6 @@ %% This is part of OpTeX project, see http://petr.olsak.net/optex -\_codedecl \loadmath {Unicode Math fonts <2020-02-25>} % preloaded in format +\_codedecl \loadmath {Unicode Math fonts <2020-06-06>} % preloaded in format \_doc ----------------------------- \`\loadmath` `{<Unicode-math font>}` loads given font. It does: @@ -81,6 +81,8 @@ \_delimitershortfall=0.5\_fontdimen6\_textfont3 \_nulldelimiterspace=0.12\_fontdimen6\_textfont3 \_scriptspace=0.05\_fontdimen6\_textfont3 + {\_everymath{}\_global\_setbox0=\_hbox{$\_displaystyle{0\_atop0}$}}% correction for \choose + \_Umathfractiondelsize\_displaystyle = \_dimexpr(\_ht0-\_Umathaxis\_displaystyle)*2\_relax } \_doc ----------------------------- @@ -116,7 +118,7 @@ different parts of Unicode table. We need auxiliary macros for setting mathcodes by selected math alphabet. \nl - \`\_umathrange` `{<from->-<to>}\<first>` sets `\Umathcode`s + \`\_umathrange` `{<from->-<to>}<class><family>\<first>` sets `\Umathcode`s of the characters in the interval `<from>-<to>` to `\<first>`, `\<first>+1`, `\<first>+2` etc., but \`\_umathcharholes` are skipped @@ -153,21 +155,17 @@ [120122]{"2102}[120127]{"210D}[120133]{"2115}[120135]{"2119} [120136]{"211A}[120137]{"211D}[120145]{"2124}% } -\_def\_umathrange#1#2{\_umathnumB=#2\_relax \_umathrangeA#1} +\_def\_umathrange#1#2#3#4{\_umathnumB=#4\_def\_tmp{#2 #3 }\_umathrangeA#1} \_def\_umathrangeA#1-#2{\_umathnumA=`#1\_relax \_loop \_umathcorr\_umathprepare\_umathnumB - \_Umathcode \_umathnumA = 7 1 \_umathcorr\_umathvalue{\_umathnumB} + \_Umathcode \_umathnumA = \_tmp \_umathcorr\_umathvalue{\_umathnumB} \_ifnum\_umathnumA<`#2\_relax \_advance\_umathnumA by1 \_advance\_umathnumB by1 \_repeat } -\_def\_umathrangeGREEK{\_begingroup - \_lccode`A="0391 \_lccode`Z="03A9 - \_lowercase{\_endgroup \_umathrange{A-Z}}} -\_def\_umathrangegreek{\_begingroup - \_lccode`A="03B1 \_lccode`Z="03D6 - \_lowercase{\_endgroup \_umathrange{A-Z}}} +\_def\_umathrangeGREEK{\_umathrange{^^^^0391-^^^^03a9}} +\_def\_umathrangegreek{\_umathrange{^^^^03b1-^^^^03d6}} \_def\_greekdef#1{\_ifx#1\_relax \_else \_begingroup \_lccode`X=\_umathnumB \_lowercase{\_endgroup \_def#1{X}}% \_advance\_umathnumB by 1 @@ -228,9 +226,13 @@ the section~\ref[math-macros]. \printdoc unimath-codes.opm \printdoctail unimath-codes.opm +\secc Printing all Unicode math slots in used math font +\printdoctail print-unimath.opm +\printdoc print-unimath.opm \_endinput +2020-06-07 \Umathfractiondelsize (for \choose brackets) corrected, see https://tug.org/pipermail/luatex/2020-June/007365.html 2020-04-15 \_setmathdimens -> \_setuniathdimens 2020-02-25 implemented |