local.js 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  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/config/local/local.js
  6. *
  7. * Include changes and configuration local to your installation
  8. * in this file. For example, common macros can be defined here
  9. * (see below). To use this file, add "local/local.js" to the
  10. * config array in MathJax.js or your MathJax.Hub.Config() call.
  11. *
  12. * ---------------------------------------------------------------------
  13. *
  14. * Copyright (c) 2009-2018 The MathJax Consortium
  15. *
  16. * Licensed under the Apache License, Version 2.0 (the "License");
  17. * you may not use this file except in compliance with the License.
  18. * You may obtain a copy of the License at
  19. *
  20. * http://www.apache.org/licenses/LICENSE-2.0
  21. *
  22. * Unless required by applicable law or agreed to in writing, software
  23. * distributed under the License is distributed on an "AS IS" BASIS,
  24. * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  25. * See the License for the specific language governing permissions and
  26. * limitations under the License.
  27. */
  28. MathJax.Hub.Register.StartupHook("TeX Jax Ready",function () {
  29. var TEX = MathJax.InputJax.TeX;
  30. // place macros here. E.g.:
  31. // TEX.Macro("R","{\\bf R}");
  32. // TEX.Macro("op","\\mathop{\\rm #1}",1); // a macro with 1 parameter
  33. });
  34. MathJax.Ajax.loadComplete("[MathJax]/config/local/local.js");