-
Notifications
You must be signed in to change notification settings - Fork 0
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
Maths rendering #4
Comments
See also adding tex macros to Sphinx build at https://jupyterbook.org/en/stable/advanced/sphinx.html#defining-tex-macros |
For notes on \label support: executablebooks/MyST-Parser#202 |
Some specific issues (see
|
Rendering OK in Ice Dragon however. Sigh. |
I noticed the Maths rendering issue in the TOC, which also occurs in my text-books [currently not yet released]. |
I (eventually) managed to fix the TOC bug, since I realised it only affected pages which had no maths on - in this case it seems like the Mathjax script wasn't automatically injected. (This was for builds from the There's likely an elegant way to force this via Sphinx config, but my quick and dirty fix was just to add a cell directly to my Markdown documents duplicating the script tags in the working HTML pages - my patch is in https://github.com/phockett/Quantum-Metrology-with-Photoelectrons-Vol3/blob/main/scripts/mathjax_patch.txt (and my in my main build script I just run Hope your book is going well @jangenoe :) |
I will also use your patch... Thanks |
Some inconsistencies in default builds...
\bm
not rendering in Firefox, Github builds? (e.g. https://phockett.github.io/Quantum-Metrology-with-Photoelectrons-Vol3/part1/theory_101122.html)\boldsymbol
not rendering in IceDragon, local builds (either default MathJax, or v3).\boldsymbol
not working in default case. UPDATE: NOW NOT WORKING in either case after more test builds... weird...\bm
).For forcing version in
_config.py
, see https://jupyterbook.org/en/stable/content/math.html#math-and-equationsTODO: clean test page, currently testing in main Theory notebook, might be other issues...?
UPDATE: may actually be issue with source and/or Pandoc conversion, currently failing to case with$\boldsymbol{\mathbf{E}}$ , but $\mathbf{E}$ or $\bm{E}$ may be equivalent...?
UPDATE2: things seem OK in maths test page for
\boldsymbol
(even nested), but not for\bm
. May have issue related to jupyter-book/jupyter-book#1528 with Plotly? (See also https://jupyterbook.org/en/stable/interactive/interactive.html#plotly) Maybe also issue with extensions or macros, https://docs.mathjax.org/en/latest/input/tex/extensions/boldsymbol.html?Ignore for now and use standard methods - but should fix!
UPDATE3 21/11/22:
\boldsymbol
currently working on some pages, but not all, so likely issue with some page builds.\bm
no Mathjax support, but added work-around to_config.py
as per LaTeX input: add support for bm package mathjax/MathJax#1219, implemented in 3e0c9a5.The text was updated successfully, but these errors were encountered: