Skip to content
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

Closed
pbreheny opened this issue Sep 12, 2018 · 5 comments
Closed

Possible to turn off siunitx macros? #4888

pbreheny opened this issue Sep 12, 2018 · 5 comments

Comments

@pbreheny
Copy link

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.

@mb21
Copy link
Collaborator

mb21 commented Sep 12, 2018

Thanks for reporting. This seems to be fixed on current master. You could try a nightly, or wait for the next release.

@mb21 mb21 closed this as completed Sep 12, 2018
@pbreheny
Copy link
Author

Ah, perfect -- I didn't know you could get nightly builds from pandoc-extras/pandoc-nightly, but that fixes my problem. Thank you so much!

@jgm
Copy link
Owner

jgm commented Sep 12, 2018 via email

@pbreheny
Copy link
Author

Hmm...that does not seem to work. With the 2.3.2.2 release, the markdown code:

\providecommand{\as}[1]{\begin{align*}#1\end{align*}}

\as{2+2}

is rendered to the latex code

\providecommand{\as}[1]{\begin{align*}#1\end{align*}}

\textbackslash{}as\{2+2\}

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.

@jgm
Copy link
Owner

jgm commented Sep 12, 2018 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants