/* * /MathJax/jax/output/SVG/autoload/mmultiscripts.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("SVG Jax Ready",function(){var g=MathJax.OutputJax.SVG;MathJax.ElementJax.mml.mmultiscripts.Augment({toSVG:function(w,q){this.SVGgetStyles();var a=this.SVG();this.SVGhandleSpace(a);var b=this.SVGgetScale(),c=this.data[this.base]?this.SVGdataStretched(this.base,w,q):g.BBOX.G().Clean(),t=g.TeX.x_height*b,m=g.TeX.scriptspace*b*.75,d=this.SVGgetScripts(m),h=d[0],r=d[1],k=d[2],d=d[3],l=(this.data[1]||this).SVGgetScale(),p=g.TeX.sup_drop*l,f=c.h-p,e=c.d+g.TeX.sub_drop*l,u=0;c.ic&&(u=c.ic);!this.data[this.base]||"mi"!==this.data[this.base].type&&"mo"!==this.data[this.base].type||1!==this.data[this.base].data.join("").length||1!==c.scale||c.stretched||this.data[this.base].Get("largeop")||(f=e=0);var l=this.getValues("subscriptshift","superscriptshift"),n=this.SVGgetMu(a);l.subscriptshift=""===l.subscriptshift?0:g.length2em(l.subscriptshift,n);l.superscriptshift=""===l.superscriptshift?0:g.length2em(l.superscriptshift,n);n=0;k?n=k.w+u:d&&(n=d.w-u);a.Add(c,Math.max(0,n),0);if(r||d)if(h||k){var e=Math.max(e,g.TeX.sub2*b),b=g.TeX.rule_thickness*b,p=(h||k).h,v=(r||d).d;k&&(p=Math.max(p,k.h));d&&(v=Math.max(v,d.d));f-v-(p-e)<3*b&&(e=3*b-f+v+p,p=.8*t-(f-v),0
m;m+=2){for(;c