| 1 |
%% |
| 2 |
%% This is file `lwarp-mathspec.sty', |
| 3 |
%% generated with the docstrip utility. |
| 4 |
%% |
| 5 |
%% The original source files were: |
| 6 |
%% |
| 7 |
%% lwarp.dtx (with options: `mathspec') |
| 8 |
%% This is a generated file. |
| 9 |
%% Copyright 2016-2026 Brian Dunn |
| 10 |
%% |
| 11 |
%% This work may be distributed and/or modified under the |
| 12 |
%% conditions of the LaTeX Project Public License, either version 1.3 |
| 13 |
%% of this license or (at your option) any later version. |
| 14 |
%% The latest version of this license is in |
| 15 |
%% http://www.latex-project.org/lppl.txt |
| 16 |
%% and version 1.3 or later is part of all distributions of LaTeX |
| 17 |
%% version 2005/12/01 or later. |
| 18 |
\LWR@ProvidesPackagePass{mathspec}[2016/12/22] |
| 19 |
\LWR@origRequirePackage{lwarp-common-mathjax-letters} |
| 20 |
|
| 21 |
\begin{warpMathJax} |
| 22 |
\booltrue{LWR@MathJax@silentquotes} |
| 23 |
\AtBeginDocument{ |
| 24 |
\ifcase\eu@GreekUppercase@@value %% If Greek Uppercase Regular |
| 25 |
\LWR@mathjax@addgreek@u@up*{}{} |
| 26 |
\or %% If Greek Uppercase Italic |
| 27 |
\LWR@mathjax@addgreek@u@it*{}{} |
| 28 |
\or %% If Greek Uppercase Plain |
| 29 |
\LWR@mathjax@addgreek@u@up*{}{} |
| 30 |
\fi |
| 31 |
\ifcase\eu@GreekLowercase@@value %% If Greek Lowercase Regular |
| 32 |
\LWR@mathjax@addgreek@l@up{}{} |
| 33 |
\or %% If Greek Lowercase Italic |
| 34 |
\LWR@mathjax@addgreek@l@it{}{} |
| 35 |
\or %% If Greek Lowercase Plain |
| 36 |
\LWR@mathjax@addgreek@l@it{}{} |
| 37 |
\fi |
| 38 |
} |
| 39 |
\newcommand*{\LWR@mathspec@varforms}{% |
| 40 |
\eu@ifbooltrue{GreekLowercase}{ |
| 41 |
\eu@ifbooltrue{exchangebetaforms}{ |
| 42 |
\CustomizeMathJax{\let\LWRorigbeta\beta} |
| 43 |
\CustomizeMathJax{\let\beta\varbeta} |
| 44 |
\CustomizeMathJax{\let\varbeta\LWRorigbeta} |
| 45 |
} |
| 46 |
\eu@ifbooltrue{exchangeepsilonforms}{ |
| 47 |
\CustomizeMathJax{\let\LWRorigepsilon\epsilon} |
| 48 |
\CustomizeMathJax{\let\epsilon\varepsilon} |
| 49 |
\CustomizeMathJax{\let\varepsilon\LWRorigepsilon} |
| 50 |
} |
| 51 |
\eu@ifbooltrue{exchangethetaforms}{ |
| 52 |
\CustomizeMathJax{\let\LWRorigtheta\theta} |
| 53 |
\CustomizeMathJax{\let\theta\vartheta} |
| 54 |
\CustomizeMathJax{\let\vartheta\LWRorigtheta} |
| 55 |
} |
| 56 |
\eu@ifbooltrue{exchangekappaforms}{ |
| 57 |
\CustomizeMathJax{\let\LWRorigkappa\kappa} |
| 58 |
\CustomizeMathJax{\let\kappa\varkappa} |
| 59 |
\CustomizeMathJax{\let\varkappa\LWRorigkappa} |
| 60 |
} |
| 61 |
\eu@ifbooltrue{exchangepiforms}{ |
| 62 |
\CustomizeMathJax{\let\LWRorigpi\pi} |
| 63 |
\CustomizeMathJax{\let\pi\varpi} |
| 64 |
\CustomizeMathJax{\let\varpi\LWRorigpi} |
| 65 |
} |
| 66 |
\eu@ifbooltrue{exchangerhoforms}{ |
| 67 |
\CustomizeMathJax{\let\LWRorigrho\rho} |
| 68 |
\CustomizeMathJax{\let\rho\varrho} |
| 69 |
\CustomizeMathJax{\let\varrho\LWRorigrho} |
| 70 |
} |
| 71 |
\eu@ifbooltrue{exchangephiforms}{ |
| 72 |
\CustomizeMathJax{\let\LWRorigphi\phi} |
| 73 |
\CustomizeMathJax{\let\phi\varphi} |
| 74 |
\CustomizeMathJax{\let\varphi\LWRorigphi} |
| 75 |
} |
| 76 |
} |
| 77 |
\eu@ifbooltrue{GreekUppercase}{ |
| 78 |
\eu@ifbooltrue{exhangeThetaforms}{ |
| 79 |
\CustomizeMathJax{\let\LWRorigTheta\Theta} |
| 80 |
\CustomizeMathJax{\let\Theta\varTheta} |
| 81 |
\CustomizeMathJax{\let\varTheta\LWRorigTheta} |
| 82 |
} |
| 83 |
} |
| 84 |
} |
| 85 |
\xapptocmd{\exchangeforms} |
| 86 |
{\AtBeginDocument{\LWR@mathspec@varforms}} |
| 87 |
{} |
| 88 |
{\LWR@patcherror{mathspec}{exchangeforms}} |
| 89 |
|
| 90 |
\end{warpMathJax} |
| 91 |
|
| 92 |
\endinput |
| 93 |
%% |
| 94 |
%% End of file `lwarp-mathspec.sty'. |