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

Removing "comments" in code blocks #51

Open samvelyan opened 2 years ago

samvelyan commented 2 years ago

Hi, thank you for your wonderful work!

When running arxiv-latex-cleaner on projects that involve minted or lstlisting code blocks, the % symbol within a code block causes the cleaner to delete all the characters from the position of % onward .

It would be great if the comment cleaning is turned off on such code blocks, since % here is not intended as a LaTeX comment.