Skip to content

Conversation

@SeanESCA
Copy link
Contributor

As per my comment in #271, this PR removes the cancel package from the default environment. Additionally, it removes checking for the cancel package in the TeX writer.

@jgm jgm merged commit 970e52c into jgm:master Aug 28, 2025
7 checks passed
@jgm
Copy link
Owner

jgm commented Aug 28, 2025

Btw, I've altered pandoc's LaTeX writer so that it sets a cancel variable if any of the cancel macros are used in math; that triggers conditional inclusion of \usepackage{cancel}.

@SeanESCA SeanESCA deleted the remove-cancel-package branch August 28, 2025 11:26
@SeanESCA
Copy link
Contributor Author

SeanESCA commented Aug 28, 2025

Btw, I've altered pandoc's LaTeX writer so that it sets a cancel variable if any of the cancel macros are used in math; that triggers conditional inclusion of \usepackage{cancel}.

Thanks @jgm! Could we do something similar for the siunitx package? It looks like you still have to add it yourself for TeX and PDF although texmath supports it.

@jgm
Copy link
Owner

jgm commented Aug 28, 2025

In theory yes, but there are so many siunitx commands that it would be rather hard to test for them.
Prefer to keep things simple.

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

Successfully merging this pull request may close these issues.

2 participants