-
-
Notifications
You must be signed in to change notification settings - Fork 3.4k
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
Possible to turn off siunitx macros? #4888
Comments
Thanks for reporting. This seems to be fixed on current master. You could try a nightly, or wait for the next release. |
Ah, perfect -- I didn't know you could get nightly builds from |
As noted, it's fixed in master.
But if your macro definition is in the tex parsed by
pandoc, it should be applied. (If you're converting
from markdown, try putting the macro definition in
your document.)
Patrick Breheny <notifications@github.com> writes:
… I have a longstanding habit of using a user-defined latex macro `\as{}`. This always used to parse correctly in Pandoc, but now fails, apparently due to a conflict with `siunitx`. The markdown code:
```
\as{2+2}
```
is parsed to the invalid latex code:
```
\as\{2+2\}
```
I have no desire to use `siunitx`, nor had I ever heard of it until trying to diagnose this problem. Is there a way to turn it off and prevent it from taking over my macros?
I am using Pandoc 2.2.3.2.
--
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
#4888
|
Hmm...that does not seem to work. With the 2.3.2.2 release, the markdown code:
is rendered to the latex code
Perhaps I'm misunderstanding what you're suggesting? Anyway, the nightly build works fine for me, just thought I would provide feedback on your follow-up suggestion. |
Probably another bug in 2.3.2.2 that has since been
fixed. Current master gives:
\providecommand{\as}[1]{\begin{align*}#1\end{align*}}
\begin{align*}2+2\end{align*}
|
I have a longstanding habit of using a user-defined latex macro
\as{}
. This always used to parse correctly in Pandoc, but now fails, apparently due to a conflict withsiunitx
. The markdown code:is parsed to the invalid latex code:
I have no desire to use
siunitx
, nor had I ever heard of it until trying to diagnose this problem. Is there a way to turn it off and prevent it from taking over my macros?I am using Pandoc 2.2.3.2.
The text was updated successfully, but these errors were encountered: