I have written a paper with Latex (overleaf) and submitted it to a journal. I would also like to publish a preprint in arXiv. Unfortunately, arXiv does not seem to allow pdf uploads but just wants the tex files. The big problem when uploading my latex files is that the created pdf file from arXiv looks extremely bad. So apparently it is using another compiler than in overleaf. So my question is if there is a way to upload the pdf directly on arXiv or you have any clue how I can change the latex compiling in arXiv (I have to admit that I have no experience with something like this).
-
This question is similar to: Is there any advantage of putting source tex file on arXiv?. If you believe it’s different, please edit the question, make it clear how it’s different and/or how the answers on that question are not helpful for your problem.– AnyonCommented Jul 13 at 17:34
-
@Anyon The OP says: "The big problem when uploading my latex files is that the created pdf file from arXiv looks extremely bad." That issue isn't mentioned in the question that you linked to (nor in its answers). Apparently, arXiv produces PDF from LaTeX in a different way than Overleaf.– Andreas BlassCommented Jul 13 at 17:46
-
@AndreasBlass Right, but OP wants to get around it by uploading a PDF which isn't possible if the PDF is generated from a tex source.– AnyonCommented Jul 13 at 17:49
-
You can force pdflatex as outlined here: info.arxiv.org/help/submit_tex.html If that doesn't help it may be better to ask for help on the TeX StackExchange.– AnyonCommented Jul 13 at 17:50
-
4@AndreasBlass I'm pretty sure Overleaf defaults to pdfLaTeX, but also has support for XeLaTeX and LuaLaTeX. Which one OP is using is unclear, as is which packages are used and whether both platforms have the same versions...– AnyonCommented Jul 13 at 18:05
2 Answers
No, you cannot upload a PDF generated from latex to arXiv.
Overleaf does not directly compile latex; it uses pdflatex, xelatex, lualatex, or latex under the hood. You can check how Overleaf is compiling your paper in the options. You may need to modify your paper in some way to make it look good on aXiv.
There might also be errors in the compilation of your paper on Overleaf. In this case you will see a red number near the top of the screen and if you click on it it will show the errors. Overleaf will try to show you the paper in spite of the errors, but arXiv will fail if there are any errors.
I recommend figuring out more specifically what is causing your paper to "look bad" and then posting a question on tex.SE if necessary.
-
Actually, you can upload a PDF generated from latex. You just need to "launder" it first, e.g., run it through OCR software, that first scans every page as an image then OCRs. It won't look as good, but it's technically possible. Now, whether you should do this, vs the time it takes to fight latex and make the original compile in the arxiv compiler, is a different question. Commented Jul 14 at 13:28
-
-
3I don't think it's a typo. I would refer to overleaf as a LaTeX (online) editor. The compiling is still done by
pdflatex
,lualatex
, orxelatex
. Any way, I agree with David's answer that the best way to actually fix the LaTeX code (which in all likeliness contains errors that overleaf just chooses to ignore) and then upload it to arXiv.– ttnickCommented Jul 15 at 13:18
The 'compiler' is the same. What may be different are the versions of the style (extension .sty
) and class files (extension .cls
), in particular if these are not standard, that are provided on arXiv and overleaf.
To avoid this, just ship those files together with your source.
However, w/o more specific information about in which way your paper looks bad, we cannot help you here. Actually stackexchange TeX may be a better place to ask.