15

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?

2
  • 7
    are the first two characters of the file %! ? Jan 12, 2022 at 8:15
  • Yes, the first line of the TeX file is '%! TeX program = xelatex'. This line is written on the sample file provided by the journal.
    – Richard
    Jan 12, 2022 at 8:30

1 Answer 1

33

%! 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.

You must log in to answer this question.

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