diff options
author | Karl Berry <karl@freefriends.org> | 2020-09-22 21:08:49 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2020-09-22 21:08:49 +0000 |
commit | fcde1ba3d731a6534c92efe10defa9f44a7928d4 (patch) | |
tree | bb2065bb8669d42bd0f179480ad7f32b6b6ab90b /Master/texmf-dist/tex/latex/lwarp/lwarp-unicode-math.sty | |
parent | fa6d66c6b0713c364893aa18d4eb1e867b67fbe2 (diff) |
lwarp (22sep20)
git-svn-id: svn://tug.org/texlive/trunk@56405 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/lwarp/lwarp-unicode-math.sty')
-rw-r--r-- | Master/texmf-dist/tex/latex/lwarp/lwarp-unicode-math.sty | 189 |
1 files changed, 176 insertions, 13 deletions
diff --git a/Master/texmf-dist/tex/latex/lwarp/lwarp-unicode-math.sty b/Master/texmf-dist/tex/latex/lwarp/lwarp-unicode-math.sty index a471eac12a9..79e846ece7a 100644 --- a/Master/texmf-dist/tex/latex/lwarp/lwarp-unicode-math.sty +++ b/Master/texmf-dist/tex/latex/lwarp/lwarp-unicode-math.sty @@ -16,6 +16,8 @@ %% and version 1.3 or later is part of all distributions of LaTeX %% version 2005/12/01 or later. \LWR@ProvidesPackagePass{unicode-math}[2019/09/26] +\LWR@origRequirePackage{lwarp-common-mathjax-letters} + \begin{warpMathJax} \LWR@infoprocessingmathjax{unicode-math} @@ -26,15 +28,12 @@ \CustomizeMathJax{\let\symcal\mathcal} \CustomizeMathJax{\let\symscr\mathscr} \CustomizeMathJax{\let\symfrak\mathfrak} + \CustomizeMathJax{\let\symsfup\mathsf} -\CustomizeMathJax{\newcommand{\symsfit}[1]{% - \mmlToken{mi}[mathvariant="sans-serif-italic"]{#1}}% -} +\CustomizeMathJax{\let\symsfit\mathit}% not sans -\CustomizeMathJax{\newcommand{\symbfsf}[1]{% - \mmlToken{mi}[mathvariant="bold-sans-serif"]{#1}}% -} +\CustomizeMathJax{\let\symbfsf\mathbf}% not sans \CustomizeMathJax{\let\symbfup\mathbf} \CustomizeMathJax{\newcommand{\symbfit}[1]{\boldsymbol{#1}}} @@ -44,20 +43,184 @@ \CustomizeMathJax{\let\symbffrak\mathfrak}% not bold -\CustomizeMathJax{\newcommand{\symbfsfup}[1]{% - \mmlToken{mi}[mathvariant="bold-sans-serif"]{#1}}% -} +\CustomizeMathJax{\let\symbfsfup\mathbf}% not sans -\CustomizeMathJax{\newcommand{\symbfsfit}[1]{% - \mmlToken{mi}[mathvariant="sans-serif-bold-italic"]{#1}}% -} +\CustomizeMathJax{\newcommand{\symbfsfit}[1]{\boldsymbol{#1}}}% not sans \CustomizeMathJax{\let\symup\mathrm} \CustomizeMathJax{\let\symbf\mathbf}% \symbfup defined above \CustomizeMathJax{\let\symit\mathit} -\CustomizeMathJax{\let\symsf\mathsf} +\ExplSyntaxOn +\AtBeginDocument{ +\bool_if:NTF \g__um_sfliteral_bool + {\CustomizeMathJax{\let\symsf\symsfup}} + { + \bool_if:NTF \g__um_upsans_bool + {\CustomizeMathJax{\let\symsf\symsfup}} + {\CustomizeMathJax{\let\symsf\symsfit}} + } +} +\ExplSyntaxOff \CustomizeMathJax{\let\symtt\mathtt} \CustomizeMathJax{\let\symbffrac\mathbffrac} +\CustomizeMathJax{\newcommand{\mathfence}[1]{\mathord{#1}}} +\CustomizeMathJax{\newcommand{\mathover}[1]{#1}} +\CustomizeMathJax{\newcommand{\mathunder}[1]{#1}} +\CustomizeMathJax{\newcommand{\mathaccent}[1]{#1}} +\CustomizeMathJax{\newcommand{\mathbotaccent}[1]{#1}} +\CustomizeMathJax{\newcommand{\mathalpha}[1]{\mathord{#1}}} +\ExplSyntaxOn + +\AtBeginDocument{ +\bool_if:NTF \g__um_upGreek_bool + {\LWR@mathjax@addgreek@u@up*{}{}} + {\LWR@mathjax@addgreek@u@it*{}{}} + +\bool_if:NTF \g__um_upgreek_bool + {\LWR@mathjax@addgreek@l@up{}{}} + {\LWR@mathjax@addgreek@l@it{}{}} +} + +\LWR@mathjax@addgreek@u@up*{up}{} +\LWR@mathjax@addgreek@u@it*{it}{} +\LWR@mathjax@addgreek@l@up{up}{} +\LWR@mathjax@addgreek@l@it{it}{} + +\ExplSyntaxOff + +\CustomizeMathJax{\let\lparen(} +\CustomizeMathJax{\let\rparen)} +\CustomizeMathJax{\newcommand{\cuberoot}[1]{\,{}^3\!\!\sqrt{#1}}\,} +\CustomizeMathJax{\newcommand{\fourthroot}[1]{\,{}^4\!\!\sqrt{#1}}\,} + +\CustomizeMathJax{\let\lbrbrak[} +\CustomizeMathJax{\let\rbrbrak]} + +\CustomizeMathJax{\newcommand{\lbag}{\mathopen{\unicode{x027C5}}}}% not \left +\CustomizeMathJax{\newcommand{\rbag}{\mathclose{\unicode{x027C6}}}}% not \right + +\CustomizeMathJax{\newcommand{\longdivision}[1]{\mathord{\unicode{x027CC}#1}}} + +\CustomizeMathJax{\let\lBrack[} +\CustomizeMathJax{\let\rBrack]} +\CustomizeMathJax{\let\lAngle\langle} +\CustomizeMathJax{\let\rAngle\rangle} + +\CustomizeMathJax{\let\Lbrbrak[} +\CustomizeMathJax{\let\Rbrbrak]} + +\CustomizeMathJax{\let\lBrace\{} +\CustomizeMathJax{\let\rBrace\}} + +\CustomizeMathJax{\let\lParen(} +\CustomizeMathJax{\let\rParen)} + +\CustomizeMathJax{\newcommand{\llparenthesis}{\mathopen{\unicode{x02987}}}}% not \left +\CustomizeMathJax{\newcommand{\rrparenthesis}{\mathopen{\unicode{x02988}}}}% not \right +\CustomizeMathJax{\newcommand{\llangle}{\mathopen{\unicode{x02989}}}}% not \left +\CustomizeMathJax{\newcommand{\rrangle}{\mathopen{\unicode{x0298A}}}}% not \right + +\CustomizeMathJax{\newcommand{\lbrackubar}{\mathopen{\unicode{x0298B}}}}% not \left +\CustomizeMathJax{\newcommand{\rbrackubar}{\mathopen{\unicode{x0298C}}}}% not \right + +\CustomizeMathJax{\newcommand{\lbrackultick}{\mathopen{\unicode{x0298D}}}}% not \left +\CustomizeMathJax{\newcommand{\rbracklrtick}{\mathopen{\unicode{x0298E}}}}% not \right + +\CustomizeMathJax{\newcommand{\lbracklltick}{\mathopen{\unicode{x0298F}}}}% not \left +\CustomizeMathJax{\newcommand{\rbrackurtick}{\mathopen{\unicode{x02990}}}}% not \right + +\CustomizeMathJax{\newcommand{\langledot}{\mathopen{\unicode{x02991}}}}% not \left +\CustomizeMathJax{\newcommand{\rangledot}{\mathopen{\unicode{x02992}}}}% not \right + +\CustomizeMathJax{\newcommand{\lparenless}{\mathopen{\unicode{x02993}}}}% not \left +\CustomizeMathJax{\newcommand{\rparengtr}{\mathopen{\unicode{x02994}}}}% not \right + +\CustomizeMathJax{\newcommand{\Lparengtr}{\mathopen{\unicode{x02995}}}}% not \left +\CustomizeMathJax{\newcommand{\Rparenless}{\mathopen{\unicode{x02996}}}}% not \right + +\CustomizeMathJax{\newcommand{\lblkbrbrak}{\mathopen{\unicode{x02997}}}}% not \left +\CustomizeMathJax{\newcommand{\rblkbrbrak}{\mathopen{\unicode{x02998}}}}% not \right + +\CustomizeMathJax{\newcommand{\lvzigzag}{\mathopen{\unicode{x029D8}}}}% not \left +\CustomizeMathJax{\newcommand{\rvzigzag}{\mathopen{\unicode{x029D9}}}}% not \right + +\CustomizeMathJax{\newcommand{\Lvzigzag}{\mathopen{\unicode{x029DA}}}}% not \left +\CustomizeMathJax{\newcommand{\Rvzigzag}{\mathopen{\unicode{x029DB}}}}% not \right + +\CustomizeMathJax{\newcommand{\lcurvyangle}{\mathopen{\unicode{x029FC}}}}% not \left +\CustomizeMathJax{\newcommand{\rcurvyangle}{\mathopen{\unicode{x029FD}}}}% not \right + +\CustomizeMathJax{\newcommand{\Vvert}{\mathord{\unicode{x02980}}}}% not \left, etc. + +\CustomizeMathJax{\newcommand{\mathcomma}{,}} +\CustomizeMathJax{\newcommand{\mathcolon}{:}} +\CustomizeMathJax{\newcommand{\mathsemicolon}{;}} + +\CustomizeMathJax{\newcommand{\overbracket}[1]{\mathinner{\overline{\ulcorner{#1}\urcorner}}}} +\CustomizeMathJax{\newcommand{\underbracket}[1]{\mathinner{\underline{\llcorner{#1}\lrcorner}}}} + +\CustomizeMathJax{\newcommand{\overbar}[1]{\mathord{#1\unicode{x00305}}}} +\CustomizeMathJax{\newcommand{\ovhook}[1]{\mathord{#1\unicode{x00309}}}} +\CustomizeMathJax{\newcommand{\ocirc}[1]{\mathord{#1\unicode{x0030A}}}} +\CustomizeMathJax{\newcommand{\candra}[1]{\mathord{#1\unicode{x00310}}}} +\CustomizeMathJax{\newcommand{\oturnedcomma}[1]{\mathord{#1\unicode{x00312}}}} +\CustomizeMathJax{\newcommand{\ocommatopright}[1]{\mathord{#1\unicode{x00315}}}} +\CustomizeMathJax{\newcommand{\droang}[1]{\mathord{#1\unicode{x0031A}}}} +\CustomizeMathJax{\newcommand{\leftharpoonaccent}[1]{\mathord{#1\unicode{x020D0}}}} +\CustomizeMathJax{\newcommand{\rightharpoonaccent}[1]{\mathord{#1\unicode{x020D1}}}} +\CustomizeMathJax{\newcommand{\vertoverlay}[1]{\mathord{#1\unicode{x020D2}}}} +\CustomizeMathJax{\newcommand{\leftarrowaccent}[1]{\mathord{#1\unicode{x020D0}}}} +\CustomizeMathJax{\newcommand{\annuity}[1]{\mathord{#1\unicode{x020E7}}}} +\CustomizeMathJax{\newcommand{\widebridgeabove}[1]{\mathord{#1\unicode{x020E9}}}} +\CustomizeMathJax{\newcommand{\asteraccent}[1]{\mathord{#1\unicode{x020F0}}}} +\CustomizeMathJax{\newcommand{\threeunderdot}[1]{\mathord{#1\unicode{x020E8}}}} + +\CustomizeMathJax{\newcommand{\Bbbsum}{\mathop{\unicode{x2140}}\limits}} +\CustomizeMathJax{\newcommand{\oiint}{\mathop{\unicode{x222F}}\limits}} +\CustomizeMathJax{\newcommand{\oiiint}{\mathop{\unicode{x2230}}\limits}} +\CustomizeMathJax{\newcommand{\intclockwise}{\mathop{\unicode{x2231}}\limits}} +\CustomizeMathJax{\newcommand{\ointclockwise}{\mathop{\unicode{x2232}}\limits}} +\CustomizeMathJax{\newcommand{\ointctrclockwise}{\mathop{\unicode{x2233}}\limits}} +\CustomizeMathJax{\newcommand{\varointclockwise}{\mathop{\unicode{x2232}}\limits}} +\CustomizeMathJax{\newcommand{\leftouterjoin}{\mathop{\unicode{x27D5}}\limits}} +\CustomizeMathJax{\newcommand{\rightouterjoin}{\mathop{\unicode{x27D6}}\limits}} +\CustomizeMathJax{\newcommand{\fullouterjoin}{\mathop{\unicode{x27D7}}\limits}} +\CustomizeMathJax{\newcommand{\bigbot}{\mathop{\unicode{x27D8}}\limits}} +\CustomizeMathJax{\newcommand{\bigtop}{\mathop{\unicode{x27D9}}\limits}} +\CustomizeMathJax{\newcommand{\xsol}{\mathop{\unicode{x29F8}}\limits}} +\CustomizeMathJax{\newcommand{\xbsol}{\mathop{\unicode{x29F9}}\limits}} +\CustomizeMathJax{\newcommand{\bigcupdot}{\mathop{\unicode{x2A03}}\limits}} +\CustomizeMathJax{\newcommand{\bigsqcap}{\mathop{\unicode{x2A05}}\limits}} +\CustomizeMathJax{\newcommand{\conjquant}{\mathop{\unicode{x2A07}}\limits}} +\CustomizeMathJax{\newcommand{\disjquant}{\mathop{\unicode{x2A08}}\limits}} +\CustomizeMathJax{\newcommand{\bigtimes}{\mathop{\unicode{x2A09}}\limits}} +\CustomizeMathJax{\newcommand{\modtwosum}{\mathop{\unicode{x2A0A}}\limits}} +\CustomizeMathJax{\newcommand{\sumint}{\mathop{\unicode{x2A0B}}\limits}} +\CustomizeMathJax{\newcommand{\intbar}{\mathop{\unicode{x2A0D}}\limits}} +\CustomizeMathJax{\newcommand{\intBar}{\mathop{\unicode{x2A0E}}\limits}} +\CustomizeMathJax{\newcommand{\fint}{\mathop{\unicode{x2A0F}}\limits}} +\CustomizeMathJax{\newcommand{\cirfnint}{\mathop{\unicode{x2A10}}\limits}} +\CustomizeMathJax{\newcommand{\awint}{\mathop{\unicode{x2A11}}\limits}} +\CustomizeMathJax{\newcommand{\rppolint}{\mathop{\unicode{x2A12}}\limits}} +\CustomizeMathJax{\newcommand{\scpolint}{\mathop{\unicode{x2A13}}\limits}} +\CustomizeMathJax{\newcommand{\npolint}{\mathop{\unicode{x2A14}}\limits}} +\CustomizeMathJax{\newcommand{\pointint}{\mathop{\unicode{x2A15}}\limits}} +\CustomizeMathJax{\newcommand{\sqint}{\mathop{\unicode{x2A16}}\limits}} +\CustomizeMathJax{\newcommand{\intlarhk}{\mathop{\unicode{x2A17}}\limits}} +\CustomizeMathJax{\newcommand{\intx}{\mathop{\unicode{x2A18}}\limits}} +\CustomizeMathJax{\newcommand{\intcap}{\mathop{\unicode{x2A19}}\limits}} +\CustomizeMathJax{\newcommand{\intcup}{\mathop{\unicode{x2A1A}}\limits}} +\CustomizeMathJax{\newcommand{\upint}{\mathop{\unicode{x2A1B}}\limits}} +\CustomizeMathJax{\newcommand{\lowint}{\mathop{\unicode{x2A1C}}\limits}} +\CustomizeMathJax{\newcommand{\bigtriangleleft}{\mathop{\unicode{x2A1E}}\limits}} +\CustomizeMathJax{\newcommand{\zcmp}{\mathop{\unicode{x2A1F}}\limits}} +\CustomizeMathJax{\newcommand{\zpipe}{\mathop{\unicode{x2A20}}\limits}} +\CustomizeMathJax{\newcommand{\zproject}{\mathop{\unicode{x2A21}}\limits}} +\CustomizeMathJax{\newcommand{\biginterleave}{\mathop{\unicode{x2AFC}}\limits}} +\CustomizeMathJax{\newcommand{\bigtalloblong}{\mathop{\unicode{x2AFF}}\limits}} +\CustomizeMathJax{\newcommand{\arabicmaj}{\mathop{\unicode{x1EEF0}}\limits}} +\CustomizeMathJax{\newcommand{\arabichad}{\mathop{\unicode{x1EEF1}}\limits}} + \end{warpMathJax} \endinput %% |