I'm tired of manually creating the tarfiles I need for uploading articles to the arxiv.
The process involves creating a tarfile of all the (non-standard) source files. So naturally it needs the .tex file(s), the .pdf files, the .bbl file and perhaps an .idx if you have an index (perhaps something else?). I usually keep my figures in a subdirectory under the one where the .tex file lives, so the tar file would have to keep that directory structure.
What I usually do is compile with \listfiles
then manually grab the list of files from the output, stick them in <filelist>
together with the name of the main .tex file and then run tar c -T<filelist> -f<output.tar>
. Not a huge operation, but it would be nice to automate since I usually forget the required switches by the time I need to upload another article to the arxiv....
I looked online and found unlog.sh on the arxiv itself, but it specifically states that it is not designed for the output of pdflatex. When I tried to modify it for the output of the pdflatex, indeed I didn't manage, but this might be due to my lacking perl skills, and not for any good reason.
Does anyone know of a nice script for creating the required tarfiles for the arxiv, or is interested in modifying unlog.sh so that it works properly on pdflatex log files?
pdf
to the script in the obvious place)latex
aspdflatex
: it slurps in too much and misses the graphics figures.