www

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README | LICENSE

config.js (1835B)


      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/AsciiMath/config.js
      7  *
      8  *  Initializes the AsciiMath InputJax (the main definition is in
      9  *  MathJax/jax/input/AsciiMath/jax.js, which is loaded when needed).
     10  *  
     11  *  Originally adapted for MathJax by David Lippman.
     12  *  Additional work done by Davide P. Cervone.
     13  *  
     14  *  ---------------------------------------------------------------------
     15  *  
     16  *  Copyright (c) 2012-2015 The MathJax Consortium
     17  * 
     18  *  Licensed under the Apache License, Version 2.0 (the "License");
     19  *  you may not use this file except in compliance with the License.
     20  *  You may obtain a copy of the License at
     21  * 
     22  *      http://www.apache.org/licenses/LICENSE-2.0
     23  * 
     24  *  Unless required by applicable law or agreed to in writing, software
     25  *  distributed under the License is distributed on an "AS IS" BASIS,
     26  *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
     27  *  See the License for the specific language governing permissions and
     28  *  limitations under the License.
     29  */
     30 
     31 MathJax.InputJax.AsciiMath = MathJax.InputJax({
     32   id: "AsciiMath",
     33   version: "2.6.0",
     34   directory: MathJax.InputJax.directory + "/AsciiMath",
     35   extensionDir: MathJax.InputJax.extensionDir + "/AsciiMath",
     36   
     37   config: {
     38     fixphi: true,                     // switch phi and varphi unicode values
     39     useMathMLspacing: true,           // use MathML spacing rather than TeX spacing?
     40     displaystyle: true,               // put limits above and below operators
     41     decimalsign: "."                  // can change to "," but watch out for "(1,2)"
     42   }
     43 });
     44 MathJax.InputJax.AsciiMath.Register("math/asciimath");
     45 
     46 MathJax.InputJax.AsciiMath.loadComplete("config.js");