| 1 |
%% This is part of the OpTeX project, see http://petr.olsak.net/optex |
| 2 |
|
| 3 |
\_codedecl \_undefined {Printing Unicode-math table \string<2020-06-08>} |
| 4 |
|
| 5 |
\_ifx\_ncharrmA\_undefined \_opwarning{No Unicode math font loaded, printing ignored} |
| 6 |
\_endinput \_fi |
| 7 |
|
| 8 |
\_begingroup |
| 9 |
\_def\UnicodeMathSymbol#1#2#3#4{% |
| 10 |
\_ifnum#1>"10000 \_endinput \_else \_printmathsymbol{#1}{#2}{#3}{#4}\_fi |
| 11 |
} |
| 12 |
\_def\UnicodeMathSymbolA#1#2#3#4{% |
| 13 |
\_ifnum#1>"10000 \_printmathsymbol{#1}{#2}{#3}{#4}\_fi |
| 14 |
} |
| 15 |
\_def\_printmathsymbol#1#2#3#4{% |
| 16 |
\_hbox{\_hbox to2em{$#2{}$\_hss}\_hbox to3em |
| 17 |
{\small\_printop#3\_hss}{\_tt\_string#2\_trycs{_eq:\_string#2}{}}} |
| 18 |
} |
| 19 |
\_def\_eq#1#2{\_sdef{_eq:\_string#2}{=\_string#1}} |
| 20 |
\_eq \diamond\smwhtdiamond \_eq \bullet\smblkcircle \_eq \circ\vysmwhtcircle |
| 21 |
\_eq \bigcirc\mdlgwhtcircle \_eq \to\rightarrow \_eq \le\leq |
| 22 |
\_eq \ge\geq \_eq \neq\ne \_eq \emptyset\varnothing \_eq \hbar\hslash |
| 23 |
\_eq \land\wedge \_eq \lor\vee \_eq \owns\ni \_eq \gets\leftarrow |
| 24 |
\_eq \mathring\ocirc \_eq \lnot\neg \_eq \backepsilon\upbackepsilon |
| 25 |
\_eq \eth\matheth \_eq \dbkarow\dbkarrow \_eq \drbkarow\drbkarrow |
| 26 |
\_eq \hksearow\hksearrow \_eq \hkswarow\hkswarrow |
| 27 |
|
| 28 |
\_tracinglostchars=0 |
| 29 |
\_fontdef\small{\_setfontsize{at5pt}\_rm} |
| 30 |
\_def\_printop{\_def\mathop{Op}} |
| 31 |
\_def\mathalpha{Alph}\_def\mathord{Ord}\_def\mathbin{Bin}\_def\mathrel{Rel} |
| 32 |
\_def\mathopen{Open}\_def\mathclose{Close}\_def\mathpunct{Punct}\_def\mathfence{Fence} |
| 33 |
\_def\mathaccent{Acc}\_def\mathaccentwide{Accw}\_def\mathbotaccentwide{AccBw} |
| 34 |
\_def\mathbotaccent{AccB}\_def\mathaccentoverlay{AccO} |
| 35 |
\_def\mathover{Over}\_def\mathunder{Under} |
| 36 |
\_typosize[7.5/9]\_normalmath \_everymath={} |
| 37 |
|
| 38 |
Codes U+00000 \_dots\ U+10000 |
| 39 |
\_begmulti 3 |
| 40 |
\_input unimath-table.opm |
| 41 |
\_endmulti |
| 42 |
|
| 43 |
\_medskip\_goodbreak |
| 44 |
Codes U+10001 \_dots\ U+1EEF1 \_let\UnicodeMathSymbol=\UnicodeMathSymbolA |
| 45 |
\_begmulti 4 |
| 46 |
\_input unimath-table.opm |
| 47 |
\_endmulti |
| 48 |
\_endgroup |
| 49 |
|
| 50 |
\_endcode |
| 51 |
|
| 52 |
This file can be used for testing your Unicode-math font |
| 53 |
and/or for printing \TeX/ sequences which can be used in math. |
| 54 |
|
| 55 |
Load Unicode math font first (for example by `\fontfam[termes]` or by |
| 56 |
`\loadmath{<math-font>}`) and then you |
| 57 |
can do `\input print-unimath.opm`. The big table with all math symbols is printed. |
| 58 |
|
| 59 |
\_endinput |