commit c548a7f0a6de6fdf68ee6231d4eb871885236c2a
parent 1e8ae72201b3a92d0b7da026316b60f370722468
Author: Davide P. Cervone <dpvc@union.edu>
Date: Mon, 21 Apr 2014 05:59:18 -0400
Fix incorrect use of TeX_factor for relative sizes.
Diffstat:
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/unpacked/jax/output/HTML-CSS/autoload/mglyph.js b/unpacked/jax/output/HTML-CSS/autoload/mglyph.js
@@ -68,7 +68,7 @@ MathJax.Hub.Register.StartupHook("HTML-CSS Jax Ready",function () {
this.Append(err); err.toHTML(span); this.data.pop();
span.bbox = err.HTMLspanElement().bbox;
} else {
- var mu = this.HTMLgetMu(span);
+ var mu = this.HTMLgetMu(span), size;
img = HTMLCSS.addElement(span,"img",{isMathJax:true, src:values.src, alt:values.alt, title:values.alt});
if (values.width) {
img.style.width = HTMLCSS.Em(HTMLCSS.length2em(values.width,mu,this.img.img.width/HTMLCSS.em));
diff --git a/unpacked/jax/output/HTML-CSS/jax.js b/unpacked/jax/output/HTML-CSS/jax.js
@@ -972,7 +972,7 @@
if (unit === "cm") {return m * this.pxPerInch * emFactor / 2.54} // 2.54 cm to an inch
if (unit === "mm") {return m * this.pxPerInch * emFactor / 25.4} // 10 mm to a cm
if (unit === "mu") {return m / 18 * factor * mu} // 18mu to an em for the scriptlevel
- return m*factor*size; // relative to given size (or 1em as default)
+ return m*size; // relative to given size (or 1em as default)
},
thickness2em: function (length,mu) {
var thick = HTMLCSS.TeX.rule_thickness;