config.js 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  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-2013 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.2",
  32. directory: MathJax.InputJax.directory + "/AsciiMath",
  33. extensionDir: MathJax.InputJax.extensionDir + "/AsciiMath",
  34. config: {
  35. displaystyle: true, // put limits above and below operators
  36. decimalsign: "." // can change to "," but watch out for "(1,2)"
  37. }
  38. });
  39. MathJax.InputJax.AsciiMath.Register("math/asciimath");
  40. MathJax.InputJax.AsciiMath.loadComplete("config.js");