-
Hi I am able to define latex math macros in each notebook separately by writing things like
But I don't want to repeat this in each file. I would like to import an existing .tex file with macro definitions. PS. I've tried to define some common macros to my
and then put this in my .ipynb file:
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 6 replies
-
Thanks @murphyk. This has recently been updated in the docs but it is currently only reflected in the https://jupyterbook.org/en/latest/advanced/sphinx.html (tag: latest bottom right)
sphinx:
config:
mathjax_config:
tex:
macros:
"N": "\\mathbb{N}"
"floor": ["\\lfloor#1\\rfloor", 1] Would you mind giving that a try to see if that fixes your issue? P.S. |
Beta Was this translation helpful? Give feedback.
Thanks @murphyk.
This has recently been updated in the docs but it is currently only reflected in the
latest
version and not reflected onstable
yet.https://jupyterbook.org/en/latest/advanced/sphinx.html (tag: latest bottom right)
mathjax v3
has updated some internal tag definitions so theTeX
andMacros
should all be lower case in the_config.yml
Would you mind giving that a try to see if that fixes your issue?
P.S.
Machine Learning: A Probabilistic Perspective
is a core member of mymachine learning
book library -- a beautiful book ❤️