Real-time collaboration for Jupyter Notebooks, Linux Terminals, LaTeX, VS Code, R IDE, and more,
all in one place. Commercial Alternative to JupyterHub.
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: 717255/* -*- Mode: Javascript; indent-tabs-mode:nil; js-indent-level: 2 -*- */1/* vim: set ts=2 et sw=2 tw=80: */23/*************************************************************4*5* MathJax/config/default.js6*7* This configuration file is loaded when you load MathJax8* via <script src="MathJax.js?config=default"></script>9*10* Use it to customize the MathJax settings. See comments below.11*12* ---------------------------------------------------------------------13*14* Copyright (c) 2009-2015 The MathJax Consortium15*16* Licensed under the Apache License, Version 2.0 (the "License");17* you may not use this file except in compliance with the License.18* You may obtain a copy of the License at19*20* http://www.apache.org/licenses/LICENSE-2.021*22* Unless required by applicable law or agreed to in writing, software23* distributed under the License is distributed on an "AS IS" BASIS,24* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.25* See the License for the specific language governing permissions and26* limitations under the License.27*/282930/*31* This file lists most, but not all, of the options that can be set for32* MathJax and its various components. Some additional options are33* available, however, and are listed in the various links at:34*35* http://www.mathjax.org/resources/docs/?configuration.html#configuration-options-by-component36*37* You can add these to the configuration object below if you38* want to change them from their default values.39*/4041MathJax.Hub.Config({4243//44// A comma-separated list of configuration files to load45// when MathJax starts up. E.g., to define local macros, etc.46// The default directory is the MathJax/config directory.47//48// Example: config: ["local/local.js"],49// Example: config: ["local/local.js","MMLtoHTML.js"],50//51config: [],5253//54// A comma-separated list of CSS stylesheet files to be loaded55// when MathJax starts up. The default directory is the56// MathJax/config directory.57//58// Example: styleSheets: ["MathJax.css"],59//60styleSheets: [],6162//63// Styles to be defined dynamically at startup time.64//65// Example:66// styles: {67// ".MathJax_Preview": {68// color: "#888"69// }70// },71//72styles: {},7374//75// A comma-separated list of input and output jax to initialize at startup.76// Their main code is loaded only when they are actually used, so it is not77// inefficient to include jax that may not actually be used on the page. These78// are found in the MathJax/jax directory. The choices include79//80// input/TeX81// input/MathML82// input/AsciiMath83//84// output/HTML-CSS85// output/NativeMML86// output/SVG87//88// If you change the input jax, you may need to include the appropriate89// preprocessor in the extensions array below.90//91jax: ["input/TeX", "output/HTML-CSS"],9293//94// A comma-separated list of extensions to load at startup. The default95// directory is MathJax/extensions.96//97// Example: extensions: ["tex2jax.js","TeX/AMSmath.js","TeX/AMSsymbols.js"],98//99// You may wish to include "mml2jax.js" if you are using "input/MathML" in the100// jax array above, and "asciimath2jax.js" if you using "input/AsciiMath".101// Include "jsmath2jax.js" if you are converting from using jsMath to MathJax.102//103extensions: ["tex2jax.js"],104105//106// Patterns to remove from before and after math script tags. If you are not107// using one of the preprocessors (e.g., tex2jax), you need to insert something108// extra into your HTML file in order to avoid a bug in Internet Explorer. IE109// removes spaces from the DOM that it thinks are redundent, and since a SCRIPT110// tag usually doesn't add content to the page, if there is a space before and after111// a MathJax SCRIPT tag, IE will remove the first space. When MathJax inserts112// the typeset mathematics, this means there will be no space before it and the113// preceeding text. In order to avoid this, you should include some "guard characters"114// before or after the math SCRIPT tag; define the patterns you want to use below.115// Note that these are used as regular expressions, so you will need to quote116// special characters. Furthermore, since they are javascript strings, you must117// quote javascript special characters as well. So to obtain a backslash, you must118// use \\ (doubled for javascript). For example, "\\[" is the pattern \[ in the119// regular expression. That means that if you want an actual backslash in your120// guard characters, you need to use "\\\\" in order to get \\ in the regular121// expression, and \ in the actual text. If both preJax and postJax are defined,122// both must be present in order to be removed.123//124// See also the preRemoveClass comments below.125//126// Example:127// preJax: "\\\\\\\\", // makes a double backslash the preJax text128// or129// preJax: "\\[\\[", // jax scripts must be enclosed in double brackets130// postJax: "\\]\\]",131//132preJax: null,133postJax: null,134135//136// The CSS class for a math preview to be removed preceeding a MathJax137// SCRIPT tag. If the tag just before the MathJax SCRIPT tag is of this138// class, its contents are removed when MathJax processes the SCRIPT139// tag. This allows you to include a math preview in a form that will140// be displayed prior to MathJax performing its typesetting. It also141// avoids the Internet Explorer space-removal bug, and can be used in142// place of preJax and postJax if that is more convenient.143//144// For example145//146// <span class="MathJax_Preview">[math]</span><script type="math/tex">...</script>147//148// would display "[math]" in place of the math until MathJax is able to typeset it.149//150preRemoveClass: "MathJax_Preview",151152//153// This value controls whether the "Processing Math: nn%" message are displayed154// in the lower left-hand corner. Set to "false" to prevent those messages (though155// file loading and other messages will still be shown).156//157showProcessingMessages: true,158159//160// This value controls the verbosity of the messages in the lower left-hand corner.161// Set it to "none" to eliminate all messages, or set it to "simple" to show162// "Loading..." and "Processing..." rather than showing the full file name and the163// percentage of the mathematics processed.164//165messageStyle: "normal",166167//168// These two parameters control the alignment and shifting of displayed equations.169// The first can be "left", "center", or "right", and determines the alignment of170// displayed equations. When the alignment is not "center", the second determines171// an indentation from the left or right side for the displayed equations. When172// the alignment is "center", the indent allows you to shift the center to the right173// or left (negative is left).174//175displayAlign: "center",176displayIndent: "0",177178//179// Normally MathJax will perform its starup commands (loading of180// configuration, styles, jax, and so on) as soon as it can. If you181// expect to be doing additional configuration on the page, however, you182// may want to have it wait until the page's onload hander is called. If so,183// set this to "onload".184//185delayStartupUntil: "none",186187//188// Normally MathJax will typeset the mathematics on the page as soon as189// the page is loaded. If you want to delay that process, in which case190// you will need to call MathJax.Hub.Typeset() yourself by hand, set191// this value to true.192//193skipStartupTypeset: false,194195//196// A list of element ID's that are the ones to process for mathematics197// when any of the Hub typesetting calls (Typeset, Process, Update, etc)198// are called with no element specified. This lets you restrict the199// processing to particular containers rather than scanning the entire200// document for mathematics. If none are supplied, the entire document201// is processed.202//203elements: [],204205//206// Since typesetting usually changes the vertical dimensions of the207// page, if the URL contains an anchor position you may no longer be208// positioned at the correct position on the page, so MathJax can209// reposition to that location after it completes its initial210// typesetting of the page. This value controls whether MathJax will211// reposition the browser to the #hash location from the page URL after212// typesetting for the page.213//214positionToHash: true,215216//217// These control whether to attach the MathJax contextual menu to the218// expressions typeset by MathJax. Since the code for handling219// MathPlayer in Internet Explorer is somewhat delicate, it is220// controlled separately via (showMathMenuMSIE). The latter is now221// deprecated in favor of the MathJax contextual menu settings for222// MathPlayer.223//224// These values used to be listed in the separate output jax, but225// have been moved to this more central location since they are shared226// by all output jax.227//228showMathMenu: true,229showMathMenuMSIE: true,230231232//233// The default settings for the MathJax contextual menu (overridden by234// the MathJax cookie when users change the menu settings).235//236menuSettings: {237zoom: "None", // when to do MathZoom238CTRL: false, // require CTRL for MathZoom?239ALT: false, // require Alt or Option?240CMD: false, // require CMD?241Shift: false, // require Shift?242zscale: "200%", // the scaling factor for MathZoom243font: "Auto", // what font HTML-CSS should use244context: "MathJax", // or "Browser" for pass-through to browser menu245mpContext: false, // true means pass menu events to MathPlayer in IE246mpMouse: false, // true means pass mouse events to MathPlayer in IE247texHints: true, // include class names for TeXAtom elements248semantics: false // add semantics tag with original form in MathML output249},250251//252// The message and style for when there is a processing error handling253// the mathematics (something has gone wrong with the input or output254// jax that prevents it from operating properly).255//256errorSettings: {257message: ["[",["MathProcessingError","Math Processing Error"],"]"],258style: {color: "#CC0000", "font-style":"italic"} // style for message259},260261262//============================================================================263//264// These parameters control the tex2jax preprocessor (when you have included265// "tex2jax.js" in the extensions list above).266//267tex2jax: {268269//270// The delimiters that surround in-line math expressions. The first in each271// pair is the initial delimiter and the second is the terminal delimiter.272// Comment out any that you don't want, but be sure there is no extra273// comma at the end of the last item in the list -- some browsers won't274// be able to handle that.275//276inlineMath: [277// ['$','$'], // uncomment this for standard TeX math delimiters278['\\(','\\)']279],280281//282// The delimiters that surround displayed math expressions. The first in each283// pair is the initial delimiter and the second is the terminal delimiter.284// Comment out any that you don't want, but be sure there is no extra285// comma at the end of the last item in the list -- some browsers won't286// be able to handle that.287//288displayMath: [289['$$','$$'],290['\\[','\\]']291],292293//294// This value determines whether tex2jax requires braces to be295// balanced within math delimiters (which allows for nested dollar296// signs). Set to false to get pre-v2.0 compatibility. When true,297//298// $y = x^2 \hbox{ when $x > 2$}$.299//300// will be properly handled as a single expression. When false, it301// would be interpreted as two searpate expressions, each with302// improperly balanced braces.303//304balanceBraces: true,305306//307// This array lists the names of the tags whose contents should not be308// processed by tex2jax (other than to look for ignore/process classes309// as listed below). You can add to (or remove from) this list to prevent310// MathJax from processing mathematics in specific contexts.311//312skipTags: ["script","noscript","style","textarea","pre","code","annotation","annotation-xml"],313314//315// This is the class name used to mark elements whose contents should316// not be processed by tex2jax (other than to look for the317// processClass pattern below). Note that this is a regular318// expression, and so you need to be sure to quote any regexp special319// characters. The pattern is automatically preceeded by '(^| )(' and320// followed by ')( |$)', so your pattern will have to match full words321// in the class name. Assigning an element this class name will322// prevent `tex2jax` from processing its contents.323//324ignoreClass: "tex2jax_ignore",325326//327// This is the class name used to mark elements whose contents SHOULD328// be processed by tex2jax. This is used to turn on processing within329// tags that have been marked as ignored or skipped above. Note that330// this is a regular expression, and so you need to be sure to quote331// any regexp special characters. The pattern is automatically332// preceeded by '(^| )(' and followed by ')( |$)', so your pattern333// will have to match full words in the class name. Use this to334// restart processing within an element that has been marked as335// ignored above.336//337processClass: "tex2jax_process",338339//340// Set to "true" to allow \$ to produce a dollar without starting in-line341// math mode. If you uncomment the ['$','$'] line above, you should change342// this to true so that you can insert plain dollar signs into your documents343//344processEscapes: false,345346//347// Controls whether tex2jax processes LaTeX environments outside of math348// mode. Set to "false" to prevent processing of environments except within349// math mode.350//351processEnvironments: true,352353//354// Controls whether tex2jax processes \ref{...} commands outside355// of math mode. Set to "false" to prevent processing of \ref356// except within math mode.357//358processRefs: true,359360//361// Controls whether tex2jax inserts MathJax_Preview spans to make a362// preview available, and what preview to use, when it locates in-line363// and display mathetics on the page. The default is "TeX", which364// means use the TeX code as the preview (until it is processed by365// MathJax). Set to "none" to prevent the previews from being366// inserted (the math will simply disappear until it is typeset). Set367// to an array containing the description of an HTML snippet in order368// to use the same preview for all equations on the page (e.g., you369// could have it say "[math]" or load an image).370//371// E.g., preview: ["[math]"],372// or preview: [["img",{src: "http://myserver.com/images/mypic.jpg"}]]373//374preview: "TeX"375376},377378//============================================================================379//380// These parameters control the asciimath2jax preprocessor (when you have included381// "asciimath2jax.js" in the extensions list above).382//383asciimath2jax: {384385//386// The delimiters that surround asciimath expressions. The first in each387// pair is the initial delimiter and the second is the terminal delimiter.388//389delimiters: [390['`','`']391],392393//394// This array lists the names of the tags whose contents should not be395// processed by asciimath2jax (other than to look for ignore/process classes396// as listed below). You can add to (or remove from) this list to prevent397// MathJax from processing mathematics in specific contexts.398//399skipTags: ["script","noscript","style","textarea","pre","code","annotation","annotation-xml"],400401//402// This is the class name used to mark elements whose contents should403// not be processed by asciimath2jax (other than to look for the404// processClass pattern below). Note that this is a regular405// expression, and so you need to be sure to quote any regexp special406// characters. The pattern is automatically preceeded by '(^| )(' and407// followed by ')( |$)', so your pattern will have to match full words408// in the class name. Assigning an element this class name will409// prevent `asciimath2jax` from processing its contents.410//411ignoreClass: "asciimath2jax_ignore",412413//414// This is the class name used to mark elements whose contents SHOULD415// be processed by asciimath2jax. This is used to turn on processing416// within tags that have been marked as ignored or skipped above.417// Note that this is a regular expression, and so you need to be sure418// to quote any regexp special characters. The pattern is419// automatically preceeded by '(^| )(' and followed by ')( |$)', so420// your pattern will have to match full words in the class name. Use421// this to restart processing within an element that has been marked422// as ignored above.423//424processClass: "asciimath2jax_process",425426// Controls whether asciimath2jax inserts MathJax_Preview spans to make a427// preview available, and what preview to use, when it locates in-line428// and display mathetics on the page. The default is "AsciiMath", which429// means use the AsciiMath code as the preview (until it is processed by430// MathJax). Set to "none" to prevent the previews from being431// inserted (the math will simply disappear until it is typeset). Set432// to an array containing the description of an HTML snippet in order433// to use the same preview for all equations on the page (e.g., you434// could have it say "[math]" or load an image).435//436// E.g., preview: ["[math]"],437// or preview: [["img",{src: "http://myserver.com/images/mypic.jpg"}]]438//439preview: "AsciiMath"440441},442443//============================================================================444//445// These parameters control the mml2jax preprocessor (when you have included446// "mml2jax.js" in the extensions list above).447//448mml2jax: {449450//451// Controls whether mml2jax inserts MathJax_Preview spans to make a452// preview available, and what preview to use, when it locates453// mathematics on the page. The default is "mathml" which means use454// the <math> tag as the preview (until it is processed by MathJax).455// Set to "alttext", to use the <math> tag's alttext attribute as the456// preview, if the tag has one. Set to "none" to457// prevent the previews from being inserted (the math will simply458// disappear until it is typeset). Set to "altimg" to use an image459// described by the altimg* attributes of the <math> element.460// Set to an array containing the461// description of an HTML snippet in order to use the same preview for462// all equations on the page (e.g., you could have it say "[math]" or463// load an image).464//465// E.g., preview: ["[math]"],466// or preview: [["img",{src: "http://myserver.com/images/mypic.jpg"}]]467//468preview: "mathml"469470},471472//============================================================================473//474// These parameters control the jsMath2jax preprocessor (when you have included475// "jsMath2jax.js" in the extensions list above).476//477jsMath2jax: {478479//480// Controls whether jsMath2jax inserts MathJax_Preview spans to make a481// preview available, and what preview to use, when it locates482// mathematics on the page. The default is "TeX", which means use the483// TeX code as the preview (until it is processed by MathJax). Set to484// "none" to prevent the previews from being inserted (the math will485// simply disappear until it is typeset). Set to an array containing486// the description of an HTML snippet in order to use the same preview487// for all equations on the page (e.g., you could have it say "[math]"488// or load an image).489//490// E.g., preview: ["[math]"],491// or preview: [["img",{src: "http://myserver.com/images/mypic.jpg"}]]492//493preview: "TeX"494495},496497//============================================================================498//499// These parameters control the TeX input jax.500//501TeX: {502503//504// This specifies the side on which \tag{} macros will place the tags.505// Set to "left" to place on the left-hand side.506//507TagSide: "right",508509//510// This is the amound of indentation (from right or left) for the tags.511//512TagIndent: "0.8em",513514//515// This is the width to use for the multline environment516//517MultLineWidth: "85%",518519//520// List of macros to define. These are of the form521// name: value522// where 'value' is the replacement text for the macro \name.523// The 'value' can also be [value,n] where 'value' is the replacement524// text and 'n' is the number of parameters for the macro.525// Note that backslashes must be doubled in the replacement string.526//527// E.g.,528//529// Macros: {530// RR: '{\\bf R}',531// bold: ['{\\bf #1}', 1]532// }533//534Macros: {},535536//537// Equation numbering parameters.538//539equationNumbers: {540autoNumber: "none", // "AMS" for standard AMS environment numbering,541// or "all" to number all displayed equations542// formatNumber: function (n) {return n}, // format for equation number n543// formatTag: function (n) {return '('+n+')'}, // format for \tag and \eqref544// formatID: function (n) {return 'mjx-eqn-'+String(n).replace(/[:'"<>&]/g,"")},545// // element ID to use for reference546// formatURL: function (id) {return '#'+escape(id)}, // URL to use for references547useLabelIds: true // make element ID's use \label name rather than equation number548},549550//551// Controls the TeX/noErrors extension552//553noErrors: {554disabled: false, // set to true to return to original error messages555multiLine: true, // false to not include original line breaks556inlineDelimiters: ["",""], // or use ["$","$"] or ["\\(","\\)"] to put back delimiters557style: {558"font-size": "90%",559"text-align": "left",560"color": "black",561"padding": "1px 3px",562"border": "1px solid"563}564},565566//567// Controls the TeX/noUndefined extension568//569noUndefined: {570disabled: false, // set to true to return to original error messages571attributes: { // attributes to set for the undefined control sequence572mathcolor: "red"573}574},575576//577// Controls the TeX/unicode extension578unicode: {579fonts: "STIXGeneral,'Arial Unicode MS'" // the default font list for unknown characters580}581582},583584//============================================================================585//586// These parameters control the AsciiMath input jax.587//588AsciiMath: {589//590// Determines whether the unicode positions for phi and varphi are591// to be swapped or not. (Unicode originally had these reversed, and592// many fonts have them reversed as well.) When set to true, phi593// and varphi will correspond to the LaTeX macros of the same name.594//595fixphi: true,596597//598// Determines whether the MathML should be marked so that the HTML-CSS599// and SVG output jax will use MathML spacing rules rather than TeX600// spacing rules. Since AsciiMath was designed for MathML output, the601// MathML rules are used by default.602//603useMathMLspacing: true,604605//606// Determines whether limits are placed above and below operators,607// or next to them. (AsciiMath doesn't have separate in-line and608// display modes like TeX and MathML do, so this is the only control609// you have over its output)610//611displaystyle: true,612613//614// The character to use for decimal places when scanning for a number.615// If you change it to ",", beware of things like "(1,2)" which would need616// to be changed to "(1, 2)" to be parsed correctly.617//618decimal: "."619},620621//============================================================================622//623// These parameters control the MathML input jax.624//625MathML: {626//627// This specifies whether to use TeX spacing or MathML spacing when the628// HTML-CSS output jax is used.629//630useMathMLspacing: false631},632633//============================================================================634//635// These parameters control the HTML-CSS output jax.636//637"HTML-CSS": {638639//640// This controls the global scaling of mathematics as compared to the641// surrounding text. Values between 100 and 133 are usually good choices.642//643scale: 100,644645//646// Don't allow the matching of math text to surrounding text to use a scaling647// factor smaller than this.648//649minScaleAdjust: 50,650651//652// This is a list of the fonts to look for on a user's computer in653// preference to using MathJax's web-based fonts. These must654// correspond to directories available in the jax/output/HTML-CSS/fonts655// directory, where MathJax stores data about the characters available656// in the fonts. Set this to ["TeX"], for example, to prevent the657// use of the STIX fonts, or set it to an empty list, [], if658// you want to force MathJax to use web-based or image fonts.659//660availableFonts: ["STIX","TeX"],661662//663// This is the preferred font to use when more than one of those664// listed above is available.665//666preferredFont: "TeX",667668//669// This is the web-based font to use when none of the fonts listed670// above are available on the user's computer. Note that currently671// only the TeX font is available in a web-based form. Set this to672//673// webFont: null,674//675// if you want to prevent the use of web-based fonts.676//677webFont: "TeX",678679//680// This is the font to use for image fallback mode (when none of the681// fonts listed above are available and the browser doesn't support682// web-fonts via the @font-face CSS directive). Note that currently683// only the TeX font is available as an image font. Set this to684//685// imageFont: null,686//687// if you want to prevent the use of image fonts (e.g., you have not688// installed the image fonts on your server). In this case, only689// browsers that support web-based fonts will be able to view your pages690// without having the fonts installed on the client computer. The browsers691// that support web-based fonts include: IE6 and later, Chrome, Safari3.1692// and above, Firefox3.5 and later, and Opera10 and later. Note that693// Firefox3.0 is NOT on this list, so without image fonts, FF3.0 users694// will be required to to download and install either the STIX fonts or the695// MathJax TeX fonts.696//697imageFont: null,698699//700// This is the font-family CSS value used for characters that are not701// in the selected font (e.g., for web-based fonts, this is where to702// look for characters not included in the MathJax_* fonts). IE will703// stop looking after the first font that exists on the system (even704// if it doesn't contain the needed character), so order these carefully.705//706undefinedFamily: "STIXGeneral,'Arial Unicode MS',serif",707708//709// This setting controls whether <mtext> elements will be typeset710// using the math fonts or the font of the surrounding text. When711// false, the mathvariant="normal" font will be used; when true,712// the font will be inherited from the surrounding paragraph.713//714mtextFontInherit: false,715716//717// These values control how "chunky" the display of mathematical718// expressions will be.719//720// EqnChunk is the number of equations that will be typeset before721// they appear on screen. Larger values make for less visual flicker722// as the equations are drawn, but also mean longer delays before the723// reader sees anything.724//725// EqChunkFactor is the factor by which the EqnChunk will grow after each726// chunk is displayed.727//728// EqChunkDelay is the time (in milliseconds) to delay between chunks729// (to allow the browser to respond to other user interaction).730//731// Set EqnChunk to 1, EqnChunkFactor to 1, and EqnChunkDelay to 10 to get732// the behavior from MathJax v1.1 and below.733//734EqnChunk: 50,735EqnChunkFactor: 1.5,736EqnChunkDelay: 100,737738//739// This option indicates whether MathJax should try to correct the740// x-height of equations to match the size of the surrounding text.741//742matchFontHeight: true,743744//745// When true, MathJax will not measure the widths or heights of the746// subexpressions as it creates its output, but instead will rely on747// its internal calculautions based on teh bounding boxes of the748// characters it uses, and will only take measurements when it749// absolutely has to. Since measurements cause display reflows, they750// slows down MathJax considerably, so without them MathJax runs751// faster, but can produce slightly less accurate character placements,752// especially in width fractions or roots.753//754noReflows: true,755756757//758// These settings control automatic line breaking. It is off by759// default, so only explicit line breaks are performed (via760// linebreak="newline" attributes on <mo> and <mspace> elements). To761// perform automatic line breaking on line expressions, set762// 'automatic' to 'true' below. The line breaks will be applied via a763// penalty-based heuristic, which does well, but isn't perfect. You764// might need to use linebreak="goodbreak" or linebreak="badbreak" by765// hand in order to get better effects. It is also possible to modify766// the penalty values; contact the MathJax user's forum for details.767//768linebreaks: {769770//771// This controls the automatic breaking of expressions:772// when false, only process linebreak="newline",773// when true, line breaks are inserted automatically in long expressions.774//775automatic: false,776777//778// This controls how wide the lines of mathematics can be779//780// Use an explicit width like "30em" for a fixed width.781// Use "container" to compute the size from the containing element.782// Use "nn% container" for a portion of the container.783// Use "nn%" for a portion of the window size.784//785// The container-based widths may be slower, and may not produce the786// expected results if the layout width changes due to the removal787// of previews or inclusion of mathematics during typesetting.788//789width: "container"790},791792//793// This allows you to define or modify the styles used to display794// various math elements created by MathJax.795//796// Example:797// styles: {798// ".MathJax .merror": {799// color: "#CC0000",800// border: "1px solid #CC0000"801// }802// }803//804styles: {},805806//807// Configuration for <maction> tooltips808// (see also the #MathJax_Tooltip CSS in MathJax/jax/output/HTML-CSS/config.js,809// which can be overriden using the styles values above).810//811tooltip: {812delayPost: 600, // milliseconds delay before tooltip is posted after mouseover813delayClear: 600, // milliseconds delay before tooltip is cleared after mouseout814offsetX: 10, offsetY: 5 // pixels to offset tooltip from mouse position815}816},817818//============================================================================819//820// These parameters control the NativeMML output jax.821//822NativeMML: {823824//825// This controls the global scaling of mathematics as compared to the826// surrounding text. Values between 100 and 133 are usually good choices.827//828scale: 100,829830//831// Don't allow the matching of math text to surrounding text to use a scaling832// factor smaller than this.833//834minScaleAdjust: 50,835836// This option indicates whether MathJax should try to correct the837// x-height of equations to match the size of the surrounding text.838matchFontHeight: true,839840//841// This allows you to define or modify the styles used to display842// various math elements created by MathJax.843//844// Example:845// styles: {846// ".MathJax_MathML": {847// color: "red" // MathML is in red848// }849// }850//851styles: {}852},853854//============================================================================855//856// These parameters control the SVG output jax.857//858"SVG": {859860//861// This controls the global scaling of mathematics as compared to the862// surrounding text. Values between 100 and 133 are usually good choices.863//864scale: 100,865866//867// Don't allow the matching of math text to surrounding text to use a scaling868// factor smaller than this.869//870minScaleAdjust: 50,871872//873// This specifies the font to use for SVG output (currently the only874// one available)875//876font: "TeX",877878//879// This is the stroke width to use for all character paths (1em = 1000880// units). This is a cheap way of getting slightly lighter or darker881// characters882//883blacker: 10,884885//886// This is the font-family CSS value used for characters that are not887// in the selected font. IE will stop looking after the first font888// that exists on the system (even if it doesn't contain the needed889// character), so order these carefully.890//891undefinedFamily: "STIXGeneral,'Arial Unicode MS',serif",892893//894// This setting controls whether <mtext> elements will be typeset895// using the math fonts or the font of the surrounding text. When896// false, the mathvariant="normal" font will be used; when true,897// the font will be inherited from the surrounding paragraph.898//899mtextFontInherit: false,900901//902// This controls whether the MathML structure is retained and CSS903// classes are added to mark the original MathML elements (as in the904// HTML-CSS output). By default, the SVG output jax removes unneeded905// nesting in order to produce a more efficient markup, but if you906// want to use CSS to style the elements as if they were MathML, you907// might need to set this to true.908//909addMMLclasses: false,910911//912// These values control how "chunky" the display of mathematical913// expressions will be.914//915// EqnChunk is the number of equations that will be typeset before916// they appear on screen. Larger values make for less visual flicker917// as the equations are drawn, but also mean longer delays before the918// reader sees anything.919//920// EqChunkFactor is the factor by which the EqnChunk will grow after each921// chunk is displayed.922//923// EqChunkDelay is the time (in milliseconds) to delay between chunks924// (to allow the browser to respond to other user interaction).925//926// Set EqnChunk to 1, EqnChunkFactor to 1, and EwnChunkDelay to 10 to get927// the behavior from MathJax v1.1 and below.928//929EqnChunk: 50,930EqnChunkFactor: 1.5,931EqnChunkDelay: 100,932933// This option indicates whether MathJax should try to correct the934// x-height of equations to match the size of the surrounding text.935matchFontHeight: true,936937//938// These settings control automatic line breaking. It is off by939// default, so only explicit line breaks are performed (via940// linebreak="newline" attributes on <mo> and <mspace> elements). To941// perform automatic line breaking on line expressions, set942// 'automatic' to 'true' below. The line breaks will be applied via a943// penalty-based heuristic, which does well, but isn't perfect. You944// might need to use linebreak="goodbreak" or linebreak="badbreak" by945// hand in order to get better effects. It is also possible to modify946// the penalty values; contact the MathJax user's forum for details.947//948linebreaks: {949950//951// This controls the automatic breaking of expressions:952// when false, only process linebreak="newline",953// when true, line breaks are inserted automatically in long expressions.954//955automatic: false,956957//958// This controls how wide the lines of mathematics can be959//960// Use an explicit width like "30em" for a fixed width.961// Use "container" to compute the size from the containing element.962// Use "nn% container" for a portion of the container.963// Use "nn%" for a portion of the window size.964//965// The container-based widths may be slower, and may not produce the966// expected results if the layout width changes due to the removal967// of previews or inclusion of mathematics during typesetting.968//969width: "container"970},971972//973// These are the styles used for merror elements in SVG output. Note974// that only a limited number of style attributes are supported by975// SVG, but you can at least change the colors and borders.976//977//978merrorStyle: {979fontSize:"90%", color:"#C00", background:"#FF8",980border: "1px solid #C00", padding:"3px"981},982983//984// This allows you to define or modify the styles used to display985// various math elements created by MathJax.986//987// Example:988// styles: {989// ".MathJax .merror": {990// color: "#CC0000",991// border: "1px solid #CC0000"992// }993// }994//995styles: {},996997//998// Configuration for <maction> tooltips999// (see also the #MathJax_Tooltip CSS in MathJax/jax/output/SVG/config.js,1000// which can be overriden using the styles values above).1001//1002tooltip: {1003delayPost: 600, // milliseconds delay before tooltip is posted after mouseover1004delayClear: 600, // milliseconds delay before tooltip is cleared after mouseout1005offsetX: 10, offsetY: 5 // pixels to offset tooltip from mouse position1006}1007},10081009//============================================================================1010//1011// These parameters control the contextual menus that are available on the1012// mathematics within the page (provided the showMathMenu value is true above).1013//1014MathMenu: {1015//1016// This is the hover delay for the display of submenus in the1017// contextual menu. When the mouse is still over a submenu label for1018// this long, the menu will appear. (The menu also will appear if you1019// click on the label.) It is in milliseconds.1020//1021delay: 150,10221023//1024// This is the URL for the MathJax Help menu item.1025//1026helpURL: "http://www.mathjax.org/help-v2/user/",10271028//1029// These control whether the "Math Renderer", "MathPlayer", "Font1030// Preferences", "Contextual Menu", and "Discoverable" menu items will1031// be displayed or not.1032//1033showRenderer: true,1034showMathPlayer: true,1035showFontMenu: false,1036showContext: false,1037showDiscoverable: false,10381039//1040// These are the settings for the Annotation menu. If the <math> root has1041// a <semantics> child that contains one of the following annotation1042// formats, the source will be available via the "Show Math As" menu.1043// Each format has a list of possible encodings.1044//1045semanticsAnnotations: {1046"TeX": ["TeX", "LaTeX", "application/x-tex"],1047"StarMath": ["StarMath 5.0"],1048"Maple": ["Maple"],1049"ContentMathML": ["MathML-Content", "application/mathml-content+xml"],1050"OpenMath": ["OpenMath"]1051},10521053//1054// These are the settings for the Show Source window. The initial1055// width and height will be reset after the source is shown in an1056// attempt to make the window fit the output better.1057//1058windowSettings: {1059status: "no", toolbar: "no", locationbar: "no", menubar: "no",1060directories: "no", personalbar: "no", resizable: "yes", scrollbars: "yes",1061width: 100, height: 501062},10631064//1065// This allows you to change the CSS that controls the menu1066// appearance. See the extensions/MathMenu.js file for details1067// of the default settings.1068//1069styles: {}10701071},10721073//============================================================================1074//1075// These parameters control the contextual menus that are available on the1076// mathematics within the page (provided the showMathMenu value is true above).1077//1078MathEvents: {1079//1080// This is the time required for the mouse to be held still over a1081// typeset equation in order for it to count as a hover (used when the1082// zoom trigger is "Hover"). It is in milliseconds.1083//1084hover: 5001085},10861087//============================================================================1088//1089// These parameters control the MMLorHTML configuration file.1090// NOTE: if you add MMLorHTML.js to the config array above,1091// you must REMOVE the output jax from the jax array.1092//1093MMLorHTML: {1094//1095// The output jax that is to be preferred when both are possible1096// (set to "MML" for native MathML, "HTML" for MathJax's HTML-CSS output jax).1097//1098prefer: {1099MSIE: "MML",1100Firefox: "HTML",1101Opera: "HTML",1102Safari: "HTML",1103Chrome: "HTML",1104other: "HTML"1105}1106}1107});11081109MathJax.Ajax.loadComplete("[MathJax]/config/default.js");111011111112