/************************************************************* * * MathJax/config/MathJax.js * * This configuration file is loaded when there is no explicit * configuration script in the // // would display "[math]" in place of the math until MathJax is able to typeset it. // preRemoveClass: "MathJax_Preview", // // This value controls whether the "Processing Math: nn%" message are displayed // in the lower left-hand corner. Set to "false" to prevent those messages (though // file loading and other messages will still be shown). // showProcessingMessages: true, // // This value controls the verbosity of the messages in the lower left-hand corner. // Set it to "none" to eliminate all messages, or set it to "simple" to show // "Loading..." and "Processing..." rather than showing the full file name and the // percentage of the mathematics processed. // messageStyle: "normal", // // These two parameters control the alignment and shifting of displayed equations. // The first can be "left", "center", or "right", and determines the alignment of // displayed equations. When the alignment is not "center", the second determines // an indentation from the left or right side for the displayed equations. // displayAlign: "center", displayIndent: "0em", // // Normally MathJax will perform its starup commands (loading of // configuration, styles, jax, and so on) as soon as it can. If you // expect to be doing additional configuration on the page, however, you // may want to have it wait until the page's onload hander is called. If so, // set this to "onload". // delayStartupUntil: "none", // // Normally MathJax will typeset the mathematics on the page as soon as // the page is loaded. If you want to delay that process, in which case // you will need to call MathJax.Hub.Typeset() yourself by hand, set // this value to true. // skipStartupTypeset: false, //============================================================================ // // These parameters control the tex2jax preprocessor (when you have included // "tex2jax.js" in the extensions list above). // tex2jax: { // // The Id of the element to be processed (defaults to full document) // element: null, // // The delimiters that surround in-line math expressions. The first in each // pair is the initial delimiter and the second is the terminal delimiter. // Comment out any that you don't want, but be sure there is no extra // comma at the end of the last item in the list -- some browsers won't // be able to handle that. // inlineMath: [ ['$','$'], // uncomment this for standard TeX math delimiters ['\\(','\\)'] ], // // The delimiters that surround displayed math expressions. The first in each // pair is the initial delimiter and the second is the terminal delimiter. // Comment out any that you don't want, but be sure there is no extra // comma at the end of the last item in the list -- some browsers won't // be able to handle that. // displayMath: [ ['$$','$$'], ['\\[','\\]'] ], // // This array lists the names of the tags whose contents should not be // processed by tex2jax (other than to look for ignore/process classes // as listed below). You can add to (or remove from) this list to prevent // MathJax from processing mathematics in specific contexts. // skipTags: ["script","noscript","style","textarea","pre","code"], // // This is the class name used to mark elements whose contents should // not be processed by tex2jax (other than to look for the // processClass pattern below). Note that this is a regular // expression, and so you need to be sure to quote any regexp special // characters. The pattern is automatically preceeded by '(^| )(' and // followed by ')( |$)', so your pattern will have to match full words // in the class name. Assigning an element this class name will // prevent `tex2jax` from processing its contents. // ignoreClass: "tex2jax_ignore", // // This is the class name used to mark elements whose contents SHOULD // be processed by tex2jax. This is used to turn on processing within // tags that have been marked as ignored or skipped above. Note that // this is a regular expression, and so you need to be sure to quote // any regexp special characters. The pattern is automatically // preceeded by '(^| )(' and followed by ')( |$)', so your pattern // will have to match full words in the class name. Use this to // restart processing within an element that has been marked as // ignored above. // processClass: "tex2jax_process", // // Set to "true" to allow \$ to produce a dollar without starting in-line // math mode. If you uncomment the ['$','$'] line above, you should change // this to true so that you can insert plain dollar signs into your documents // processEscapes: false, // // Controls whether tex2jax processes LaTeX environments outside of math // mode. Set to "false" to prevent processing of environments except within // math mode. // processEnvironments: true, // // Controls whether tex2jax inserts MathJax_Preview spans to make a // preview available, and what preview to use, when it locates in-line // and display mathetics on the page. The default is "TeX", which // means use the TeX code as the preview (until it is processed by // MathJax). Set to "none" to prevent the previews from being // inserted (the math will simply disappear until it is typeset). Set // to an array containing the description of an HTML snippet in order // to use the same preview for all equations on the page (e.g., you // could have it say "[math]" or load an image). // // E.g., preview: ["[math]"], // or preview: [["img",{src: "http://myserver.com/images/mypic.jpg"}]] // preview: "TeX" }, //============================================================================ // // These parameters control the mml2jax preprocessor (when you have included // "mml2jax.js" in the extensions list above). // mml2jax: { // // The Id of the element to be processed (defaults to full document) // element: null, // // Controls whether mml2jax inserts MathJax_Preview spans to make a // preview available, and what preview to use, whrn it locates // mathematics on the page. The default is "alttext", which means use // the tag's alttext attribute as the preview (until it is // processed by MathJax), if the tag has one. Set to "none" to // prevent the previews from being inserted (the math will simply // disappear until it is typeset). Set to an array containing the // description of an HTML snippet in order to use the same preview for // all equations on the page (e.g., you could have it say "[math]" or // load an image). // // E.g., preview: ["[math]"], // or preview: [["img",{src: "http://myserver.com/images/mypic.jpg"}]] // preview: "alttext" }, //============================================================================ // // These parameters control the jsMath2jax preprocessor (when you have included // "jsMath2jax.js" in the extensions list above). // jsMath2jax: { // // The Id of the element to be processed (defaults to full document) // element: null, // // Controls whether jsMath2jax inserts MathJax_Preview spans to make a // preview available, and what preview to use, when it locates // mathematics on the page. The default is "TeX", which means use the // TeX code as the preview (until it is processed by MathJax). Set to // "none" to prevent the previews from being inserted (the math will // simply disappear until it is typeset). Set to an array containing // the description of an HTML snippet in order to use the same preview // for all equations on the page (e.g., you could have it say "[math]" // or load an image). // // E.g., preview: ["[math]"], // or preview: [["img",{src: "http://myserver.com/images/mypic.jpg"}]] // preview: "TeX" }, //============================================================================ // // These parameters control the TeX input jax. // TeX: { // // This specifies the side on which \tag{} macros will place the tags. // Set to "left" to place on the left-hand side. // TagSide: "right", // // This is the amound of indentation (from right or left) for the tags. // TagIndent: ".8em", // // This is the width to use for the multline environment // MultLineWidth: "85%", // // List of macros to define. These are of the form // name: value // where 'value' is the replacement text for the macro \name. // The 'value' can also be [value,n] where 'value' is the replacement // text and 'n' is the number of parameters for the macro. // Note that backslashes must be doubled in the replacement string. // // E.g., // // Macros: { // RR: '{\\bf R}', // bold: ['{\\bf #1}', 1] // } // Macros: {} }, //============================================================================ // // These parameters control the MathML inupt jax. // MathML: { // // This specifies whether to use TeX spacing or MathML spacing when the // HTML-CSS output jax is used. // useMathMLspacing: false }, //============================================================================ // // These parameters control the HTML-CSS output jax. // "HTML-CSS": { // // This controls the global scaling of mathematics as compared to the // surrounding text. Values between 100 and 133 are usually good choices. // scale: 100, // // This is a list of the fonts to look for on a user's computer in // preference to using MathJax's web-based fonts. These must // correspond to directories available in the jax/output/HTML-CSS/fonts // directory, where MathJax stores data about the characters available // in the fonts. Set this to ["TeX"], for example, to prevent the // use of the STIX fonts, or set it to an empty list, [], if // you want to force MathJax to use web-based or image fonts. // availableFonts: ["STIX","TeX"], // // This is the preferred font to use when more than one of those // listed above is available. // preferredFont: "TeX", // // This is the web-based font to use when none of the fonts listed // above are available on the user's computer. Note that currently // only the TeX font is available in a web-based form. Set this to // // webFont: null, // // if you want to prevent the use of web-based fonts. // webFont: "TeX", // // This is the font to use for image fallback mode (when none of the // fonts listed above are available and the browser doesn't support // web-fonts via the @font-face CSS directive). Note that currently // only the TeX font is available as an image font. Set this to // // imageFont: null, // // if you want to prevent the use of image fonts (e.g., you have not // installed the image fonts on your server). In this case, only // browsers that support web-based fonts will be able to view your pages // without having the fonts installed on the client computer. The browsers // that support web-based fonts include: IE6 and later, Chrome, Safari3.1 // and above, Firefox3.5 and later, and Opera10 and later. Note that // Firefox3.0 is NOT on this list, so without image fonts, FF3.0 users // will be required to to download and install either the STIX fonts or the // MathJax TeX fonts. // imageFont: "TeX", // // This controls whether the MathJax contextual menu will be available // on the mathematics in the page. If true, then right-clicking (on // the PC) or control-clicking (on the Mac) will produce a MathJax // menu that allows you to get the source of the mathematics in // various formats, change the size of the mathematics relative to the // surrounding text, and get information about MathJax. // // Set this to false to disable the menu. When true, the MathMenu // items below configure the actions of the menu. // showMathMenu: true, // // This allows you to define or modify the styles used to display // various math elements created by MathJax. // // Example: // styles: { // ".MathJax_Preview": { // "font-size": "80%", // preview uses a smaller font // color: "red" // and is in red // } // } // styles: {}, // // Configuration for tooltips // (see also the #MathJax_Tooltip CSS in MathJax/jax/output/HTML-CSS/config.js, // which can be overriden using the styles values above). // tooltip: { delayPost: 600, // milliseconds delay before tooltip is posted after mouseover delayClear: 600, // milliseconds delay before tooltip is cleared after mouseout offsetX: 10, offsetY: 5 // pixels to offset tooltip from mouse position } }, //============================================================================ // // These parameters control the NativeMML output jax. // NativeMML: { // // This controls the global scaling of mathematics as compared to the // surrounding text. Values between 100 and 133 are usually good choices. // scale: 100, // // This controls whether the MathJax contextual menu will be available // on the mathematics in the page. If true, then right-clicking (on // the PC) or control-clicking (on the Mac) will produce a MathJax // menu that allows you to get the source of the mathematics in // various formats, change the size of the mathematics relative to the // surrounding text, and get information about MathJax. // // Set this to false to disable the menu. When true, the MathMenu // items below configure the actions of the menu. // // There is a separate setting for MSIE, since the code to handle that // is a bit delicate; if it turns out to have unexpected consequences, // you can turn it off without turing off other browser support. // showMathMenu: true, showMathMenuMSIE: true, // // This allows you to define or modify the styles used to display // various math elements created by MathJax. // // Example: // styles: { // ".MathJax_MathML": { // color: "red" // MathML is in red // } // } // styles: {} }, //============================================================================ // // These parameters control the contextual menus that are available on the // mathematics within the page (provided the showMathMenu value is true above). // MathMenu: { // // This is the hover delay for the display of submenus in the // contextual menu. When the mouse is still over a submenu label for // this long, the menu will appear. (The menu also will appear if you // click on the label.) It is in milliseconds. // delay: 400, // // This is the URL for the MathJax Help menu item. // helpURL: "http://www.mathjax.org/help/user/", // // These control whether the "Math Renderer", "Font Preferences", // and "Contextual Menu" submenus will be displayed or not. // showRenderer: true, showFontMenu: false, showContext: false, // // These are the settings for the Show Source window. The initial // width and height will be reset after the source is shown in an // attempt to make the window fit the output better. // windowSettings: { status: "no", toolbar: "no", locationbar: "no", menubar: "no", directories: "no", personalbar: "no", resizable: "yes", scrollbars: "yes", width: 100, height: 50 }, // // This allows you to change the CSS that controls the menu // appearance. See the extensions/MathMenu.js file for details // of the default settings. // styles: {} }, //============================================================================ // // These parameters control the MMLorHTML configuration file. // NOTE: if you add MMLorHTML.js to the config array above, // you must REMOVE the output jax from the jax array. // MMLorHTML: { // // The output jax that is to be preferred when both are possible // (set to "MML" for native MathML, "HTML" for MathJax's HTML-CSS output jax). // prefer: { MSIE: "MML", Firefox: "MML", Opera: "HTML", other: "HTML" } } }); MathJax.Ajax.loadComplete("[MathJax]/config/MathJax.js");