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. – Loop Space Mar 29 '16 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 Mar 29 '16 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 – Loop Space Mar 29 '16 at 13:34
  • 4
    @innisfree you can do it by uploading a ZIP file with the directory structure. – David Z Mar 29 '16 at 14:00
  • 1
    @gsamaras is your document meant to be compiled with PDFlatex? – David Z Mar 29 '16 at 14:01

In the end I just created one .tex file, fastest solution.


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 With

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 Jan 8 '18 at 11:55
  • I'll add a full answer. – rafaelvalle Jan 8 '18 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 Apr 15 at 19:09
  • yes, try zipping the folder. – rafaelvalle Apr 16 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.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.