diff options
Diffstat (limited to 'macros/optex/base/unimath-codes.opm')
-rw-r--r-- | macros/optex/base/unimath-codes.opm | 72 |
1 files changed, 40 insertions, 32 deletions
diff --git a/macros/optex/base/unimath-codes.opm b/macros/optex/base/unimath-codes.opm index ea40116ab8..ec0067890e 100644 --- a/macros/optex/base/unimath-codes.opm +++ b/macros/optex/base/unimath-codes.opm @@ -1,6 +1,6 @@ %% This is part of the OpTeX project, see http://petr.olsak.net/optex -\_codedecl \_ncharrmA {Uni math codes <2022-01-06>} % preloaded on demand by \loadmath +\_codedecl \_ncharrmA {Uni math codes <2022-02-22>} % preloaded on demand by \loadmath \_doc ----------------------------- The control sequences for `\alpha`, `\beta` etc are redefined here. @@ -108,18 +108,14 @@ \_protected\_def\_ttdigits {\_umathrange{0-9}71\_digitttO} \_doc ----------------------------- - The \`\cal`, \`\bbchar`, \`\frak`, \`\script` and - the \`\rm`, \`\bf`, \`\it`, \`\bi`, \`\tt` are defined here. - Their \"8bit definitions" from the file `math-preload.opm` - (section~\ref[math-preload]) are removed.\nl + The math alphabets \`\cal`, \`\bbchar`, \`\frak`, \`\script` are re-defined + here. The \`\_marm`, \`\_mabf`, \`\_mait`, \`\_mabi`, \`\_matt` + used in \^`\rm`, \^`\bf`, \^`\it`, \^`\bi` are re-defined too.\nl You can redefine them again if you need different behavior (for example you don't want to use sans serif bold in math). What to do: - \begtt \advance\hsize by2em - \_protected\_def\_bf - {\_tryloadbf\_tenbf \_inmath{\_bfvariables\_bfgreek\_bfGreek\_bfdigits}} - \_protected\_def\_bi - {\_tryloadbi\_tenbi \_inmath{\_bivariables\_bigreek\_bfGreek\_bfdigits}} - \_public \bf \bi ; + \begtt + \_protected\_def\_mabf {\_inmath{\_bfvariables\_bfgreek\_bfGreek\_bfdigits}} + \_protected\_def\_mabi {\_inmath{\_bivariables\_bigreek\_bfGreek\_bfdigits}} \endtt \`\_inmath` `{<cmds>}` applies `<cmds>` only in math mode. \_cod ----------------------------- @@ -130,13 +126,11 @@ % For example, you need upright lowercase greek letters, you don't need % \bf and \bi behave as sans serif in math, ... -\_protected\_def\_rm {\_tryloadrm \_tenrm \_inmath{\_rmvariables \_rmdigits}} -\_protected\_def\_it {\_tryloadit \_tenit \_inmath{\_itvariables \_itGreek}} -\_protected\_def\_bf - {\_tryloadbf \_tenbf \_inmath{\_bsansvariables \_bsansgreek \_bsansGreek \_bsansdigits}} -\_protected\_def\_bi - {\_tryloadbi \_tenbi \_inmath{\_bisansvariables \_bisansgreek \_bsansGreek \_bsansdigits}} -\_protected\_def\_tt {\_tryloadtt \_tentt \_inmath{\_ttvariables \_ttdigits}} +\_protected\_def\_marm {\_inmath{\_rmvariables \_rmdigits}} +\_protected\_def\_mait {\_inmath{\_itvariables \_itGreek}} +\_protected\_def\_mabf {\_inmath{\_bsansvariables \_bsansgreek \_bsansGreek \_bsansdigits}} +\_protected\_def\_mabi {\_inmath{\_bisansvariables \_bisansgreek \_bsansGreek \_bsansdigits}} +\_protected\_def\_matt {\_inmath{\_ttvariables \_ttdigits}} \_protected\_def\_bbchar {\_bbvariables \_bbdigits} \_protected\_def\_cal {\_calvariables} \_protected\_def\_frak {\_frakvariables} @@ -145,7 +139,7 @@ \_protected\_def\_script {\_rmvariables \_fam4 } \_protected\_def\_mit {\_itvariables \_rmdigits \_itgreek \_rmGreek } -\_public \rm \it \bf \bi \tt \bbchar \cal \frak \misans \mbisans \script \mit ; +\_public \bbchar \cal \frak \misans \mbisans \script \mit ; \_doc ----------------------------- Each Unicode slot carries information about math type. This is saved in @@ -243,22 +237,34 @@ \_protected\_def \Vert {\_Udelimiter 0 1 "02016 } \_protected\_def \Vvert {\_Udelimiter 0 1 "02980 } -\_protected\_def \_overbrace #1{\mathop {\Umathaccent 7 1 "023DE{#1}}\limits} -\_protected\_def \_underbrace #1{\mathop {\Umathaccent bottom 7 1 "023DF{#1}}\limits} -\_protected\_def \_overparen #1{\mathop {\Umathaccent 7 1 "023DC{#1}}\limits} -\_protected\_def \_underparen #1{\mathop {\Umathaccent bottom 7 1 "023DD{#1}}\limits} -\_protected\_def \_overbracket #1{\mathop {\Umathaccent 7 1 "023B4{#1}}\limits} -\_protected\_def \_underbracket #1{\mathop {\Umathaccent bottom 7 1 "023B5{#1}}\limits} +\_protected\_def \_overbrace #1{\_mathop {\_Umathaccent 7 1 "023DE{#1}}\_limits} +\_protected\_def \_underbrace #1{\_mathop {\_Umathaccent bottom 7 1 "023DF{#1}}\_limits} +\_protected\_def \_overparen #1{\_mathop {\_Umathaccent 7 1 "023DC{#1}}\_limits} +\_protected\_def \_underparen #1{\_mathop {\_Umathaccent bottom 7 1 "023DD{#1}}\_limits} +\_protected\_def \_overbracket #1{\_mathop {\_Umathaccent 7 1 "023B4{#1}}\_limits} +\_protected\_def \_underbracket #1{\_mathop {\_Umathaccent bottom 7 1 "023B5{#1}}\_limits} \_public \overbrace \underbrace \overparen \underparen \overbracket \underbracket ; -\_protected\def \widehat {\Umathaccent 7 1 "00302 } -\_protected\def \widetilde {\Umathaccent 7 1 "00303 } -\_protected\def \overleftharpoon {\Umathaccent 7 1 "020D0 } -\_protected\def \overrightharpoon {\Umathaccent 7 1 "020D1 } -\_protected\def \overleftarrow {\Umathaccent 7 1 "020D6 } -\_protected\def \overrightarrow {\Umathaccent 7 1 "020D7 } -\_protected\def \overleftrightarrow {\Umathaccent 7 1 "020E1 } +\_protected\_def \widehat {\_Umathaccent 7 1 "00302 } +\_protected\_def \widetilde {\_Umathaccent 7 1 "00303 } +\_protected\_def \overleftharpoon {\_Umathaccent 7 1 "020D0 } +\_protected\_def \overrightharpoon {\_Umathaccent 7 1 "020D1 } +\_protected\_def \overleftarrow {\_Umathaccent 7 1 "020D6 } +\_protected\_def \overrightarrow {\_Umathaccent 7 1 "020D7 } +\_protected\_def \overleftrightarrow {\_Umathaccent 7 1 "020E1 } + +\_protected\_def \wideoverbar {\_Umathaccent 7 1 "00305 } +\_protected\_def \widebreve {\_Umathaccent 7 1 "00306 } +\_protected\_def \widecheck {\_Umathaccent 7 1 "0030C } +\_protected\_def \wideutilde {\_Umathaccent bottom 7 1 "00330 } +\_protected\_def \mathunderbar {\_Umathaccent bottom 7 1 "00332 } +\_protected\_def \underleftrightarrow {\_Umathaccent bottom 7 1 "0034D } +\_protected\_def \widebridgeabove {\_Umathaccent 7 1 "020E9 } +\_protected\_def \underrightharpoondown {\_Umathaccent bottom 7 1 "020EC } +\_protected\_def \underleftharpoondown {\_Umathaccent bottom 7 1 "020ED } +\_protected\_def \underleftarrow {\_Umathaccent bottom 7 1 "020EE } +\_protected\_def \underrightarrow {\_Umathaccent bottom 7 1 "020EF } \_mathchardef\ldotp="612E \_let\|=\Vert @@ -443,6 +449,8 @@ for technical details about Unicode-math. \_endinput History: +2022-02-22 \rm, \bf etc. moved to font-select, \_marm, \_mabf etc. introduced +2022-02-08 several wide math accents added 2022-01-06 \varTheta corrected 2021-09-15 \square, \blacksquare defined 2021-04-25 \triangleright: typo fixed |