Sha256: 30d14efc8b4ff52a6c2023bc57132600a9aa2930a8ae086ac1bd55ce12cfc519

Contents?: true

Size: 1.2 KB

Versions: 166

Compression:

Stored size: 1.2 KB

Contents

/*
 *  /MathJax/extensions/TeX/enclose.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/enclose"]={version:"2.2",ALLOWED:{arrow:1,color:1,mathcolor:1,background:1,mathbackground:1,padding:1,thickness:1}};MathJax.Hub.Register.StartupHook("TeX Jax Ready",function(){var c=MathJax.InputJax.TeX,a=MathJax.ElementJax.mml,b=MathJax.Extension["TeX/enclose"].ALLOWED;c.Definitions.Add({macros:{enclose:"Enclose"}},null,true);c.Parse.Augment({Enclose:function(g){var k=this.GetArgument(g),e=this.GetBrackets(g),j=this.ParseArg(g);var l={notation:k.replace(/,/g," ")};if(e){e=e.replace(/ /g,"").split(/,/);for(var h=0,d=e.length;h<d;h++){var f=e[h].split(/[:=]/);if(b[f[0]]){f[1]=f[1].replace(/^"(.*)"$/,"$1");if(f[1]==="true"){f[1]=true}if(f[1]==="false"){f[1]=false}l[f[0]]=f[1]}}}this.Push(a.menclose(j).With(l))}});MathJax.Hub.Startup.signal.Post("TeX enclose Ready")});MathJax.Ajax.loadComplete("[MathJax]/extensions/TeX/enclose.js");

Version data entries

166 entries across 123 versions & 2 rubygems

Version Path
softcover-1.0.beta9 lib/softcover/template/html/MathJax/extensions/TeX/enclose.js
softcover-1.0.beta8 lib/softcover/template/html/MathJax/extensions/TeX/enclose.js
softcover-1.0.beta7 lib/softcover/template/html/MathJax/extensions/TeX/enclose.js
softcover-1.0.beta6 lib/softcover/template/html/MathJax/extensions/TeX/enclose.js
softcover-1.0.beta5 lib/softcover/template/html/MathJax/extensions/TeX/enclose.js
softcover-1.0.beta4 lib/softcover/template/html/MathJax/extensions/TeX/enclose.js
softcover-1.0.beta3 lib/softcover/template/html/MathJax/extensions/TeX/enclose.js
softcover-nonstop-1.0.beta2 lib/softcover/template/html/MathJax/extensions/TeX/enclose.js
softcover-1.0.beta2 lib/softcover/template/html/MathJax/extensions/TeX/enclose.js
softcover-1.0.beta1 lib/softcover/template/html/MathJax/extensions/TeX/enclose.js
softcover-0.9.23 lib/softcover/template/html/MathJax/extensions/TeX/enclose.js
softcover-0.9.22 lib/softcover/template/html/MathJax/extensions/TeX/enclose.js
softcover-0.9.21 lib/softcover/template/html/MathJax/extensions/TeX/enclose.js
softcover-0.9.20 lib/softcover/template/html/MathJax/extensions/TeX/enclose.js
softcover-0.9.19 lib/softcover/template/html/MathJax/extensions/TeX/enclose.js
softcover-0.9.18 lib/softcover/template/html/MathJax/extensions/TeX/enclose.js
softcover-0.9.17 lib/softcover/template/html/MathJax/extensions/TeX/enclose.js
softcover-0.9.16 lib/softcover/template/html/MathJax/extensions/TeX/enclose.js
softcover-0.9.15 lib/softcover/template/html/MathJax/extensions/TeX/enclose.js
softcover-0.9.13 lib/softcover/template/html/MathJax/extensions/TeX/enclose.js