activated the add-on in site control panel
but it doesn't work, a small waring appears a the bottom left of every page saying:
failed to load: /extensions/Mathjax/MathjMenu.js
failed to load: /extensions/Mathjax/MathZoom.js
In the developer tools console of the browser appears Failed to load resource: the server responded with a status of 404 (Not Found) http://plonesite.tld:8080/extensions/MathMenu.js
I would appreciate any help you can give me to make this work.
@gil Thank you very much for your help. It worked perfectly.
It's a pity that the add-on doesn't work properly. I'll fire an issue in the collective repo.
Slightly off topic: I need to add quite a bit of text with a lot of 'math'.
Unfortunately, it is written in Word.
Is there any smart way to 'convert' it 'to something useful' ?
This is for students for a certain school, so if it would work in a few of the main readers, that would be ok.
That said: the javascript needs to be part of the epub , would be nice to give it a try anyway, as the bitmaps are not working properry (baselines are not correct, so it needs too much manual tweaking).
Is there anyone that could help me with reduce the size of mathjax ?
My knowledge of
is zero
Is it possible to make just one javascript file (I only need (La)TEX in and SVG out.
I got quite a lot of this working, and will continue working on it for a while.
Getting the math out of Word:
Mathtype does a pretty decent job of getting thing converted to latex.
It crashes a lot on OS X, especially if you forget to set the 'language' setting on export.
After exporting the content from Word, I still have to fix a few things , like two backslashes that should have been one.
Showing the math in Plone:
This is pretty straightforward when using mathjax.
If converting equations to images, it is difficult to 'keep the baseline",
Exporting to PDF.
This works quite well, both with pandoc and wkhtmltopdf, but some CSS is not working ( page-break-before is not working, while page-break-inside works). (Works on OS X Firefox, print to PDF)
Showing in epub.
I managed to shrink the JS to about 1,5 Mb.
The ebooks shows correctly in Calibre, iBooks (OS X) , Supreader (Android), Icecream Ebook Reader (Windows).
(but not in 'most others' FBReader etc).
No you don't:
For PDF, at least phantomjs an wkhtml2pdf takes care of converting the math to vector.
Actually, for PDF conversion I have not found any LaTEX math that does not render well in PDF.
For epub, some reader (iBooks, Superreader ++) can display mathjax if you make and embed a smaller version of mathjax.