From 7dc9a727b9886ac197558d828a73b8aaa16c1456 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Sun, 19 Mar 2017 12:43:56 +0530 Subject: [PATCH] PDF Output: Fix a regression that broke PDF Output for documents containing mathematics. Fixes #1673983 [Private bug](https://bugs.launchpad.net/calibre/+bug/1673983) --- resources/compiled_coffeescript.zip | Bin 101797 -> 101923 bytes src/calibre/ebooks/oeb/display/mathjax.coffee | 4 +++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/resources/compiled_coffeescript.zip b/resources/compiled_coffeescript.zip index fefc756553fddc5447b6615e4aa434f9a3480fb2..40c276e6be041a6e5d04a94985dd86f103692eeb 100644 GIT binary patch delta 308 zcmZ2Fn{DwNwhcd43puA2d;JSh+Gr`nzyQLs4AU7q8AUhCuMuGp&Cg3MD#|ZXuvJJa z%}XxH%+J$EEt|ZtRM;&!Kd(4HCsi*eKV3uJEip4EHASH$Um+(yF-5^Qu_VJQu|lCZ zxhS)s#7aS3L0ciUOs^!dD7{3lxF}iEno9u;YA35~P-4{I?6$$|CLgLprgwERMl&Vt z13PB=pH4<2CVt)N23?HqECJ4p4ATXB8KtLB>tfVm+&cYW7o$G=!45`-^-R^%1$r6d zr{C^jbeta0&B!r5zn9T;x>Gl!*kt)NTslft3Q8%asRoIbMy82|DM^+VCTS@qW@#pg oX^CbQ#>t7PMrOta=Efwhcd43$ZoK@T}V*qq5|iQhi;%qgEJ%NbdhdG zEk^U{_T7y7?9LsG4C|Syr!VYb6q%fx$Tj_IFQe}CpdLoC?OS^o%@`-kui?^BvQkho zPqIi!G_^2EwJ^7|FiSKxvotU@uuL&GHZia;Ofj@fH8M_3OEOQJ9@xVuKK)8JqvP~S VXGVeP6T2CmAr4XPVbo=;1psNnOa}k} diff --git a/src/calibre/ebooks/oeb/display/mathjax.coffee b/src/calibre/ebooks/oeb/display/mathjax.coffee index 78cb80aee4..d7cdf2ea00 100644 --- a/src/calibre/ebooks/oeb/display/mathjax.coffee +++ b/src/calibre/ebooks/oeb/display/mathjax.coffee @@ -32,7 +32,9 @@ class MathJax scale = if is_windows then 160 else 100 script.type = 'text/javascript' - script.src = this.base + 'MathJax.js' + script.onerror = (ev) -> + console.log('Failed to load MathJax script: ' + ev.targt.src) + script.src = this.base + '/MathJax.js' script.text = user_config + (''' MathJax.Hub.signal.Interest(function (message) {if (String(message).match(/error/i)) {console.log(message)}}); MathJax.Hub.Config({