CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In

Real-time collaboration for Jupyter Notebooks, Linux Terminals, LaTeX, VS Code, R IDE, and more,
all in one place. Commercial Alternative to JupyterHub.

| Download

Sage Reference Manual

Project: SageManifolds
Views: 717251
1
/* -*- Mode: Javascript; indent-tabs-mode:nil; js-indent-level: 2 -*- */
2
/* vim: set ts=2 et sw=2 tw=80: */
3
4
/*************************************************************
5
*
6
* MathJax/config/default.js
7
*
8
* This configuration file is loaded when you load MathJax
9
* via <script src="MathJax.js?config=default"></script>
10
*
11
* Use it to customize the MathJax settings. See comments below.
12
*
13
* ---------------------------------------------------------------------
14
*
15
* Copyright (c) 2009-2015 The MathJax Consortium
16
*
17
* Licensed under the Apache License, Version 2.0 (the "License");
18
* you may not use this file except in compliance with the License.
19
* You may obtain a copy of the License at
20
*
21
* http://www.apache.org/licenses/LICENSE-2.0
22
*
23
* Unless required by applicable law or agreed to in writing, software
24
* distributed under the License is distributed on an "AS IS" BASIS,
25
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
26
* See the License for the specific language governing permissions and
27
* limitations under the License.
28
*/
29
30
31
/*
32
* This file lists most, but not all, of the options that can be set for
33
* MathJax and its various components. Some additional options are
34
* available, however, and are listed in the various links at:
35
*
36
* http://www.mathjax.org/resources/docs/?configuration.html#configuration-options-by-component
37
*
38
* You can add these to the configuration object below if you
39
* want to change them from their default values.
40
*/
41
42
MathJax.Hub.Config({
43
44
//
45
// A comma-separated list of configuration files to load
46
// when MathJax starts up. E.g., to define local macros, etc.
47
// The default directory is the MathJax/config directory.
48
//
49
// Example: config: ["local/local.js"],
50
// Example: config: ["local/local.js","MMLtoHTML.js"],
51
//
52
config: [],
53
54
//
55
// A comma-separated list of CSS stylesheet files to be loaded
56
// when MathJax starts up. The default directory is the
57
// MathJax/config directory.
58
//
59
// Example: styleSheets: ["MathJax.css"],
60
//
61
styleSheets: [],
62
63
//
64
// Styles to be defined dynamically at startup time.
65
//
66
// Example:
67
// styles: {
68
// ".MathJax_Preview": {
69
// color: "#888"
70
// }
71
// },
72
//
73
styles: {},
74
75
//
76
// A comma-separated list of input and output jax to initialize at startup.
77
// Their main code is loaded only when they are actually used, so it is not
78
// inefficient to include jax that may not actually be used on the page. These
79
// are found in the MathJax/jax directory. The choices include
80
//
81
// input/TeX
82
// input/MathML
83
// input/AsciiMath
84
//
85
// output/HTML-CSS
86
// output/NativeMML
87
// output/SVG
88
//
89
// If you change the input jax, you may need to include the appropriate
90
// preprocessor in the extensions array below.
91
//
92
jax: ["input/TeX", "output/HTML-CSS"],
93
94
//
95
// A comma-separated list of extensions to load at startup. The default
96
// directory is MathJax/extensions.
97
//
98
// Example: extensions: ["tex2jax.js","TeX/AMSmath.js","TeX/AMSsymbols.js"],
99
//
100
// You may wish to include "mml2jax.js" if you are using "input/MathML" in the
101
// jax array above, and "asciimath2jax.js" if you using "input/AsciiMath".
102
// Include "jsmath2jax.js" if you are converting from using jsMath to MathJax.
103
//
104
extensions: ["tex2jax.js"],
105
106
//
107
// Patterns to remove from before and after math script tags. If you are not
108
// using one of the preprocessors (e.g., tex2jax), you need to insert something
109
// extra into your HTML file in order to avoid a bug in Internet Explorer. IE
110
// removes spaces from the DOM that it thinks are redundent, and since a SCRIPT
111
// tag usually doesn't add content to the page, if there is a space before and after
112
// a MathJax SCRIPT tag, IE will remove the first space. When MathJax inserts
113
// the typeset mathematics, this means there will be no space before it and the
114
// preceeding text. In order to avoid this, you should include some "guard characters"
115
// before or after the math SCRIPT tag; define the patterns you want to use below.
116
// Note that these are used as regular expressions, so you will need to quote
117
// special characters. Furthermore, since they are javascript strings, you must
118
// quote javascript special characters as well. So to obtain a backslash, you must
119
// use \\ (doubled for javascript). For example, "\\[" is the pattern \[ in the
120
// regular expression. That means that if you want an actual backslash in your
121
// guard characters, you need to use "\\\\" in order to get \\ in the regular
122
// expression, and \ in the actual text. If both preJax and postJax are defined,
123
// both must be present in order to be removed.
124
//
125
// See also the preRemoveClass comments below.
126
//
127
// Example:
128
// preJax: "\\\\\\\\", // makes a double backslash the preJax text
129
// or
130
// preJax: "\\[\\[", // jax scripts must be enclosed in double brackets
131
// postJax: "\\]\\]",
132
//
133
preJax: null,
134
postJax: null,
135
136
//
137
// The CSS class for a math preview to be removed preceeding a MathJax
138
// SCRIPT tag. If the tag just before the MathJax SCRIPT tag is of this
139
// class, its contents are removed when MathJax processes the SCRIPT
140
// tag. This allows you to include a math preview in a form that will
141
// be displayed prior to MathJax performing its typesetting. It also
142
// avoids the Internet Explorer space-removal bug, and can be used in
143
// place of preJax and postJax if that is more convenient.
144
//
145
// For example
146
//
147
// <span class="MathJax_Preview">[math]</span><script type="math/tex">...</script>
148
//
149
// would display "[math]" in place of the math until MathJax is able to typeset it.
150
//
151
preRemoveClass: "MathJax_Preview",
152
153
//
154
// This value controls whether the "Processing Math: nn%" message are displayed
155
// in the lower left-hand corner. Set to "false" to prevent those messages (though
156
// file loading and other messages will still be shown).
157
//
158
showProcessingMessages: true,
159
160
//
161
// This value controls the verbosity of the messages in the lower left-hand corner.
162
// Set it to "none" to eliminate all messages, or set it to "simple" to show
163
// "Loading..." and "Processing..." rather than showing the full file name and the
164
// percentage of the mathematics processed.
165
//
166
messageStyle: "normal",
167
168
//
169
// These two parameters control the alignment and shifting of displayed equations.
170
// The first can be "left", "center", or "right", and determines the alignment of
171
// displayed equations. When the alignment is not "center", the second determines
172
// an indentation from the left or right side for the displayed equations. When
173
// the alignment is "center", the indent allows you to shift the center to the right
174
// or left (negative is left).
175
//
176
displayAlign: "center",
177
displayIndent: "0",
178
179
//
180
// Normally MathJax will perform its starup commands (loading of
181
// configuration, styles, jax, and so on) as soon as it can. If you
182
// expect to be doing additional configuration on the page, however, you
183
// may want to have it wait until the page's onload hander is called. If so,
184
// set this to "onload".
185
//
186
delayStartupUntil: "none",
187
188
//
189
// Normally MathJax will typeset the mathematics on the page as soon as
190
// the page is loaded. If you want to delay that process, in which case
191
// you will need to call MathJax.Hub.Typeset() yourself by hand, set
192
// this value to true.
193
//
194
skipStartupTypeset: false,
195
196
//
197
// A list of element ID's that are the ones to process for mathematics
198
// when any of the Hub typesetting calls (Typeset, Process, Update, etc)
199
// are called with no element specified. This lets you restrict the
200
// processing to particular containers rather than scanning the entire
201
// document for mathematics. If none are supplied, the entire document
202
// is processed.
203
//
204
elements: [],
205
206
//
207
// Since typesetting usually changes the vertical dimensions of the
208
// page, if the URL contains an anchor position you may no longer be
209
// positioned at the correct position on the page, so MathJax can
210
// reposition to that location after it completes its initial
211
// typesetting of the page. This value controls whether MathJax will
212
// reposition the browser to the #hash location from the page URL after
213
// typesetting for the page.
214
//
215
positionToHash: true,
216
217
//
218
// These control whether to attach the MathJax contextual menu to the
219
// expressions typeset by MathJax. Since the code for handling
220
// MathPlayer in Internet Explorer is somewhat delicate, it is
221
// controlled separately via (showMathMenuMSIE). The latter is now
222
// deprecated in favor of the MathJax contextual menu settings for
223
// MathPlayer.
224
//
225
// These values used to be listed in the separate output jax, but
226
// have been moved to this more central location since they are shared
227
// by all output jax.
228
//
229
showMathMenu: true,
230
showMathMenuMSIE: true,
231
232
233
//
234
// The default settings for the MathJax contextual menu (overridden by
235
// the MathJax cookie when users change the menu settings).
236
//
237
menuSettings: {
238
zoom: "None", // when to do MathZoom
239
CTRL: false, // require CTRL for MathZoom?
240
ALT: false, // require Alt or Option?
241
CMD: false, // require CMD?
242
Shift: false, // require Shift?
243
zscale: "200%", // the scaling factor for MathZoom
244
font: "Auto", // what font HTML-CSS should use
245
context: "MathJax", // or "Browser" for pass-through to browser menu
246
mpContext: false, // true means pass menu events to MathPlayer in IE
247
mpMouse: false, // true means pass mouse events to MathPlayer in IE
248
texHints: true, // include class names for TeXAtom elements
249
semantics: false // add semantics tag with original form in MathML output
250
},
251
252
//
253
// The message and style for when there is a processing error handling
254
// the mathematics (something has gone wrong with the input or output
255
// jax that prevents it from operating properly).
256
//
257
errorSettings: {
258
message: ["[",["MathProcessingError","Math Processing Error"],"]"],
259
style: {color: "#CC0000", "font-style":"italic"} // style for message
260
},
261
262
263
//============================================================================
264
//
265
// These parameters control the tex2jax preprocessor (when you have included
266
// "tex2jax.js" in the extensions list above).
267
//
268
tex2jax: {
269
270
//
271
// The delimiters that surround in-line math expressions. The first in each
272
// pair is the initial delimiter and the second is the terminal delimiter.
273
// Comment out any that you don't want, but be sure there is no extra
274
// comma at the end of the last item in the list -- some browsers won't
275
// be able to handle that.
276
//
277
inlineMath: [
278
// ['$','$'], // uncomment this for standard TeX math delimiters
279
['\\(','\\)']
280
],
281
282
//
283
// The delimiters that surround displayed math expressions. The first in each
284
// pair is the initial delimiter and the second is the terminal delimiter.
285
// Comment out any that you don't want, but be sure there is no extra
286
// comma at the end of the last item in the list -- some browsers won't
287
// be able to handle that.
288
//
289
displayMath: [
290
['$$','$$'],
291
['\\[','\\]']
292
],
293
294
//
295
// This value determines whether tex2jax requires braces to be
296
// balanced within math delimiters (which allows for nested dollar
297
// signs). Set to false to get pre-v2.0 compatibility. When true,
298
//
299
// $y = x^2 \hbox{ when $x > 2$}$.
300
//
301
// will be properly handled as a single expression. When false, it
302
// would be interpreted as two searpate expressions, each with
303
// improperly balanced braces.
304
//
305
balanceBraces: true,
306
307
//
308
// This array lists the names of the tags whose contents should not be
309
// processed by tex2jax (other than to look for ignore/process classes
310
// as listed below). You can add to (or remove from) this list to prevent
311
// MathJax from processing mathematics in specific contexts.
312
//
313
skipTags: ["script","noscript","style","textarea","pre","code","annotation","annotation-xml"],
314
315
//
316
// This is the class name used to mark elements whose contents should
317
// not be processed by tex2jax (other than to look for the
318
// processClass pattern below). Note that this is a regular
319
// expression, and so you need to be sure to quote any regexp special
320
// characters. The pattern is automatically preceeded by '(^| )(' and
321
// followed by ')( |$)', so your pattern will have to match full words
322
// in the class name. Assigning an element this class name will
323
// prevent `tex2jax` from processing its contents.
324
//
325
ignoreClass: "tex2jax_ignore",
326
327
//
328
// This is the class name used to mark elements whose contents SHOULD
329
// be processed by tex2jax. This is used to turn on processing within
330
// tags that have been marked as ignored or skipped above. Note that
331
// this is a regular expression, and so you need to be sure to quote
332
// any regexp special characters. The pattern is automatically
333
// preceeded by '(^| )(' and followed by ')( |$)', so your pattern
334
// will have to match full words in the class name. Use this to
335
// restart processing within an element that has been marked as
336
// ignored above.
337
//
338
processClass: "tex2jax_process",
339
340
//
341
// Set to "true" to allow \$ to produce a dollar without starting in-line
342
// math mode. If you uncomment the ['$','$'] line above, you should change
343
// this to true so that you can insert plain dollar signs into your documents
344
//
345
processEscapes: false,
346
347
//
348
// Controls whether tex2jax processes LaTeX environments outside of math
349
// mode. Set to "false" to prevent processing of environments except within
350
// math mode.
351
//
352
processEnvironments: true,
353
354
//
355
// Controls whether tex2jax processes \ref{...} commands outside
356
// of math mode. Set to "false" to prevent processing of \ref
357
// except within math mode.
358
//
359
processRefs: true,
360
361
//
362
// Controls whether tex2jax inserts MathJax_Preview spans to make a
363
// preview available, and what preview to use, when it locates in-line
364
// and display mathetics on the page. The default is "TeX", which
365
// means use the TeX code as the preview (until it is processed by
366
// MathJax). Set to "none" to prevent the previews from being
367
// inserted (the math will simply disappear until it is typeset). Set
368
// to an array containing the description of an HTML snippet in order
369
// to use the same preview for all equations on the page (e.g., you
370
// could have it say "[math]" or load an image).
371
//
372
// E.g., preview: ["[math]"],
373
// or preview: [["img",{src: "http://myserver.com/images/mypic.jpg"}]]
374
//
375
preview: "TeX"
376
377
},
378
379
//============================================================================
380
//
381
// These parameters control the asciimath2jax preprocessor (when you have included
382
// "asciimath2jax.js" in the extensions list above).
383
//
384
asciimath2jax: {
385
386
//
387
// The delimiters that surround asciimath expressions. The first in each
388
// pair is the initial delimiter and the second is the terminal delimiter.
389
//
390
delimiters: [
391
['`','`']
392
],
393
394
//
395
// This array lists the names of the tags whose contents should not be
396
// processed by asciimath2jax (other than to look for ignore/process classes
397
// as listed below). You can add to (or remove from) this list to prevent
398
// MathJax from processing mathematics in specific contexts.
399
//
400
skipTags: ["script","noscript","style","textarea","pre","code","annotation","annotation-xml"],
401
402
//
403
// This is the class name used to mark elements whose contents should
404
// not be processed by asciimath2jax (other than to look for the
405
// processClass pattern below). Note that this is a regular
406
// expression, and so you need to be sure to quote any regexp special
407
// characters. The pattern is automatically preceeded by '(^| )(' and
408
// followed by ')( |$)', so your pattern will have to match full words
409
// in the class name. Assigning an element this class name will
410
// prevent `asciimath2jax` from processing its contents.
411
//
412
ignoreClass: "asciimath2jax_ignore",
413
414
//
415
// This is the class name used to mark elements whose contents SHOULD
416
// be processed by asciimath2jax. This is used to turn on processing
417
// within tags that have been marked as ignored or skipped above.
418
// Note that this is a regular expression, and so you need to be sure
419
// to quote any regexp special characters. The pattern is
420
// automatically preceeded by '(^| )(' and followed by ')( |$)', so
421
// your pattern will have to match full words in the class name. Use
422
// this to restart processing within an element that has been marked
423
// as ignored above.
424
//
425
processClass: "asciimath2jax_process",
426
427
// Controls whether asciimath2jax inserts MathJax_Preview spans to make a
428
// preview available, and what preview to use, when it locates in-line
429
// and display mathetics on the page. The default is "AsciiMath", which
430
// means use the AsciiMath code as the preview (until it is processed by
431
// MathJax). Set to "none" to prevent the previews from being
432
// inserted (the math will simply disappear until it is typeset). Set
433
// to an array containing the description of an HTML snippet in order
434
// to use the same preview for all equations on the page (e.g., you
435
// could have it say "[math]" or load an image).
436
//
437
// E.g., preview: ["[math]"],
438
// or preview: [["img",{src: "http://myserver.com/images/mypic.jpg"}]]
439
//
440
preview: "AsciiMath"
441
442
},
443
444
//============================================================================
445
//
446
// These parameters control the mml2jax preprocessor (when you have included
447
// "mml2jax.js" in the extensions list above).
448
//
449
mml2jax: {
450
451
//
452
// Controls whether mml2jax inserts MathJax_Preview spans to make a
453
// preview available, and what preview to use, when it locates
454
// mathematics on the page. The default is "mathml" which means use
455
// the <math> tag as the preview (until it is processed by MathJax).
456
// Set to "alttext", to use the <math> tag's alttext attribute as the
457
// preview, if the tag has one. Set to "none" to
458
// prevent the previews from being inserted (the math will simply
459
// disappear until it is typeset). Set to "altimg" to use an image
460
// described by the altimg* attributes of the <math> element.
461
// Set to an array containing the
462
// description of an HTML snippet in order to use the same preview for
463
// all equations on the page (e.g., you could have it say "[math]" or
464
// load an image).
465
//
466
// E.g., preview: ["[math]"],
467
// or preview: [["img",{src: "http://myserver.com/images/mypic.jpg"}]]
468
//
469
preview: "mathml"
470
471
},
472
473
//============================================================================
474
//
475
// These parameters control the jsMath2jax preprocessor (when you have included
476
// "jsMath2jax.js" in the extensions list above).
477
//
478
jsMath2jax: {
479
480
//
481
// Controls whether jsMath2jax inserts MathJax_Preview spans to make a
482
// preview available, and what preview to use, when it locates
483
// mathematics on the page. The default is "TeX", which means use the
484
// TeX code as the preview (until it is processed by MathJax). Set to
485
// "none" to prevent the previews from being inserted (the math will
486
// simply disappear until it is typeset). Set to an array containing
487
// the description of an HTML snippet in order to use the same preview
488
// for all equations on the page (e.g., you could have it say "[math]"
489
// or load an image).
490
//
491
// E.g., preview: ["[math]"],
492
// or preview: [["img",{src: "http://myserver.com/images/mypic.jpg"}]]
493
//
494
preview: "TeX"
495
496
},
497
498
//============================================================================
499
//
500
// These parameters control the TeX input jax.
501
//
502
TeX: {
503
504
//
505
// This specifies the side on which \tag{} macros will place the tags.
506
// Set to "left" to place on the left-hand side.
507
//
508
TagSide: "right",
509
510
//
511
// This is the amound of indentation (from right or left) for the tags.
512
//
513
TagIndent: "0.8em",
514
515
//
516
// This is the width to use for the multline environment
517
//
518
MultLineWidth: "85%",
519
520
//
521
// List of macros to define. These are of the form
522
// name: value
523
// where 'value' is the replacement text for the macro \name.
524
// The 'value' can also be [value,n] where 'value' is the replacement
525
// text and 'n' is the number of parameters for the macro.
526
// Note that backslashes must be doubled in the replacement string.
527
//
528
// E.g.,
529
//
530
// Macros: {
531
// RR: '{\\bf R}',
532
// bold: ['{\\bf #1}', 1]
533
// }
534
//
535
Macros: {},
536
537
//
538
// Equation numbering parameters.
539
//
540
equationNumbers: {
541
autoNumber: "none", // "AMS" for standard AMS environment numbering,
542
// or "all" to number all displayed equations
543
// formatNumber: function (n) {return n}, // format for equation number n
544
// formatTag: function (n) {return '('+n+')'}, // format for \tag and \eqref
545
// formatID: function (n) {return 'mjx-eqn-'+String(n).replace(/[:'"<>&]/g,"")},
546
// // element ID to use for reference
547
// formatURL: function (id) {return '#'+escape(id)}, // URL to use for references
548
useLabelIds: true // make element ID's use \label name rather than equation number
549
},
550
551
//
552
// Controls the TeX/noErrors extension
553
//
554
noErrors: {
555
disabled: false, // set to true to return to original error messages
556
multiLine: true, // false to not include original line breaks
557
inlineDelimiters: ["",""], // or use ["$","$"] or ["\\(","\\)"] to put back delimiters
558
style: {
559
"font-size": "90%",
560
"text-align": "left",
561
"color": "black",
562
"padding": "1px 3px",
563
"border": "1px solid"
564
}
565
},
566
567
//
568
// Controls the TeX/noUndefined extension
569
//
570
noUndefined: {
571
disabled: false, // set to true to return to original error messages
572
attributes: { // attributes to set for the undefined control sequence
573
mathcolor: "red"
574
}
575
},
576
577
//
578
// Controls the TeX/unicode extension
579
unicode: {
580
fonts: "STIXGeneral,'Arial Unicode MS'" // the default font list for unknown characters
581
}
582
583
},
584
585
//============================================================================
586
//
587
// These parameters control the AsciiMath input jax.
588
//
589
AsciiMath: {
590
//
591
// Determines whether the unicode positions for phi and varphi are
592
// to be swapped or not. (Unicode originally had these reversed, and
593
// many fonts have them reversed as well.) When set to true, phi
594
// and varphi will correspond to the LaTeX macros of the same name.
595
//
596
fixphi: true,
597
598
//
599
// Determines whether the MathML should be marked so that the HTML-CSS
600
// and SVG output jax will use MathML spacing rules rather than TeX
601
// spacing rules. Since AsciiMath was designed for MathML output, the
602
// MathML rules are used by default.
603
//
604
useMathMLspacing: true,
605
606
//
607
// Determines whether limits are placed above and below operators,
608
// or next to them. (AsciiMath doesn't have separate in-line and
609
// display modes like TeX and MathML do, so this is the only control
610
// you have over its output)
611
//
612
displaystyle: true,
613
614
//
615
// The character to use for decimal places when scanning for a number.
616
// If you change it to ",", beware of things like "(1,2)" which would need
617
// to be changed to "(1, 2)" to be parsed correctly.
618
//
619
decimal: "."
620
},
621
622
//============================================================================
623
//
624
// These parameters control the MathML input jax.
625
//
626
MathML: {
627
//
628
// This specifies whether to use TeX spacing or MathML spacing when the
629
// HTML-CSS output jax is used.
630
//
631
useMathMLspacing: false
632
},
633
634
//============================================================================
635
//
636
// These parameters control the HTML-CSS output jax.
637
//
638
"HTML-CSS": {
639
640
//
641
// This controls the global scaling of mathematics as compared to the
642
// surrounding text. Values between 100 and 133 are usually good choices.
643
//
644
scale: 100,
645
646
//
647
// Don't allow the matching of math text to surrounding text to use a scaling
648
// factor smaller than this.
649
//
650
minScaleAdjust: 50,
651
652
//
653
// This is a list of the fonts to look for on a user's computer in
654
// preference to using MathJax's web-based fonts. These must
655
// correspond to directories available in the jax/output/HTML-CSS/fonts
656
// directory, where MathJax stores data about the characters available
657
// in the fonts. Set this to ["TeX"], for example, to prevent the
658
// use of the STIX fonts, or set it to an empty list, [], if
659
// you want to force MathJax to use web-based or image fonts.
660
//
661
availableFonts: ["STIX","TeX"],
662
663
//
664
// This is the preferred font to use when more than one of those
665
// listed above is available.
666
//
667
preferredFont: "TeX",
668
669
//
670
// This is the web-based font to use when none of the fonts listed
671
// above are available on the user's computer. Note that currently
672
// only the TeX font is available in a web-based form. Set this to
673
//
674
// webFont: null,
675
//
676
// if you want to prevent the use of web-based fonts.
677
//
678
webFont: "TeX",
679
680
//
681
// This is the font to use for image fallback mode (when none of the
682
// fonts listed above are available and the browser doesn't support
683
// web-fonts via the @font-face CSS directive). Note that currently
684
// only the TeX font is available as an image font. Set this to
685
//
686
// imageFont: null,
687
//
688
// if you want to prevent the use of image fonts (e.g., you have not
689
// installed the image fonts on your server). In this case, only
690
// browsers that support web-based fonts will be able to view your pages
691
// without having the fonts installed on the client computer. The browsers
692
// that support web-based fonts include: IE6 and later, Chrome, Safari3.1
693
// and above, Firefox3.5 and later, and Opera10 and later. Note that
694
// Firefox3.0 is NOT on this list, so without image fonts, FF3.0 users
695
// will be required to to download and install either the STIX fonts or the
696
// MathJax TeX fonts.
697
//
698
imageFont: null,
699
700
//
701
// This is the font-family CSS value used for characters that are not
702
// in the selected font (e.g., for web-based fonts, this is where to
703
// look for characters not included in the MathJax_* fonts). IE will
704
// stop looking after the first font that exists on the system (even
705
// if it doesn't contain the needed character), so order these carefully.
706
//
707
undefinedFamily: "STIXGeneral,'Arial Unicode MS',serif",
708
709
//
710
// This setting controls whether <mtext> elements will be typeset
711
// using the math fonts or the font of the surrounding text. When
712
// false, the mathvariant="normal" font will be used; when true,
713
// the font will be inherited from the surrounding paragraph.
714
//
715
mtextFontInherit: false,
716
717
//
718
// These values control how "chunky" the display of mathematical
719
// expressions will be.
720
//
721
// EqnChunk is the number of equations that will be typeset before
722
// they appear on screen. Larger values make for less visual flicker
723
// as the equations are drawn, but also mean longer delays before the
724
// reader sees anything.
725
//
726
// EqChunkFactor is the factor by which the EqnChunk will grow after each
727
// chunk is displayed.
728
//
729
// EqChunkDelay is the time (in milliseconds) to delay between chunks
730
// (to allow the browser to respond to other user interaction).
731
//
732
// Set EqnChunk to 1, EqnChunkFactor to 1, and EqnChunkDelay to 10 to get
733
// the behavior from MathJax v1.1 and below.
734
//
735
EqnChunk: 50,
736
EqnChunkFactor: 1.5,
737
EqnChunkDelay: 100,
738
739
//
740
// This option indicates whether MathJax should try to correct the
741
// x-height of equations to match the size of the surrounding text.
742
//
743
matchFontHeight: true,
744
745
//
746
// When true, MathJax will not measure the widths or heights of the
747
// subexpressions as it creates its output, but instead will rely on
748
// its internal calculautions based on teh bounding boxes of the
749
// characters it uses, and will only take measurements when it
750
// absolutely has to. Since measurements cause display reflows, they
751
// slows down MathJax considerably, so without them MathJax runs
752
// faster, but can produce slightly less accurate character placements,
753
// especially in width fractions or roots.
754
//
755
noReflows: true,
756
757
758
//
759
// These settings control automatic line breaking. It is off by
760
// default, so only explicit line breaks are performed (via
761
// linebreak="newline" attributes on <mo> and <mspace> elements). To
762
// perform automatic line breaking on line expressions, set
763
// 'automatic' to 'true' below. The line breaks will be applied via a
764
// penalty-based heuristic, which does well, but isn't perfect. You
765
// might need to use linebreak="goodbreak" or linebreak="badbreak" by
766
// hand in order to get better effects. It is also possible to modify
767
// the penalty values; contact the MathJax user's forum for details.
768
//
769
linebreaks: {
770
771
//
772
// This controls the automatic breaking of expressions:
773
// when false, only process linebreak="newline",
774
// when true, line breaks are inserted automatically in long expressions.
775
//
776
automatic: false,
777
778
//
779
// This controls how wide the lines of mathematics can be
780
//
781
// Use an explicit width like "30em" for a fixed width.
782
// Use "container" to compute the size from the containing element.
783
// Use "nn% container" for a portion of the container.
784
// Use "nn%" for a portion of the window size.
785
//
786
// The container-based widths may be slower, and may not produce the
787
// expected results if the layout width changes due to the removal
788
// of previews or inclusion of mathematics during typesetting.
789
//
790
width: "container"
791
},
792
793
//
794
// This allows you to define or modify the styles used to display
795
// various math elements created by MathJax.
796
//
797
// Example:
798
// styles: {
799
// ".MathJax .merror": {
800
// color: "#CC0000",
801
// border: "1px solid #CC0000"
802
// }
803
// }
804
//
805
styles: {},
806
807
//
808
// Configuration for <maction> tooltips
809
// (see also the #MathJax_Tooltip CSS in MathJax/jax/output/HTML-CSS/config.js,
810
// which can be overriden using the styles values above).
811
//
812
tooltip: {
813
delayPost: 600, // milliseconds delay before tooltip is posted after mouseover
814
delayClear: 600, // milliseconds delay before tooltip is cleared after mouseout
815
offsetX: 10, offsetY: 5 // pixels to offset tooltip from mouse position
816
}
817
},
818
819
//============================================================================
820
//
821
// These parameters control the NativeMML output jax.
822
//
823
NativeMML: {
824
825
//
826
// This controls the global scaling of mathematics as compared to the
827
// surrounding text. Values between 100 and 133 are usually good choices.
828
//
829
scale: 100,
830
831
//
832
// Don't allow the matching of math text to surrounding text to use a scaling
833
// factor smaller than this.
834
//
835
minScaleAdjust: 50,
836
837
// This option indicates whether MathJax should try to correct the
838
// x-height of equations to match the size of the surrounding text.
839
matchFontHeight: true,
840
841
//
842
// This allows you to define or modify the styles used to display
843
// various math elements created by MathJax.
844
//
845
// Example:
846
// styles: {
847
// ".MathJax_MathML": {
848
// color: "red" // MathML is in red
849
// }
850
// }
851
//
852
styles: {}
853
},
854
855
//============================================================================
856
//
857
// These parameters control the SVG output jax.
858
//
859
"SVG": {
860
861
//
862
// This controls the global scaling of mathematics as compared to the
863
// surrounding text. Values between 100 and 133 are usually good choices.
864
//
865
scale: 100,
866
867
//
868
// Don't allow the matching of math text to surrounding text to use a scaling
869
// factor smaller than this.
870
//
871
minScaleAdjust: 50,
872
873
//
874
// This specifies the font to use for SVG output (currently the only
875
// one available)
876
//
877
font: "TeX",
878
879
//
880
// This is the stroke width to use for all character paths (1em = 1000
881
// units). This is a cheap way of getting slightly lighter or darker
882
// characters
883
//
884
blacker: 10,
885
886
//
887
// This is the font-family CSS value used for characters that are not
888
// in the selected font. IE will stop looking after the first font
889
// that exists on the system (even if it doesn't contain the needed
890
// character), so order these carefully.
891
//
892
undefinedFamily: "STIXGeneral,'Arial Unicode MS',serif",
893
894
//
895
// This setting controls whether <mtext> elements will be typeset
896
// using the math fonts or the font of the surrounding text. When
897
// false, the mathvariant="normal" font will be used; when true,
898
// the font will be inherited from the surrounding paragraph.
899
//
900
mtextFontInherit: false,
901
902
//
903
// This controls whether the MathML structure is retained and CSS
904
// classes are added to mark the original MathML elements (as in the
905
// HTML-CSS output). By default, the SVG output jax removes unneeded
906
// nesting in order to produce a more efficient markup, but if you
907
// want to use CSS to style the elements as if they were MathML, you
908
// might need to set this to true.
909
//
910
addMMLclasses: false,
911
912
//
913
// These values control how "chunky" the display of mathematical
914
// expressions will be.
915
//
916
// EqnChunk is the number of equations that will be typeset before
917
// they appear on screen. Larger values make for less visual flicker
918
// as the equations are drawn, but also mean longer delays before the
919
// reader sees anything.
920
//
921
// EqChunkFactor is the factor by which the EqnChunk will grow after each
922
// chunk is displayed.
923
//
924
// EqChunkDelay is the time (in milliseconds) to delay between chunks
925
// (to allow the browser to respond to other user interaction).
926
//
927
// Set EqnChunk to 1, EqnChunkFactor to 1, and EwnChunkDelay to 10 to get
928
// the behavior from MathJax v1.1 and below.
929
//
930
EqnChunk: 50,
931
EqnChunkFactor: 1.5,
932
EqnChunkDelay: 100,
933
934
// This option indicates whether MathJax should try to correct the
935
// x-height of equations to match the size of the surrounding text.
936
matchFontHeight: true,
937
938
//
939
// These settings control automatic line breaking. It is off by
940
// default, so only explicit line breaks are performed (via
941
// linebreak="newline" attributes on <mo> and <mspace> elements). To
942
// perform automatic line breaking on line expressions, set
943
// 'automatic' to 'true' below. The line breaks will be applied via a
944
// penalty-based heuristic, which does well, but isn't perfect. You
945
// might need to use linebreak="goodbreak" or linebreak="badbreak" by
946
// hand in order to get better effects. It is also possible to modify
947
// the penalty values; contact the MathJax user's forum for details.
948
//
949
linebreaks: {
950
951
//
952
// This controls the automatic breaking of expressions:
953
// when false, only process linebreak="newline",
954
// when true, line breaks are inserted automatically in long expressions.
955
//
956
automatic: false,
957
958
//
959
// This controls how wide the lines of mathematics can be
960
//
961
// Use an explicit width like "30em" for a fixed width.
962
// Use "container" to compute the size from the containing element.
963
// Use "nn% container" for a portion of the container.
964
// Use "nn%" for a portion of the window size.
965
//
966
// The container-based widths may be slower, and may not produce the
967
// expected results if the layout width changes due to the removal
968
// of previews or inclusion of mathematics during typesetting.
969
//
970
width: "container"
971
},
972
973
//
974
// These are the styles used for merror elements in SVG output. Note
975
// that only a limited number of style attributes are supported by
976
// SVG, but you can at least change the colors and borders.
977
//
978
//
979
merrorStyle: {
980
fontSize:"90%", color:"#C00", background:"#FF8",
981
border: "1px solid #C00", padding:"3px"
982
},
983
984
//
985
// This allows you to define or modify the styles used to display
986
// various math elements created by MathJax.
987
//
988
// Example:
989
// styles: {
990
// ".MathJax .merror": {
991
// color: "#CC0000",
992
// border: "1px solid #CC0000"
993
// }
994
// }
995
//
996
styles: {},
997
998
//
999
// Configuration for <maction> tooltips
1000
// (see also the #MathJax_Tooltip CSS in MathJax/jax/output/SVG/config.js,
1001
// which can be overriden using the styles values above).
1002
//
1003
tooltip: {
1004
delayPost: 600, // milliseconds delay before tooltip is posted after mouseover
1005
delayClear: 600, // milliseconds delay before tooltip is cleared after mouseout
1006
offsetX: 10, offsetY: 5 // pixels to offset tooltip from mouse position
1007
}
1008
},
1009
1010
//============================================================================
1011
//
1012
// These parameters control the contextual menus that are available on the
1013
// mathematics within the page (provided the showMathMenu value is true above).
1014
//
1015
MathMenu: {
1016
//
1017
// This is the hover delay for the display of submenus in the
1018
// contextual menu. When the mouse is still over a submenu label for
1019
// this long, the menu will appear. (The menu also will appear if you
1020
// click on the label.) It is in milliseconds.
1021
//
1022
delay: 150,
1023
1024
//
1025
// This is the URL for the MathJax Help menu item.
1026
//
1027
helpURL: "http://www.mathjax.org/help-v2/user/",
1028
1029
//
1030
// These control whether the "Math Renderer", "MathPlayer", "Font
1031
// Preferences", "Contextual Menu", and "Discoverable" menu items will
1032
// be displayed or not.
1033
//
1034
showRenderer: true,
1035
showMathPlayer: true,
1036
showFontMenu: false,
1037
showContext: false,
1038
showDiscoverable: false,
1039
1040
//
1041
// These are the settings for the Annotation menu. If the <math> root has
1042
// a <semantics> child that contains one of the following annotation
1043
// formats, the source will be available via the "Show Math As" menu.
1044
// Each format has a list of possible encodings.
1045
//
1046
semanticsAnnotations: {
1047
"TeX": ["TeX", "LaTeX", "application/x-tex"],
1048
"StarMath": ["StarMath 5.0"],
1049
"Maple": ["Maple"],
1050
"ContentMathML": ["MathML-Content", "application/mathml-content+xml"],
1051
"OpenMath": ["OpenMath"]
1052
},
1053
1054
//
1055
// These are the settings for the Show Source window. The initial
1056
// width and height will be reset after the source is shown in an
1057
// attempt to make the window fit the output better.
1058
//
1059
windowSettings: {
1060
status: "no", toolbar: "no", locationbar: "no", menubar: "no",
1061
directories: "no", personalbar: "no", resizable: "yes", scrollbars: "yes",
1062
width: 100, height: 50
1063
},
1064
1065
//
1066
// This allows you to change the CSS that controls the menu
1067
// appearance. See the extensions/MathMenu.js file for details
1068
// of the default settings.
1069
//
1070
styles: {}
1071
1072
},
1073
1074
//============================================================================
1075
//
1076
// These parameters control the contextual menus that are available on the
1077
// mathematics within the page (provided the showMathMenu value is true above).
1078
//
1079
MathEvents: {
1080
//
1081
// This is the time required for the mouse to be held still over a
1082
// typeset equation in order for it to count as a hover (used when the
1083
// zoom trigger is "Hover"). It is in milliseconds.
1084
//
1085
hover: 500
1086
},
1087
1088
//============================================================================
1089
//
1090
// These parameters control the MMLorHTML configuration file.
1091
// NOTE: if you add MMLorHTML.js to the config array above,
1092
// you must REMOVE the output jax from the jax array.
1093
//
1094
MMLorHTML: {
1095
//
1096
// The output jax that is to be preferred when both are possible
1097
// (set to "MML" for native MathML, "HTML" for MathJax's HTML-CSS output jax).
1098
//
1099
prefer: {
1100
MSIE: "MML",
1101
Firefox: "HTML",
1102
Opera: "HTML",
1103
Safari: "HTML",
1104
Chrome: "HTML",
1105
other: "HTML"
1106
}
1107
}
1108
});
1109
1110
MathJax.Ajax.loadComplete("[MathJax]/config/default.js");
1111
1112