Merge branch 'issue763' into develop. Issue #763.

This commit is contained in:
Davide P. Cervone 2014-04-21 19:24:19 -04:00
commit 6d6cb37923
2 changed files with 2 additions and 2 deletions

View File

@ -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));

View File

@ -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;