Comment by mseri

4 months ago

Google has a great aid to reduce the attack surface: https://github.com/google-research/arxiv-latex-cleaner

I use this before submission and recommend others do too. If ai was in charge of arXiv Id have it integrated as an optional part of the submission process.

I do this by hand. In the whole process, cleaning up the TeX before submission is a small step. And I like to keep some comments, like explaining how some Tikz figures are made. Might help someone some day.

Most people I know simply use `latexpand` which "flattens" all files into one tex-file and by default removes all comments.