Merge branch 'issue763' into develop. Issue #763.
This commit is contained in:
commit
6d6cb37923
|
@ -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));
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue
Block a user