I find myself frequently having to unzip latex directories before using arxiv-latex-cleaner: Writing my code on overleaf, downloading it as a zip file is the recommended way to download the zip sources for an arXiv upload.
This PR adds a functionality, allowing arxiv_latex_cleaner to also accept the path to a zip file.
Implementation details:
The zip is extracted to a temporary folder, which is created using the tempfile python standard library. The temporary folder is removed upon exiting.
The output dir is the same as if the folder was not zipped. E.g. some/path/to/tex.zip as input results in some/path/to/tex_arXiv/ as output.
I find myself frequently having to unzip latex directories before using
arxiv-latex-cleaner
: Writing my code on overleaf, downloading it as a zip file is the recommended way to download the zip sources for an arXiv upload.This PR adds a functionality, allowing
arxiv_latex_cleaner
to also accept the path to a zip file.Implementation details:
tempfile
python standard library. The temporary folder is removed upon exiting.some/path/to/tex.zip
as input results insome/path/to/tex_arXiv/
as output.