/* * /MathJax/extensions/TeX/extpfeil.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/extpfeil"]={version:"2.2"};MathJax.Hub.Register.StartupHook("TeX Jax Ready",function(){var b=MathJax.InputJax.TeX,f=b.Definitions;f.Add({macros:{xtwoheadrightarrow:["Extension","AMSmath"],xtwoheadleftarrow:["Extension","AMSmath"],xmapsto:["Extension","AMSmath"],xlongequal:["Extension","AMSmath"],xtofrom:["Extension","AMSmath"],Newextarrow:["Extension","AMSmath"]}},null,!0);MathJax.Hub.Register.StartupHook("TeX AMSmath Ready",function(){MathJax.Hub.Insert(f,{macros:{xtwoheadrightarrow:["xArrow",8608,12,16],xtwoheadleftarrow:["xArrow",8606,17,13],xmapsto:["xArrow",8614,6,7],xlongequal:["xArrow",61,7,7],xtofrom:["xArrow",8644,12,12],Newextarrow:"NewExtArrow"}})});b.Parse.Augment({NewExtArrow:function(a){var d=this.GetArgument(a),c=this.GetArgument(a),e=this.GetArgument(a);d.match(/^\\([a-z]+|.)$/i)||b.Error(["NewextarrowArg1","First argument to %1 must be a control sequence name",a]);c.match(/^(\d+),(\d+)$/)||b.Error(["NewextarrowArg2","Second argument to %1 must be two integers separated by a comma",a]);e.match(/^(\d+|0x[0-9A-F]+)$/i)||b.Error(["NewextarrowArg3","Third argument to %1 must be a unicode character number",a]);d=d.substr(1);c=c.split(",");e=parseInt(e);f.macros[d]=["xArrow",e,parseInt(c[0]),parseInt(c[1])]}});MathJax.Hub.Startup.signal.Post("TeX extpfeil Ready")});MathJax.Ajax.loadComplete("[MathJax]/extensions/TeX/extpfeil.js");