config.js (4338B)
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/jax/output/SVG/config.js 7 * 8 * Initializes the SVG OutputJax (the main definition is in 9 * MathJax/jax/input/SVG/jax.js, which is loaded when needed). 10 * 11 * --------------------------------------------------------------------- 12 * 13 * Copyright (c) 2011-2015 The MathJax Consortium 14 * 15 * Licensed under the Apache License, Version 2.0 (the "License"); 16 * you may not use this file except in compliance with the License. 17 * You may obtain a copy of the License at 18 * 19 * http://www.apache.org/licenses/LICENSE-2.0 20 * 21 * Unless required by applicable law or agreed to in writing, software 22 * distributed under the License is distributed on an "AS IS" BASIS, 23 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 24 * See the License for the specific language governing permissions and 25 * limitations under the License. 26 */ 27 28 MathJax.OutputJax.SVG = MathJax.OutputJax({ 29 id: "SVG", 30 version: "2.6.1", 31 directory: MathJax.OutputJax.directory + "/SVG", 32 extensionDir: MathJax.OutputJax.extensionDir + "/SVG", 33 autoloadDir: MathJax.OutputJax.directory + "/SVG/autoload", 34 fontDir: MathJax.OutputJax.directory + "/SVG/fonts", // font name added later 35 36 config: { 37 scale: 100, minScaleAdjust: 50, // global math scaling factor, and minimum adjusted scale factor 38 font: "TeX", // currently the only font available 39 blacker: 1, // stroke-width to make fonts blacker 40 mtextFontInherit: false, // to make <mtext> be in page font rather than MathJax font 41 undefinedFamily: "STIXGeneral,'Arial Unicode MS',serif", // fonts to use for missing characters 42 43 addMMLclasses: false, // keep MathML structure and use CSS classes to mark elements 44 useFontCache: true, // use <use> elements to re-use font paths rather than repeat paths every time 45 useGlobalCache: true, // store fonts in a global <defs> for use in all equations, or one in each equation 46 47 EqnChunk: (MathJax.Hub.Browser.isMobile ? 10: 50), 48 // number of equations to process before showing them 49 EqnChunkFactor: 1.5, // chunk size is multiplied by this after each chunk 50 EqnChunkDelay: 100, // milliseconds to delay between chunks (to let browser 51 // respond to other events) 52 53 linebreaks: { 54 automatic: false, // when false, only process linebreak="newline", 55 // when true, insert line breaks automatically in long expressions. 56 57 width: "container" // maximum width of a line for automatic line breaks (e.g. "30em"). 58 // use "container" to compute size from containing element, 59 // use "nn% container" for a portion of the container, 60 // use "nn%" for a portion of the window size 61 }, 62 63 merrorStyle: { 64 fontSize:"90%", color:"#C00", background:"#FF8", 65 border: "1px solid #C00", padding:"3px" 66 }, 67 68 styles: { 69 ".MathJax_SVG_Display": { 70 "text-align": "center", 71 margin: "1em 0em" 72 }, 73 74 // 75 // For mtextFontInherit version of \texttt{} 76 // 77 ".MathJax_SVG .MJX-monospace": { 78 "font-family": "monospace" 79 }, 80 81 // 82 // For mtextFontInherit version of \textsf{} 83 // 84 ".MathJax_SVG .MJX-sans-serif": { 85 "font-family": "sans-serif" 86 }, 87 88 // 89 // For tooltips 90 // 91 "#MathJax_SVG_Tooltip": { 92 "background-color": "InfoBackground", color: "InfoText", 93 border: "1px solid black", 94 "box-shadow": "2px 2px 5px #AAAAAA", // Opera 10.5 95 "-webkit-box-shadow": "2px 2px 5px #AAAAAA", // Safari 3 and Chrome 96 "-moz-box-shadow": "2px 2px 5px #AAAAAA", // Forefox 3.5 97 "-khtml-box-shadow": "2px 2px 5px #AAAAAA", // Konqueror 98 padding: "3px 4px", 99 "z-index": 401 100 } 101 } 102 } 103 }); 104 105 if (!MathJax.Hub.config.delayJaxRegistration) {MathJax.OutputJax.SVG.Register("jax/mml")} 106 107 MathJax.OutputJax.SVG.loadComplete("config.js");