google-research / arxiv-latex-cleaner

arXiv LaTeX Cleaner: Easily clean the LaTeX code of your paper to submit to arXiv
Apache License 2.0
5.04k stars 318 forks source link

Support \else and \iftrue #99

Closed michael-markl closed 3 weeks ago

michael-markl commented 3 weeks ago

Closes #98

google-cla[bot] commented 3 weeks ago

Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

View this failed invocation of the CLA check for more information.

For the most up to date status, view the checks section at the bottom of the pull request.

michael-markl commented 3 weeks ago

In f0ac9cc9c9bd5093de8db1e5cab8f5f65761e5e6 I added support for built-in (or well-known from packages), non-conditional commands that start with \if (e.g. \iff, \ifthenelse, commands from etoolbox, etc.). They currently mess up the level/tree computation. Let me know, if I should add this to this PR or open another one once this gets merged.

jponttuset commented 3 weeks ago

Thanks @michael-markl !