diff options
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 | 38 |
1 files changed, 28 insertions, 10 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 0b4f5c59915..a471eac12a9 100644 --- a/Master/texmf-dist/tex/latex/lwarp/lwarp-unicode-math.sty +++ b/Master/texmf-dist/tex/latex/lwarp/lwarp-unicode-math.sty @@ -16,31 +16,49 @@ %% 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] -\begin{warpHTML} -\CustomizeMathJax{\let\symnormal\mathrm} +\begin{warpMathJax} +\LWR@infoprocessingmathjax{unicode-math} + +\CustomizeMathJax{\let\symnormal\mathit} \CustomizeMathJax{\let\symliteral\mathrm} \CustomizeMathJax{\let\symbb\mathbb} \CustomizeMathJax{\let\symbbit\mathbb}% not italic \CustomizeMathJax{\let\symcal\mathcal} \CustomizeMathJax{\let\symscr\mathscr} \CustomizeMathJax{\let\symfrak\mathfrak} -\CustomizeMathJax{\let\symsfup\mathsf}% not up -\CustomizeMathJax{\let\symsfit\mathit}% not sans -\CustomizeMathJax{\let\symbfsf\mathbf}% not sans -\CustomizeMathJax{\let\symbfup\mathbf}% not up -\CustomizeMathJax{\let\symbfit\mathit}% not bold +\CustomizeMathJax{\let\symsfup\mathsf} + +\CustomizeMathJax{\newcommand{\symsfit}[1]{% + \mmlToken{mi}[mathvariant="sans-serif-italic"]{#1}}% +} + +\CustomizeMathJax{\newcommand{\symbfsf}[1]{% + \mmlToken{mi}[mathvariant="bold-sans-serif"]{#1}}% +} + +\CustomizeMathJax{\let\symbfup\mathbf} +\CustomizeMathJax{\newcommand{\symbfit}[1]{\boldsymbol{#1}}} \CustomizeMathJax{\let\symbfcal\mathcal}% not bold + \CustomizeMathJax{\let\symbfscr\mathscr}% not bold + \CustomizeMathJax{\let\symbffrak\mathfrak}% not bold -\CustomizeMathJax{\let\symbfsfup\mathbf}% not sans -\CustomizeMathJax{\let\symbfsfit\mathit}% not bold nor sans + +\CustomizeMathJax{\newcommand{\symbfsfup}[1]{% + \mmlToken{mi}[mathvariant="bold-sans-serif"]{#1}}% +} + +\CustomizeMathJax{\newcommand{\symbfsfit}[1]{% + \mmlToken{mi}[mathvariant="sans-serif-bold-italic"]{#1}}% +} + \CustomizeMathJax{\let\symup\mathrm} \CustomizeMathJax{\let\symbf\mathbf}% \symbfup defined above \CustomizeMathJax{\let\symit\mathit} \CustomizeMathJax{\let\symsf\mathsf} \CustomizeMathJax{\let\symtt\mathtt} \CustomizeMathJax{\let\symbffrac\mathbffrac} -\end{warpHTML} +\end{warpMathJax} \endinput %% %% End of file `lwarp-unicode-math.sty'. |