google-research / arxiv-latex-cleaner

arXiv LaTeX Cleaner: Easily clean the LaTeX code of your paper to submit to arXiv

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Deletes referenced .tex source files

albertfgu opened this issue · comments

It seems the tool has a few ways of recognizing source files that are referenced, but it doesn't recognize all of them. In particular, the import package is a modern solution for including files whose syntax looks like \import{sections/}{section1-1.tex}: https://www.overleaf.com/learn/latex/Management_in_a_large_project#Using_the_import_package

Such files are deleted by this cleaner. It would be nice if the tool finds a way to recognize these files. If not, it seems that at least there should be an option to give a source file whitelist (similar to the image whitelist) of filepaths that will be cleaned and not deleted.

I'm also facing deletion of seemingly arbitrary files but cannot figure out a pattern as other files with exact same structure are included. I can send an example via arxiv link if useful.