wei2912 / obsidian-latex

MIT License
146 stars 21 forks source link

Mathtools commands not working #14

Closed mycarrhiza closed 7 months ago

mycarrhiza commented 3 years ago

With Mathjax now at version 3.2, it would be nice if we could include mathtools commands in our macro definitions (with mathtools, i would be able to use nearly all of my usual LaTeX macros in Obsidian). However, it appears not to be working. For instance, including \DeclarePairedDelimiters{\p}{(}{)} in the preamble.sty file does not allow \p to be used in Obsidian. But one can check that writing \DeclarePairedDelimiters{\p}{(}{)} \p{a} straight into Obsidian does compile as intended.

I'm using Obsidian v0.12.15. Thanks!

xldenis commented 3 years ago

Hmm, I'll take a look. thanks for the report

wei2912 commented 1 year ago

@austinsid Are you still able to replicate this issue? On Obsidian v1.1.9 this seems to work fine for me:

image