Putting a draft of a paper on arXiv.org should be easy, no? Unfortunately, it can be quite tricky, mostly because you have to upload the source for your document. Technically I believe arXiv now lets you upload a PDF file, but there are good reasons not to do this. So here is a list of steps to follow to upload your paper source to arXiv:
cp -r your_paper_dir tmp
; this will create a copy in a folder called tmp
. For each of the following steps, work in the tmp
version of your source repository. We need to do this because our nice clean repo organization—while useful for working and collaborating—does not play well with arXiv, and we're about to delete/move a bunch of things around. \appendix
command after the main paper content in your main.tex
file, followed by \input{___}
for the .tex
source files for your appendices, any \section
headings necessary, etc. Make sure the appendix comes after your references.tmp/
and remove it. If your paper is published, make sure it has the same style as the published paper with the correct journal, volume, etc information in it (so that readers will know it has been published).tmp/figures/
, you need to move them all to the root folder tmp/
, and then delete the empty figures/
folder..tex
files so that they know that the figures are now all in the root directory tmp/
.git/
folder); you can list these using ls -al
on the command line..tex
, .sty
, and .cls
files. Remember: everything you upload will be public. So if you have unused/old notes in a separate .tex
file, those will be included unless you delete the files..pdf
of your paper if it's there, and any LaTeX-generated files (.aux
, .log
, .out
, .blg
, etc)% this is a latex comment
) from all .tex
files. Remember: everything you upload will be public!add the following line to the end of your main.tex
file (after \end{document}
) to ensure that arXiv runs pdflatex
at least 4 times (needed for autonum
and cleveref
references to resolve properly).
\typeout{get arXiv to do 4 passes: Label(s) may have changed. Rerun}
compile your document in the tmp/
folder, and make sure everything looks OK
.bbl
file that was just generated; delete everything else that was just generated (e.g., .aux
, .log
, .pdf
, others) .bib
file; arXiv uses the precompiled bibliography in the .bbl
file that you providetmp/
folder, run tar -cvvf ax.tar *
. This will produce a file named ax.tar
, which you will uploadpdflatex
to make sure there are no issues. This part is sometimes a bit tricky. Ask your advisor for help. Also carefully check over the compiled PDF that arXiv generates.