Updated on Nov 13, 2020

Overleaf (previously ShareLaTeX) is a convenient tool to collaboratively write papers in LaTeX. Once we have the content of a manuscript ready, it’s time for submission. Here is a step by step guide to preparing a single zip file for uploading on arXiv.

Assumptions:

  1. The main file is named ms.tex.
  2. Used packages:
    • graphicx
    • hyperref
    • natbib
    • subfiles
  3. My setup on Overleaf (ShareLaTeX):
    • Main document class: \documentclass[11pt]{article}
    • Bibliography style: \bibliographystyle{unsrtnat}
    • Path to graphics: \graphicspath{ {images/} }
    • References from references.bib file added using natbib: \bibliography{references}
    • The first line of each subfile is: \documentclass[ms.tex]{subfiles}
     \documentclass[ms.tex]{subfiles}
        
     \begin{document}
     ...
     \end{document}
    

Steps:

  1. Download source files and unzip them.
    • Menu
    • Download Source
  2. Download the bbl file and rename it to ms.bbl:
    • Logs and output files
    • Other logs & files
    • bbl file

    Logs and output files

    bbl file

  3. In the main file (ms.tex), below the documentclass declaration line add \pdfoutput=1.

     \documentclass[11pt]{article}
     \pdfoutput=1
     ...
    
  4. Remove \documentclass[ms.tex]{subfiles} statement in all subfiles.
  5. Compress (zip) all files, but not their parent folder, and upload the zip to arXiv.

Note: It’s possible that this guide does not handle some (edge) cases.