config.js (1860B)
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/input/TeX/config.js 7 * 8 * Initializes the TeX InputJax (the main definition is in 9 * MathJax/jax/input/TeX/jax.js, which is loaded when needed). 10 * 11 * --------------------------------------------------------------------- 12 * 13 * Copyright (c) 2009-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.InputJax.TeX = MathJax.InputJax({ 29 id: "TeX", 30 version: "2.6.1", 31 directory: MathJax.InputJax.directory + "/TeX", 32 extensionDir: MathJax.InputJax.extensionDir + "/TeX", 33 34 config: { 35 TagSide: "right", 36 TagIndent: "0.8em", 37 MultLineWidth: "85%", 38 39 equationNumbers: { 40 autoNumber: "none", // "AMS" for standard AMS numbering, 41 // or "all" for all displayed equations 42 formatNumber: function (n) {return n}, 43 formatTag: function (n) {return '('+n+')'}, 44 formatID: function (n) {return 'mjx-eqn-'+String(n).replace(/[:"'<>&]/g,"")}, 45 formatURL: function (id) {return '#'+escape(id)}, 46 useLabelIds: true 47 } 48 } 49 }); 50 MathJax.InputJax.TeX.Register("math/tex"); 51 52 MathJax.InputJax.TeX.loadComplete("config.js");