config.js 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. /*************************************************************
  2. *
  3. * MathJax/jax/output/PlainSource/config.js
  4. *
  5. * Initializes the PlainSource OutputJax (the main definition is in
  6. * MathJax/jax/input/PlainSource/jax.js, which is loaded when needed).
  7. *
  8. * ---------------------------------------------------------------------
  9. *
  10. * Copyright (c) 2015-2017 The MathJax Consortium
  11. *
  12. * Licensed under the Apache License, Version 2.0 (the "License");
  13. * you may not use this file except in compliance with the License.
  14. * You may obtain a copy of the License at
  15. *
  16. * http://www.apache.org/licenses/LICENSE-2.0
  17. *
  18. * Unless required by applicable law or agreed to in writing, software
  19. * distributed under the License is distributed on an "AS IS" BASIS,
  20. * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  21. * See the License for the specific language governing permissions and
  22. * limitations under the License.
  23. */
  24. MathJax.OutputJax.PlainSource = MathJax.OutputJax({
  25. id: "PlainSource",
  26. version: "2.7.2",
  27. directory: MathJax.OutputJax.directory + "/PlainSource",
  28. extensionDir: MathJax.OutputJax.extensionDir + "/PlainSource",
  29. config: {
  30. styles: {
  31. ".MathJax_PlainSource_Display": {
  32. "text-align": "center",
  33. margin: ".75em 0px",
  34. "white-space":"pre"
  35. },
  36. ".MathJax_PlainSource_Display > span": {
  37. display: "inline-block",
  38. "text-align": "left"
  39. }
  40. }
  41. }
  42. });
  43. if (!MathJax.Hub.config.delayJaxRegistration)
  44. MathJax.OutputJax.PlainSource.Register("jax/mml");
  45. MathJax.OutputJax.PlainSource.loadComplete("config.js");