12345678910111213 |
- /*
- * /MathJax/extensions/TeX/action.js
- *
- * Copyright (c) 2009-2013 The MathJax Consortium
- *
- * Part of the MathJax library.
- * See http://www.mathjax.org for details.
- *
- * Licensed under the Apache License, Version 2.0;
- * you may not use this file except in compliance with the License.
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- */MathJax.Extension["TeX/action"]={version:"2.2"};MathJax.Hub.Register.StartupHook("TeX Jax Ready",function(){var d=MathJax.InputJax.TeX,b=MathJax.ElementJax.mml;d.Definitions.Add({macros:{toggle:"Toggle",mathtip:"Mathtip",texttip:["Macro","\\mathtip{#1}{\\text{#2}}",2]}},null,!0);d.Parse.Augment({Toggle:function(a){for(var c=[],e;"\\endtoggle"!==(e=this.GetArgument(a));)c.push(d.Parse(e,this.stack.env).mml());this.Push(b.maction.apply(b,c).With({actiontype:b.ACTIONTYPE.TOGGLE}))},Mathtip:function(a){var c=this.ParseArg(a);a=this.ParseArg(a);this.Push(b.maction(c,a).With({actiontype:b.ACTIONTYPE.TOOLTIP}))}});MathJax.Hub.Startup.signal.Post("TeX action Ready")});MathJax.Ajax.loadComplete("[MathJax]/extensions/TeX/action.js");
|