From b808b74add46c5beee2cdb09d680f8f17fcc2e09 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Mon, 10 Sep 2012 18:12:15 +0530 Subject: [PATCH] Ebook-viewer: When displaying amthematics, reflow equations that dont fit on a single line --- resources/compiled_coffeescript.zip | Bin 57017 -> 57014 bytes .../jax/output/SVG/autoload/multiline.js | 2 +- src/calibre/ebooks/oeb/display/mathjax.coffee | 2 +- 3 files changed, 2 insertions(+), 2 deletions(-) diff --git a/resources/compiled_coffeescript.zip b/resources/compiled_coffeescript.zip index 0f6b8c3e7a522839ce146a7c6211d81b23512310..8e45c8fa6b584c61f35ac0446cc4f880a5b24df1 100644 GIT binary patch delta 147 zcmdnFmwDS>X6XQLW)=|!5b&I+B)cZ z#4tVPnXDKhI=SGk5ff7gkSRO);9V`Ijfr4UrhBGLe+t1&gCe%cA@{VHcrJsv4ww1F V0=!w-Kz6bL;eJL2hKF}RJOBuBEE50# delta 130 zcmdnCmwD%2W|;tQW)=|!5ODOlGMH(5nQ!ufdjf1v I?tm-=040_%)c^nh diff --git a/resources/viewer/mathjax/jax/output/SVG/autoload/multiline.js b/resources/viewer/mathjax/jax/output/SVG/autoload/multiline.js index 30bbe2c45c..4ee0ce4f7a 100644 --- a/resources/viewer/mathjax/jax/output/SVG/autoload/multiline.js +++ b/resources/viewer/mathjax/jax/output/SVG/autoload/multiline.js @@ -187,7 +187,7 @@ MathJax.Hub.Register.StartupHook("SVG Jax Ready",function () { // fill it with the proper elements, // and clean up the bbox // - line = BBOX(); + var line = BBOX(); state.first = broken; state.last = true; this.SVGmoveLine(start,end,line,state,values); line.Clean(); diff --git a/src/calibre/ebooks/oeb/display/mathjax.coffee b/src/calibre/ebooks/oeb/display/mathjax.coffee index cd130c85c8..14633b8fbc 100644 --- a/src/calibre/ebooks/oeb/display/mathjax.coffee +++ b/src/calibre/ebooks/oeb/display/mathjax.coffee @@ -39,7 +39,7 @@ class MathJax showMathMenu: false, extensions: ["tex2jax.js", "asciimath2jax.js", "mml2jax.js"], jax: ["input/TeX","input/MathML","input/AsciiMath","output/SVG"], - // SVG : { linebreaks : { automatic : true } }, + SVG : { linebreaks : { automatic : true } }, TeX: { extensions: ["AMSmath.js","AMSsymbols.js","noErrors.js","noUndefined.js"] }