-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Mathjax does not load until the page is refreshed #5
Comments
I think using the option |
These guys have the same problem GitbookIO/plugin-mathjax#34 |
There is another plugin: https://github.com/GitbookIO/plugin-katex @quangounet, Let's assume that |
I've also looked into KaTeX but apparently it is still not as stable and well supported as Mathjax, in addition to the problem you mentioned. Let's give ourselves a few more days to see whether we can work around this issue in Mathjax (unless the switch is super-easy to try out). |
I found a (dirty) workaround: force Mathjax to load by adding the javascript command MathJax.Hub.Queue(["Typeset",MathJax.Hub]), see commit 3ee47e3 |
Does it mean that for every page that has any kind of math ( |
In any case, your workaround fixes this issue. |
Yes, for now we must include math.md. We can try and find a way to do cleaner includes. |
I've been looking around to see if this was cleaned up somewhere. Looks like it's still the case that I have to modify each page? That's rough, but thanks for the solution! |
That's right. The issue is still open: GitbookIO/plugin-mathjax#34 |
Mathjax formulae are not loaded on the first page visit. One needs to refresh the page for the formulae to load.
One possible way around is to force the formulae to be statically loaded in SVG (set forceSVG to true in book.json), but this stops the compiling process each time there's a LaTeX error -> not convenient.
The text was updated successfully, but these errors were encountered: