config.js (2977B)
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/HTML2/config.js 7 * 8 * Initializes the HTML2 OutputJax (the main definition is in 9 * MathJax/jax/input/HTML2/jax.js, which is loaded when needed). 10 * 11 * --------------------------------------------------------------------- 12 * 13 * Copyright (c) 2013-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.CommonHTML = MathJax.OutputJax({ 29 id: "CommonHTML", 30 version: "2.6.1", 31 directory: MathJax.OutputJax.directory + "/CommonHTML", 32 extensionDir: MathJax.OutputJax.extensionDir + "/CommonHTML", 33 autoloadDir: MathJax.OutputJax.directory + "/CommonHTML/autoload", 34 fontDir: MathJax.OutputJax.directory + "/CommonHTML/fonts", // fontname added later 35 webfontDir: MathJax.OutputJax.fontDir + "/HTML-CSS", // fontname added later 36 37 config: { 38 matchFontHeight: true, // try to match math font height to surrounding font? 39 scale: 100, minScaleAdjust: 50, // global math scaling factor, and minimum adjusted scale factor 40 mtextFontInherit: false, // to make <mtext> be in page font rather than MathJax font 41 undefinedFamily: "STIXGeneral,'Cambria Math','Arial Unicode MS',serif", 42 43 EqnChunk: (MathJax.Hub.Browser.isMobile ? 20: 100), 44 // number of equations to process before showing them 45 EqnChunkFactor: 1.5, // chunk size is multiplied by this after each chunk 46 EqnChunkDelay: 100, // milliseconds to delay between chunks (to let browser 47 // respond to other events) 48 49 linebreaks: { 50 automatic: false, // when false, only process linebreak="newline", 51 // when true, insert line breaks automatically in long expressions. 52 53 width: "container" // maximum width of a line for automatic line breaks (e.g. "30em"). 54 // use "container" to compute size from containing element, 55 // use "nn% container" for a portion of the container, 56 // use "nn%" for a portion of the window size 57 } 58 59 } 60 }); 61 62 if (!MathJax.Hub.config.delayJaxRegistration) {MathJax.OutputJax.CommonHTML.Register("jax/mml")} 63 64 MathJax.OutputJax.CommonHTML.loadComplete("config.js");