instiki/public/MathJax/extensions/TeX/verb.js
Jacques Distler 1663d9f5c8 MathJax
For those without MathML-capable browsers,
we present MathJax. It's crappy 'n slow,
but it's better than nothing.
2010-10-17 22:30:56 -05:00

18 lines
1 KiB
JavaScript

/*
* ../SourceForge/trunk/mathjax/extensions/TeX/verb.js
*
* Copyright (c) 2010 Design Science, Inc.
*
* 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.Unpack([
['MathJax.','Hub.Register.StartupHook("TeX Jax Ready",function(){var c="1.0";var a=',0,'ElementJax.mml;var d=',0,'InputJax.TeX;var b=d.Definitions;b.macros.verb="Verb";d.Parse.Augment({Verb:function(e){var h=this.GetNext();var g=++this.i;if(h==""){d.Error(e+" requires an argument")}while(this.i<','this.string.','length&&',6,'charAt(this.i)!=h){this.i++}if(this.i==',6,'length){d.Error("Can\'t find closing delimiter for "+e)}var f=',6,'slice(g,this.i);this.i++;this.Push(a.mtext(f).With({mathvariant:a.VARIANT.MONOSPACE}))}});',0,'Hub.Startup.signal.Post("TeX verb Ready")});',0,'Ajax.loadComplete("[MathJax]/extensions/TeX/verb.js");']
]);