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

Do not remove else block of `\iffalse .. \else .. \fi` control sequence #98

Closed michael-markl closed 3 weeks ago

michael-markl commented 3 weeks ago

Currently, the \else block of a structure like \iffalse abc\else def\fi is removed while they should not be removed. Instead, in this example, the expected output would consist of the tokens def .

Similarly, the else block of a \iftrue structure like \iftrue abc\else def\fi should be removed. Here, the expected output would be abc.