Sha256: efc7a6c474f302ba4dad165b0ef50e3fd73a23c06f5cd3298d89237ad216e13e

Contents?: true

Size: 1.72 KB

Versions: 166

Compression:

Stored size: 1.72 KB

Contents

/*
 *  /MathJax/extensions/TeX/mathchoice.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.Hub.Register.StartupHook("TeX Jax Ready",function(){var c="2.2";var a=MathJax.ElementJax.mml;var d=MathJax.InputJax.TeX;var b=d.Definitions;b.Add({macros:{mathchoice:"MathChoice"}},null,true);d.Parse.Augment({MathChoice:function(f){var i=this.ParseArg(f),e=this.ParseArg(f),g=this.ParseArg(f),h=this.ParseArg(f);this.Push(a.TeXmathchoice(i,e,g,h))}});a.TeXmathchoice=a.mbase.Subclass({type:"TeXmathchoice",notParent:true,choice:function(){if(this.selection==null){this.selection=0;var e=this.getValues("displaystyle","scriptlevel");if(e.scriptlevel>0){this.selection=Math.min(3,e.scriptlevel+1)}else{this.selection=(e.displaystyle?0:1)}}return this.selection},selected:function(){return this.data[this.choice()]},setTeXclass:function(e){return this.selected().setTeXclass(e)},isSpacelike:function(){return this.selected().isSpacelike()},isEmbellished:function(){return this.selected().isEmbellished()},Core:function(){return this.selected()},CoreMO:function(){return this.selected().CoreMO()},toHTML:function(e){e=this.HTMLcreateSpan(e);e.bbox=this.Core().toHTML(e).bbox;if(e.firstChild&&e.firstChild.style.marginLeft){e.style.marginLeft=e.firstChild.style.marginLeft;e.firstChild.style.marginLeft=""}return e},toSVG:function(){return this.Core().toSVG()}});MathJax.Hub.Startup.signal.Post("TeX mathchoice Ready")});MathJax.Ajax.loadComplete("[MathJax]/extensions/TeX/mathchoice.js");

Version data entries

166 entries across 123 versions & 2 rubygems

Version Path
softcover-1.2.15 lib/softcover/book_template/html/MathJax/extensions/TeX/mathchoice.js
softcover-1.2.15 lib/softcover/article_template/html/MathJax/extensions/TeX/mathchoice.js
softcover-1.2.14 lib/softcover/book_template/html/MathJax/extensions/TeX/mathchoice.js
softcover-1.2.14 lib/softcover/article_template/html/MathJax/extensions/TeX/mathchoice.js
softcover-1.2.13 lib/softcover/article_template/html/MathJax/extensions/TeX/mathchoice.js
softcover-1.2.13 lib/softcover/book_template/html/MathJax/extensions/TeX/mathchoice.js
softcover-1.2.12 lib/softcover/book_template/html/MathJax/extensions/TeX/mathchoice.js
softcover-1.2.12 lib/softcover/article_template/html/MathJax/extensions/TeX/mathchoice.js
softcover-1.2.11 lib/softcover/book_template/html/MathJax/extensions/TeX/mathchoice.js
softcover-1.2.11 lib/softcover/article_template/html/MathJax/extensions/TeX/mathchoice.js
softcover-1.2.10 lib/softcover/book_template/html/MathJax/extensions/TeX/mathchoice.js
softcover-1.2.10 lib/softcover/article_template/html/MathJax/extensions/TeX/mathchoice.js
softcover-1.2.9 lib/softcover/article_template/html/MathJax/extensions/TeX/mathchoice.js
softcover-1.2.9 lib/softcover/book_template/html/MathJax/extensions/TeX/mathchoice.js
softcover-1.2.8 lib/softcover/article_template/html/MathJax/extensions/TeX/mathchoice.js
softcover-1.2.8 lib/softcover/book_template/html/MathJax/extensions/TeX/mathchoice.js
softcover-1.2.7 lib/softcover/article_template/html/MathJax/extensions/TeX/mathchoice.js
softcover-1.2.7 lib/softcover/book_template/html/MathJax/extensions/TeX/mathchoice.js
softcover-1.2.6 lib/softcover/article_template/html/MathJax/extensions/TeX/mathchoice.js
softcover-1.2.6 lib/softcover/book_template/html/MathJax/extensions/TeX/mathchoice.js