Fix centering for forced linebreaks in SVG output when linebreaking isn't specified. Still need to work out how to make this work better ifor in-line math, and for parts of equations (like fraction numerators, etc.)

This commit is contained in:
Davide P. Cervone 2012-02-05 14:13:25 -05:00
parent 3c18798e50
commit 77c52073b1
2 changed files with 3 additions and 2 deletions

File diff suppressed because one or more lines are too long

View File

@ -82,7 +82,8 @@ MathJax.Hub.Register.StartupHook("SVG Jax Ready",function () {
//
svg = this.SVG();
if (SVG.linebreakWidth < SVG.BIGDIMEN) {svg.w = SVG.linebreakWidth}
else {svg.w = SVG.cwidth/SVG.em * 1000}
var state = {
n: 0, Y: 0,
scale: this.SVGgetScale(),