LaTeX newcommands across jupyter notebook cells? #6177
Replies: 4 comments
-
If I recall correctly, this might be an issue with using KaTeX (much faster) vs MathJaX (supports definitions across cells). Have you tried disabling KaTeX to see if that fixes things? Still would be best if both support this. Update: I did some playing and it seems that both KaTeX and MathJaX properly support definitions across cells however:
This was rendering this page with Chrome 106.0.5249.103 (Official Build) (arm64) with KaTeX rendering turned off in my account settings, but is similar with Safari.
|
Beta Was this translation helpful? Give feedback.
-
Hello mforbes, thank you very much for pointing me in the right direction. |
Beta Was this translation helpful? Give feedback.
-
I will let someone from CoCalc address this, but I think many of these features work in the CoCalc interface... but there might still be some outstanding bugs. The classic server always works, but then you lose collaboration. |
Beta Was this translation helpful? Give feedback.
-
My understanding is the root cause of your issue was \DeclareMathOperator not existing in katex. I've implemented it, so it's now available and live. |
Beta Was this translation helpful? Give feedback.
-
Hello, I'm not sure if this question is answered at someplace else, but I couldn't find a proper solution.
Is there a way to define multiple LaTeX \newcommands and use them across multiple jupyter notebook cells (one document)?
Maybe a config file or something, which can be included or edited (or maybe LaTeX \include, \input command somehow) ?
In jupyter notebook and juypter lab, defining a \newcommand and using it across cells this is possible, although it will leave you with problems in the converting to LaTeX-pdf process.
Beta Was this translation helpful? Give feedback.
All reactions