How to upload my moduled tex files in arXiv?

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}


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.