forked from hbshim/mediawiki-mathjax
-
Notifications
You must be signed in to change notification settings - Fork 0
/
mwMathJaxConfig.js
165 lines (151 loc) · 8.6 KB
/
mwMathJaxConfig.js
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
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
//<![CDATA[
MathJax.Hub.Config({
showMathMenu: false,
extensions: ["fp.js"],
tex2jax: {
inlineMath: [ ['$','$'], ["\\(","\\)"] ],
displayMath: [ ['$$','$$'], ["\\[","\\]"] ],
processEscapes: true,
element: "content",
ignoreClass: "(tex2jax_ignore|mw-search-results|searchresults)", /* note: this is part of a regex, check the docs! */
skipTags: ["script","noscript","style","textarea","code"]
},
TeX: {
equationNumbers: { autoNumber: "AMS" },
extensions: ["xypic.js"],
Macros: {
/* Wikipedia compatibility: these macros are used on Wikipedia */
empty: '\\emptyset',
/* P: '\\unicode{xb6}',*/
Alpha: '\\unicode{x391}', /* FIXME: These capital Greeks don't show up in bold in \boldsymbol ... */
C: '\\mathbb{C}', /* the complex numbers */
N: '\\mathbb{N}', /* the natural numbers */
Q: '\\mathbb{Q}', /* the rational numbers */
R: '\\mathbb{R}', /* the real numbers */
Z: '\\mathbb{Z}', /* the integer numbers */
H: '\\mathbb{H}', /* the quoternionic numbers */
defn: '\\overset{\\mathrm{def}}{=}',
/* some extre macros for ease of use; these are non-standard! */
F: '\\mathbb{F}', /* a finite field */
HH: '\\mathcal{H}', /* a Hilbert space */
bszero: '\\boldsymbol{0}', /* vector of zeros */
bsone: '\\boldsymbol{1}', /* vector of ones */
bst: '\\boldsymbol{t}', /* a vector 't' */
bsv: '\\boldsymbol{v}', /* a vector 'v' */
bsw: '\\boldsymbol{w}', /* a vector 'w' */
bsx: '\\boldsymbol{x}', /* a vector 'x' */
bsy: '\\boldsymbol{y}', /* a vector 'y' */
bsz: '\\boldsymbol{z}', /* a vector 'z' */
bsDelta: '\\boldsymbol{\\Delta}', /* a vector '\Delta' */
rd: '\\,\\mathrm{d}', /* roman d for use in integrals: $\int f(x) \rd x$ */
rdelta: '\\,\\delta', /* delta operator for use in sums */
rD: '\\mathrm{D}', /* differential operator D */
/* example from MathJax on how to define macros with parameters: */
/* bold: ['{\\bf #1}', 1] */
RR: '\\mathbb{R}',
ZZ: '\\mathbb{Z}',
NN: '\\mathbb{N}',
QQ: '\\mathbb{Q}',
CC: '\\mathbb{C}',
FF: '\\mathbb{F}',
td: '{\\text{-}}',
cl: '\\mathop{\\mathrm{cl}}\\nolimits',
id: '\\mathop{\\mathrm{id}}\\nolimits', // identity, injective dimension
pd: '\\mathop{\\mathrm{pd}}\\nolimits', // projective dimension
fd: '\\mathop{\\mathrm{fd}}\\nolimits', // flat dimension
im: '\\mathop{\\mathrm{im}}\\nolimits', // image
Jac: '\\mathop{\\mathrm{Jac}}\\nolimits', // Jacobian
Obj: '\\mathop{\\mathrm{ob}}\\nolimits',
ob: '\\mathop{\\mathrm{ob}}\\nolimits',
End: '\\mathop{\\mathrm{End}}\\nolimits',
tr: '\\mathop{\\mathrm{tr}}\\nolimits',
trace: '\\mathop{\\mathrm{trace}}\\nolimits',
Tr: '\\mathop{\\mathrm{Tr}}\\nolimits',
ind: '\\mathop{\\mathrm{ind}}\\nolimits',
index: '\\mathop{\\mathrm{index}}\\nolimits',
sig: '\\mathop{\\mathrm{sig}}\\nolimits',
sign: '\\mathop{\\mathrm{sign}}\\nolimits',
Sym: '\\mathop{\\mathrm{Sym}}\\nolimits',
sym: '\\mathop{\\mathrm{sym}}\\nolimits',
GL: '{\\rm GL}',
SL: '{\\rm SL}',
O: '{\\rm O}',
U: '{\\rm U}',
SO: '{\\rm SO}',
SU: '{\\rm SU}',
Sp: '{\\rm Sp}',
Spin: '{\\rm Spin}',
String: '{\\rm String}',
PGL: '{\\rm PGL}',
tmf: '\\mathrm{tmf}',
op: '{\\rm op}',
Der: '\\mathop{\\mathrm{Der}}\\nolimits',
Diff: '\\mathop{\\mathrm{Diff}}\\nolimits',
Homeo: '\\mathop{\\mathrm{Homeo}}\\nolimits',
Map: '\\mathop{\\mathrm{Map}}\\nolimits',
Funct: '\\mathop{\\mathrm{Funct}}\\nolimits',
Cl: '\\mathop{\\mathrm{Cl}}\\nolimits',
CCl: '\\mathop{\\C\\mathrm{l}}\\nolimits',
cl: '\\mathop{\\mathrm{cl}}\\nolimits',
Ad: '\\mathop{\\mathrm{Ad}}\\nolimits',
ad: '\\mathop{\\mathrm{ad}}\\nolimits',
modd: '\\mathop{\\,\\mathrm{mod}}\\nolimits',
char: '\\mathop{\\mathrm{char}}\\nolimits',
ch: '\\mathop{\\mathrm{ch}}\\nolimits',
disc: '\\mathop{\\mathrm{disc}}\\nolimits',
Gal: '\\mathop{\\mathrm{Gal}}\\nolimits',
Aut: '\\mathop{\\mathrm{Aut}}\\nolimits',
rank: '\\mathop{\\mathrm{rank}}\\nolimits',
codim: '\\mathop{\\mathrm{codim}}\\nolimits',
coker: '\\mathop{\\mathrm{coker}}\\nolimits',
Div: '\\mathop{\\mathrm{Div}}\\nolimits',
index: '\\mathop{\\mathrm{index}}\\nolimits',
D: '\\mathop{\\mathrm{D}}\\nolimits', // quotient of Div by the equivalence
cl: '\\mathop{\\mathrm{cl}}\\nolimits', // element of D(X) EGA Iv, 21.2.10
cyc: '\\mathop{\\mathrm{cyc}}\\nolimits', // cycle EGA IV, 21.6.5.1
grad: '\\mathop{\\mathrm{grad}}\\nolimits',
div: '\\mathop{\\mathrm{div}}\\nolimits',
dom: '\\mathop{\\mathrm{dom}}\\nolimits',
ht: '\\mathop{\\mathrm{ht}}\\nolimits',
Hom: '\\mathop{\\mathrm{Hom}}\\nolimits',
coht: '\\mathop{\\mathrm{coht}}\\nolimits',
Jac: '\\mathop{\\mathrm{Jac}}\\nolimits',
Idinv: '\\mathop{\\mathrm{Id.inv}}\\nolimits', //invertible fractional ideal
length: '\\mathop{\\mathrm{length}}\\nolimits',
mult: '\\mathop{\\mathrm{mult}}\\nolimits',
o: '\\mathop{\\mathrm{o}}\\nolimits',
mf: '\\mathfrak',
ms: '\\mathscr',
mbf: '\\mathbf',
mb: '\\mathbb',
mcl: '\\mathcal',
bs: '\\boldsymbol',
ann: '\\mathop{\\mathrm{Ann}}\\nolimits',
Ann: '\\mathop{\\mathrm{Ann}}\\nolimits',
Ass: '\\mathop{\\mathrm{Ass}}\\nolimits',
Pic: '\\mathop{\\mathrm{Pic}}\\nolimits', //Picard group
Spec: '\\mathop{\\mathrm{Spec}}\\nolimits',
Spf: '\\mathop{\\mathrm{Spf}}\\nolimits',
maxSpec: '\\mathop{\\text{max-Spec}}\\nolimits',
Supp: '\\mathop{\\text{Supp}}\\nolimits',
supp: '\\mathop{\\mathrm{supp}}\\nolimits',
depth: '\\mathop{\\mathrm{depth}}\\nolimits',
codepth: '\\mathop{\\mathrm{codepth}}\\nolimits',
spf: '\\mathop{\\mathrm{spf}}\\nolimits',
ord: '\\mathop{\\mathrm{ord}}\\nolimits',
holim: '\\mathop{\\mathrm{holim}}',
capp: '\\mathop{\\frown}\\nolimits',
cupp: '\\mathop{\\smile}\\nolimits',
pt: '{\\rm pt}',
Ext: '{\\rm Ext}',
Tor: '{\\rm Tor}',
Prob: '{\\rm P}', //Probability
Var: '\\mathop{\\mathrm{Var}}\\nolimits',
Cov: '\\mathop{\\mathrm{Cov}}\\nolimits',
corr: '\\mathop{\\mathrm{corr}}\\nolimits',
E: '\\mathop{\\mathrm{E}}\\nolimits' /* Expected Value */
}
}
});
MathJax.Ajax.loadComplete("_SUBSTITUTE YOUR URL___/mathjax/config/local/mwMathJaxConfig.js");
//]]>