My first ever paper was accepted and I want to upload it to arXiv. However it seems a bit difficult, since it doesn't allow you to upload the .pdf right away..I uploaded my main .tex file but when on the Preview tab it will say "Processing your submission may take several minutes." and will never end.

Check the file tree:

./aem.tex    <-- main file that points to 'tex/exp.tex', etc.

How should I do it? :/

I compile with PDFLatex.

  • Which is the main file? The arXiv probably couldn't figure it out. Take a look at arxiv.org/help/submit_tex#autoignore and add the auto-ignore like to all but the main file. Commented Mar 29, 2016 at 13:31
  • 1
    So I should upload every single file that my tree has, I guess @LoopSpace, right? Should I insert the %auto-ignore in the first line of every tex file (but the main one)?
    – gsamaras
    Commented Mar 29, 2016 at 13:34
  • Also, I notice that you have the .bib file in there. The arXiv says that you should upload the .bbl file instead. See arxiv.org/help/submit_tex#bibtex Commented Mar 29, 2016 at 13:34
  • 4
    @innisfree you can do it by uploading a ZIP file with the directory structure.
    – David Z
    Commented Mar 29, 2016 at 14:00
  • 1
    @gsamaras is your document meant to be compiled with PDFlatex?
    – David Z
    Commented Mar 29, 2016 at 14:01

2 Answers 2


It should work if you:

  1. add %auto-ignore to the first line of every text file but the main file
  2. compress your file tree
  1. prevents arXiv's system from compiling your non-main files independently

  2. ensures that your folder structure will be respected and your images inside the fig folder will be accessible.

Also, please check that you do not have an \input loop such as this:

file master: \input{a} file A: \input{b} file B: \input{a}

  • 1
    Could you explain why this works. As it is currently written it is more of a comment than an answer.
    – TeXnician
    Commented Jan 8, 2018 at 11:55
  • I'll add a full answer. Commented Jan 8, 2018 at 18:31
  • @rafaelvalle could you please explain what is meant by your second point: "compress your file tree"? Do we zip the entire folder of the project?
    – AruniRC
    Commented Apr 15, 2019 at 19:09
  • yes, try zipping the folder. Commented Apr 16, 2019 at 18:42

Adding to @gsamaras's answer. To make one single latex file from multiple files, you can use flatex: https://github.com/johnjosephhorton/flatex . Follow the instruction and installl and then flatex main.tex single_file.tex will generate the single source file.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .