TeX File Issues in arXiv – Why Is TeX File Treated as PostScript in arXiv Submission

arxivoverleaf

While submitting my paper (produced using Overleaf) to arXiv, I found that the main TeX file (named ms.tex) is treated as a PostScript file.

Then, after processing the files, I get the following line in the AutoTeX log:

[verbose]: <ms.tex> is of type 'Postscript'.

Then, after a few lines, I get the error:

[verbose]:  No tex files present, going to hope we can process as a postscript or dvi only package.

Then, in the preview of the paper, I could only see the figures and no text of the paper. What is wrong with the TeX document?

Best Answer

%! is the magic marker used to identify PostScript used by the Unix/Linux file program and other tools.

Some editors (but not Overleaf) use a % !TeX syntax comment to control the processing done on the file. They all (now) allow a space between the % and the ! to avoid misinterpretation as PostScript.