| 1 |
/************************************************************* |
| 2 |
* |
| 3 |
* MathJax/extensions/TeX/mediawiki-texvc.js |
| 4 |
* |
| 5 |
* Implements macros used by mediawiki with their texvc preprocessor. |
| 6 |
* |
| 7 |
* --------------------------------------------------------------------- |
| 8 |
* |
| 9 |
* Copyright (c) 2015-2020 The MathJax Consortium |
| 10 |
* |
| 11 |
* Licensed under the Apache License, Version 2.0 (the "License"); |
| 12 |
* you may not use this file except in compliance with the License. |
| 13 |
* You may obtain a copy of the License at |
| 14 |
* |
| 15 |
* http://www.apache.org/licenses/LICENSE-2.0 |
| 16 |
* |
| 17 |
* Unless required by applicable law or agreed to in writing, software |
| 18 |
* distributed under the License is distributed on an "AS IS" BASIS, |
| 19 |
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 20 |
* See the License for the specific language governing permissions and |
| 21 |
* limitations under the License. |
| 22 |
*/ |
| 23 |
|
| 24 |
MathJax.Extension["TeX/mediawiki-texvc"] = { |
| 25 |
version: "2.7.9" |
| 26 |
}; |
| 27 |
|
| 28 |
MathJax.Hub.Register.StartupHook("TeX Jax Ready", function () { |
| 29 |
MathJax.InputJax.TeX.Definitions.Add({ |
| 30 |
macros: { |
| 31 |
AA: ["Macro", "\u00c5"], |
| 32 |
alef: ["Macro", "\\aleph"], |
| 33 |
alefsym: ["Macro", "\\aleph"], |
| 34 |
Alpha: ["Macro", "\\mathrm{A}"], |
| 35 |
and: ["Macro", "\\land"], |
| 36 |
ang: ["Macro", "\\angle"], |
| 37 |
Bbb: ["Macro", "\\mathbb"], |
| 38 |
Beta: ["Macro", "\\mathrm{B}"], |
| 39 |
bold: ["Macro", "\\mathbf"], |
| 40 |
bull: ["Macro", "\\bullet"], |
| 41 |
C: ["Macro", "\\mathbb{C}"], |
| 42 |
Chi: ["Macro", "\\mathrm{X}"], |
| 43 |
clubs: ["Macro", "\\clubsuit"], |
| 44 |
cnums: ["Macro", "\\mathbb{C}"], |
| 45 |
Complex: ["Macro", "\\mathbb{C}"], |
| 46 |
coppa: ["Macro", "\u03D9"], |
| 47 |
Coppa: ["Macro", "\u03D8"], |
| 48 |
Dagger: ["Macro", "\\ddagger"], |
| 49 |
Digamma: ["Macro", "\u03DC"], |
| 50 |
darr: ["Macro", "\\downarrow"], |
| 51 |
dArr: ["Macro", "\\Downarrow"], |
| 52 |
Darr: ["Macro", "\\Downarrow"], |
| 53 |
dashint: ["Macro", "\\unicodeInt{x2A0D}"], |
| 54 |
ddashint: ["Macro", "\\unicodeInt{x2A0E}"], |
| 55 |
diamonds: ["Macro", "\\diamondsuit"], |
| 56 |
empty: ["Macro", "\\emptyset"], |
| 57 |
Epsilon: ["Macro", "\\mathrm{E}"], |
| 58 |
Eta: ["Macro", "\\mathrm{H}"], |
| 59 |
euro: ["Macro", "\u20AC"], |
| 60 |
exist: ["Macro", "\\exists"], |
| 61 |
geneuro: ["Macro", "\u20AC"], |
| 62 |
geneuronarrow: ["Macro", "\u20AC"], |
| 63 |
geneurowide: ["Macro", "\u20AC"], |
| 64 |
H: ["Macro", "\\mathbb{H}"], |
| 65 |
hAar: ["Macro", "\\Leftrightarrow"], |
| 66 |
harr: ["Macro", "\\leftrightarrow"], |
| 67 |
Harr: ["Macro", "\\Leftrightarrow"], |
| 68 |
hearts: ["Macro", "\\heartsuit"], |
| 69 |
image: ["Macro", "\\Im"], |
| 70 |
infin: ["Macro", "\\infty"], |
| 71 |
Iota: ["Macro", "\\mathrm{I}"], |
| 72 |
isin: ["Macro", "\\in"], |
| 73 |
Kappa: ["Macro", "\\mathrm{K}"], |
| 74 |
koppa: ["Macro", "\u03DF"], |
| 75 |
Koppa: ["Macro", "\u03DE"], |
| 76 |
lang: ["Macro", "\\langle"], |
| 77 |
larr: ["Macro", "\\leftarrow"], |
| 78 |
Larr: ["Macro", "\\Leftarrow"], |
| 79 |
lArr: ["Macro", "\\Leftarrow"], |
| 80 |
lrarr: ["Macro", "\\leftrightarrow"], |
| 81 |
Lrarr: ["Macro", "\\Leftrightarrow"], |
| 82 |
lrArr: ["Macro", "\\Leftrightarrow"], |
| 83 |
Mu: ["Macro", "\\mathrm{M}"], |
| 84 |
N: ["Macro", "\\mathbb{N}"], |
| 85 |
natnums: ["Macro", "\\mathbb{N}"], |
| 86 |
Nu: ["Macro", "\\mathrm{N}"], |
| 87 |
O: ["Macro", "\\emptyset"], |
| 88 |
oiint: ["Macro", "\\unicodeInt{x222F}"], |
| 89 |
oiiint: ["Macro", "\\unicodeInt{x2230}"], |
| 90 |
ointctrclockwise: ["Macro", "\\unicodeInt{x2233}"], |
| 91 |
officialeuro: ["Macro", "\u20AC"], |
| 92 |
Omicron: ["Macro", "\\mathrm{O}"], |
| 93 |
or: ["Macro", "\\lor"], |
| 94 |
P: ["Macro", "\u00B6"], |
| 95 |
pagecolor: ['Macro','',1], // ignore \pagecolor{} |
| 96 |
part: ["Macro", "\\partial"], |
| 97 |
plusmn: ["Macro", "\\pm"], |
| 98 |
Q: ["Macro", "\\mathbb{Q}"], |
| 99 |
R: ["Macro", "\\mathbb{R}"], |
| 100 |
rang: ["Macro", "\\rangle"], |
| 101 |
rarr: ["Macro", "\\rightarrow"], |
| 102 |
Rarr: ["Macro", "\\Rightarrow"], |
| 103 |
rArr: ["Macro", "\\Rightarrow"], |
| 104 |
real: ["Macro", "\\Re"], |
| 105 |
reals: ["Macro", "\\mathbb{R}"], |
| 106 |
Reals: ["Macro", "\\mathbb{R}"], |
| 107 |
Rho: ["Macro", "\\mathrm{P}"], |
| 108 |
sdot: ["Macro", "\\cdot"], |
| 109 |
sampi: ["Macro", "\u03E1"], |
| 110 |
Sampi: ["Macro", "\u03E0"], |
| 111 |
sect: ["Macro", "\\S"], |
| 112 |
spades: ["Macro", "\\spadesuit"], |
| 113 |
stigma: ["Macro", "\u03DB"], |
| 114 |
Stigma: ["Macro", "\u03DA"], |
| 115 |
sub: ["Macro", "\\subset"], |
| 116 |
sube: ["Macro", "\\subseteq"], |
| 117 |
supe: ["Macro", "\\supseteq"], |
| 118 |
Tau: ["Macro", "\\mathrm{T}"], |
| 119 |
textvisiblespace: ["Macro", "\u2423"], |
| 120 |
thetasym: ["Macro", "\\vartheta"], |
| 121 |
uarr: ["Macro", "\\uparrow"], |
| 122 |
uArr: ["Macro", "\\Uparrow"], |
| 123 |
Uarr: ["Macro", "\\Uparrow"], |
| 124 |
unicodeInt: ["Macro", "\\mathop{\\vcenter{\\mathchoice{\\huge\\unicode{#1}\\,}{\\unicode{#1}}{\\unicode{#1}}{\\unicode{#1}}}\\,}\\nolimits", 1], |
| 125 |
varcoppa: ["Macro", "\u03D9"], |
| 126 |
varstigma: ["Macro", "\u03DB"], |
| 127 |
varointclockwise: ["Macro", "\\unicodeInt{x2232}"], |
| 128 |
vline: ['Macro','\\smash{\\large\\lvert}',0], |
| 129 |
weierp: ["Macro", "\\wp"], |
| 130 |
Z: ["Macro", "\\mathbb{Z}"], |
| 131 |
Zeta: ["Macro", "\\mathrm{Z}"] |
| 132 |
} |
| 133 |
}); |
| 134 |
}); |
| 135 |
|
| 136 |
MathJax.Ajax.loadComplete("[MathJax]/extensions/TeX/mediawiki-texvc.js"); |