autoload-all.js 2.4 KB

1234567891011121314151617181920212223242526
  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/extensions/TeX/autoload-all.js
  6. *
  7. * Provides pre-defined macros to autoload all the extensions
  8. * so that all macros that MathJax knows about are available.
  9. *
  10. * ---------------------------------------------------------------------
  11. *
  12. * Copyright (c) 2013 The MathJax Consortium
  13. *
  14. * Licensed under the Apache License, Version 2.0 (the "License");
  15. * you may not use this file except in compliance with the License.
  16. * You may obtain a copy of the License at
  17. *
  18. * http://www.apache.org/licenses/LICENSE-2.0
  19. *
  20. * Unless required by applicable law or agreed to in writing, software
  21. * distributed under the License is distributed on an "AS IS" BASIS,
  22. * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  23. * See the License for the specific language governing permissions and
  24. * limitations under the License.
  25. */MathJax.Extension["TeX/autoload-all"]={version:"2.2"};MathJax.Hub.Register.StartupHook("TeX Jax Ready",function(){var c={action:["mathtip","texttip","toggle"],AMSmath:"mathring nobreakspace negmedspace negthickspace intI iiiint idotsint dddot ddddot sideset boxed substack injlim projlim varliminf varlimsup varinjlim varprojlim DeclareMathOperator operatorname genfrac tfrac dfrac binom tbinom dbinom cfrac shoveleft shoveright xrightarrow xleftarrow".split(" "),begingroup:["begingroup","endgroup","gdef","global"],cancel:["cancel","bcancel","xcancel","cancelto"],color:["color","textcolor","colorbox","fcolorbox","DefineColor"],enclose:["enclose"],extpfeil:"Newextarrow xlongequal xmapsto xtofrom xtwoheadleftarrow xtwoheadrightarrow".split(" "),mhchem:["ce","cee","cf"]},e={AMSmath:["subarray","smallmatrix","equation","equation*"],AMScd:["CD"]},a,b,d,f={macros:{},environment:{}};for(a in c)if(c.hasOwnProperty(a)&&!MathJax.Extension["TeX/"+a]){var g=c[a];b=0;for(d=g.length;b<d;b++)f.macros[g[b]]=["Extension",a]}for(a in e)if(e.hasOwnProperty(a)&&!MathJax.Extension["TeX/"+a])for(c=e[a],b=0,d=c.length;b<d;b++)f.environment[c[b]]=["ExtensionEnv",null,a];MathJax.InputJax.TeX.Definitions.Add(f);MathJax.Hub.Startup.signal.Post("TeX autoload-all Ready")});MathJax.Callback.Queue(["Require",MathJax.Ajax,"[MathJax]/extensions/TeX/AMSsymbols.js"],["loadComplete",MathJax.Ajax,"[MathJax]/extensions/TeX/autoload-all.js"]);