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