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.23k stars 327 forks source link

Treating \% as a comment and cutting off the sentence #100

Closed Mivg closed 2 months ago

Mivg commented 3 months ago

Hi, thanks for this very helpful repo!

I encountered a minor issue when using it. When using the explicit % symbol in the text (for example, In over 90\% of the population, this phenomenon was observed''), everything after the % is removed as a comment, leaving in the example above asIn over 90\''.

Probably when looking for % should ignore \% occurrences. Thanks

Mivg commented 2 months ago

Turns out arXiv also treat it as comments, so have to wrap with $$ anyway