2 * extensions/AMSsymbol.js
4 * Part of the jsMath package for mathematics on the web.
6 * This file defines the macros needed to access the AMS symbol fonts
7 * available in msam10 and msbm10. You can activate it by calling
9 * jsMath.Extension.Require('AMSsymbols');
11 * once jsMath.js has been loaded.
13 * Note that you will need to install the msam10 and msbm10 fonts
14 * that are available from the jsMath extra font page at
16 * http://www.math.union.edu/locate/jsMath/download/extra-fonts/
18 * in order to make this work in image mode. Note that there is no
19 * unicode fallback mode for these fonts at this time.
21 * ---------------------------------------------------------------------
23 * Copyright 2006 by Davide P. Cervone
25 * Licensed under the Apache License, Version 2.0 (the "License");
26 * you may not use this file except in compliance with the License.
27 * You may obtain a copy of the License at
29 * http://www.apache.org/licenses/LICENSE-2.0
31 * Unless required by applicable law or agreed to in writing, software
32 * distributed under the License is distributed on an "AS IS" BASIS,
33 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
34 * See the License for the specific language governing permissions and
35 * limitations under the License.
38 /********************************************************************/
41 delete jsMath.Parser.prototype.macros['hbar'];
42 delete jsMath.Parser.prototype.macros['angle'];
43 delete jsMath.Parser.prototype.macros['rightleftharpoons'];
45 jsMath.Extension.MathChar("msam10",{
46 // Miscellaneous symbols
47 vartriangle: [3,0x4D],
48 triangledown: [0,0x4F],
53 measuredangle: [0,0x5D],
55 blacktriangle: [0,0x4E],
56 blacktriangledown: [0,0x48],
57 blacksquare: [0,0x04],
58 blacklozenge: [0,0x07],
60 sphericalangle: [0,0x5E],
71 doublebarwedge: [2,0x5B],
76 leftthreetimes: [2,0x68],
77 rightthreetimes: [2,0x69],
80 circleddash: [2,0x7F],
82 circledcirc: [2,0x7D],
89 eqslantless: [3,0x30],
99 risingdotseq: [3,0x3A],
100 fallingdotseq: [3,0x3B],
106 preccurlyeq: [3,0x34],
107 curlyeqprec: [3,0x32],
109 vartriangleleft: [3,0x43],
110 trianglelefteq: [3,0x45],
113 smallsmile: [3,0x60],
114 smallfrown: [3,0x61],
118 blacktriangleleft: [3,0x4A],
122 eqslantgtr: [3,0x31],
129 gtreqqless: [3,0x54],
136 succcurlyeq: [3,0x3C],
137 curlyeqsucc: [3,0x33],
139 vartriangleright: [3,0x42],
140 trianglerighteq: [3,0x44],
144 blacktriangleright: [3,0x49],
148 leftleftarrows: [3,0x12],
149 leftrightarrows: [3,0x1C],
150 Lleftarrow: [3,0x57],
151 twoheadleftarrow: [3,0x11],
152 leftarrowtail: [3,0x1B],
153 looparrowleft: [3,0x22],
154 leftrightharpoons: [3,0x0B],
155 circlearrowleft: [3,0x09],
157 upuparrows: [3,0x14],
158 upharpoonleft: [3,0x18],
159 downharpoonleft: [3,0x19],
161 leftrightsquigarrow:[3,0x21],
162 rightrightarrows: [3,0x13],
163 rightleftarrows: [3,0x1D],
164 Rrightarrow: [3,0x56],
165 twoheadrightarrow: [3,0x10],
166 rightarrowtail: [3,0x1A],
167 looparrowright: [3,0x23],
168 rightleftharpoons: [3,0x0A],
169 circlearrowright: [3,0x08],
171 downdownarrows: [3,0x15],
172 upharpoonright: [3,0x16],
173 downharpoonright: [3,0x17],
174 rightsquigarrow: [3,0x20]
177 jsMath.Extension.MathChar("msbm10",{
178 // Lowercase Greek letters
187 // Miscellaneous symbols
195 varnothing: [0,0x3F],
201 smallsetminus: [2,0x72],
202 divideontimes: [2,0x3E],
209 precapprox: [3,0x77],
212 thickapprox: [3,0x74],
213 succapprox: [3,0x76],
215 shortparallel: [3,0x71],
216 backepsilon: [3,0x7F],
232 precnapprox: [3,0x18],
238 ntriangleleft: [3,0x36],
239 ntrianglelefteq: [3,0x35],
241 nsubseteqq: [3,0x22],
243 varsubsetneq: [3,0x20],
244 subsetneqq: [3,0x24],
245 varsubsetneqq: [3,0x26],
259 succnapprox: [3,0x19],
261 nshortparallel: [3,0x2F],
265 ntriangleright: [3,0x37],
266 ntrianglerighteq: [3,0x34],
268 nsupseteqq: [3,0x23],
270 varsupsetneq: [3,0x21],
271 supsetneqq: [3,0x25],
272 varsupsetneqq: [3,0x27],
275 curvearrowleft: [3,0x78],
276 curvearrowright: [3,0x79],
279 nleftarrow: [3,0x38],
280 nLeftarrow: [3,0x3A],
281 nleftrightarrow: [3,0x3D],
282 nrightarrow: [3,0x39],
283 nRightarrow: [3,0x3B],
284 nLeftrightarrow: [3,0x3C]
287 jsMath.Macro('Bbb','{\\msbm #1}',1);
288 jsMath.Macro('mathbb','{\\msbm #1}',1);
289 jsMath.Extension.Font('msbm');
290 jsMath.Extension.Font('msam');