-
First of all, thank you for making my teacher's life easier! I use Marp a lot for math notations, and I often use things like:
It works perfectly, but I need to redefine all my commands in each KaTeX environment, they are not "kept" for the rest of the document. Is there a way to define my |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 3 replies
-
Currently each KaTeX renderings in Marp Markdown have individual contexts so Workaround for Marp CLI
Our core engine can customize KaTeX rendering option, and Marp CLI can modify it by using the configuration file. Try using this configuration if you are using Marp CLI:
|
Beta Was this translation helpful? Give feedback.
-
[UPDATED]Hey @fdegrave, I've updated Marp's math handling in marp-team/marp-core#212, to persist KaTeX macros, that have defined as global, between math typesetting in a Markdown. It has shipped as Marp Core v1.4.1, and that has bundled into the latest update of Marp tools, CLI v0.23.1 and VS Code extension v0.17.1! KaTeX has supported following commands to define new command as globally:
As you can see from this quote, please notice that |
Beta Was this translation helpful? Give feedback.
[UPDATED]
Hey @fdegrave, I've updated Marp's math handling in marp-team/marp-core#212, to persist KaTeX macros, that have defined as global, between math typesetting in a Markdown. It has shipped as Marp Core v1.4.1, and that has bundled into the latest update of Marp tools, CLI v0.23.1 and VS Code extension v0.17.1!
KaTeX has supported following commands to define new command as globally:
As you can see from this quote, please notice that
\newcommand
you're using cannot persist the command.