www

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README | LICENSE

commit 9da8bc6fdb601e370fc6b5e6acd119e82fb9da3e
parent 47163b5c709d86a74ebc988356d4585dbb0099f0
Author: Davide P. Cervone <dpvc@union.edu>
Date:   Thu,  8 Oct 2015 08:12:29 -0400

Have non-token elements get the correct scaling factor (using the proper mathsize) rather than setting it to 1.  This resolves issue #1281.

Diffstat:
Munpacked/jax/output/CommonHTML/jax.js | 6+++---
1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/unpacked/jax/output/CommonHTML/jax.js b/unpacked/jax/output/CommonHTML/jax.js @@ -1477,8 +1477,8 @@ CHTMLhandleScale: function (node) { var scale = 1, parent = this.parent, pscale = (parent ? parent.CHTML.scale : 1); - var values = this.getValues("scriptlevel","fontsize","mathsize"); - if (!this.isToken) values.mathsize = 1; + var values = this.getValues("scriptlevel","fontsize"); + values.mathsize = this.Get("mathsize",null,!this.isToken); if (values.scriptlevel !== 0) { if (values.scriptlevel > 2) values.scriptlevel = 2; scale = Math.pow(this.Get("scriptsizemultiplier"),values.scriptlevel); @@ -2373,7 +2373,7 @@ var nbox = this.CHTMLbboxFor(0), dbox = this.CHTMLbboxFor(1), BBOX = CHTML.BBOX.empty(this.CHTML), nscale = nbox.rscale, dscale = dbox.rscale; values.linethickness = Math.max(0,CHTML.thickness2em(values.linethickness||"0",BBOX.scale)); - var mt = CHTML.TEX.min_rule_thickness/CHTML.em/BBOX.scale, a = CHTML.TEX.axis_height; + var mt = CHTML.TEX.min_rule_thickness/CHTML.em, a = CHTML.TEX.axis_height; var t = values.linethickness, p,q, u,v; if (values.bevelled) { frac.className += " MJXc-bevelled";