config.js 1.8 KB

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