Hi Mattia, and sorry for the late response, On Thu, Mar 17, 2016 at 03:34:17PM +0000, Mattia Rizzolo wrote: > So, I have this new upstream version of sigil here that embeds this > huge minified lib. > > https://anonscm.debian.org/cgit/collab-maint/sigil.git/tree/src/Resource_Files/polyfills/MathJax.js?h=upstream/0.9.4%2bdfsg > > [...] > > For more background, see > https://github.com/mathjax/MathJax/wiki/Single-file-built > > I wonder, can you provide a similar built file? > /usr/share/javascript/mathjax/MathJax.js does not seem to have all those > feature enable (information inferred by only grepping random words > between the 2 files). > > I'm really not a JS guy, and I have no clue what this things are. > Alternately, can you please suggest me how I could get rid of those > embedded libs?
I think your problem should be solved by replacing the bundled MathJax.js with
a link to /usr/share/javascript/mathjax/MathJax.js and adding something like
this to the HTML files (not tested):
MathJax.Hub.Config({
config: ["MML_SVG.js"],
extensions: ["MatchWebFonts.js"],
MathML: { extensions: ["mml3.js"] },
SVG: { blacker: 1 },
});
This is first time I hear about the single-file option, and according to the
linked upstream page, it is experimental and needs some hacks to make SVG, etc
working. Also, sigil's configuration looks a bit specific, so if I add a
generic single-file build, it will most likely not suit sigils' needs.
Any ideas what else I can do are appreciated :)
--
Dmitry Shachnev
signature.asc
Description: PGP signature

