如何上传论文到 arXiv

目录
  1. 步骤
  2. 总结
  3. Tips
  4. 参考

上传你的论文到 arXiv,看似麻烦,实则简单。关键只有一个文件:BibTeX 生成的 .bbl。

步骤

新建文件夹,将 mwe.tex 和 mwe.bib 放进去。先准备参考文献数据库 mwe.bib,里面放了两条书籍条目:

@Book{Goossens,
  author    = {Goossens, Michel and Mittelbach, Frank and 
               Samarin, Alexander},
  title     = {The LaTeX Companion},
  edition   = {1},
  publisher = {Addison-Wesley},
  location  = {Reading, Mass.},
  year      = {1994},
}
@Book{adams,
  title     = {The Restaurant at the End of the Universe},
  author    = {Douglas Adams},
  series    = {The Hitchhiker's Guide to the Galaxy},
  publisher = {Pan Macmillan},
  year      = {1980},
}

再写主文件 mwe.tex,用 \cite 引用上面两条,并通过 \bibliography 指向 mwe.bib:

\documentclass[10pt,a4paper]{article}

\usepackage{hyperref} % for better urls


\begin{document}

This is text with \cite{Goossens} and \cite{adams}.

\nocite{*} % to test all bib entrys
\bibliographystyle{unsrt}
\bibliography{mwe} % file mwe.bib

\end{document}

首先运行 pdflatex mwe.tex,会生成一系列新文件,例如 mwe.aux、mwe.log 和 mwe.pdf。

然后运行 bibtex mwe。BibTeX 会编译生成新文件:mwe.bbl 和 mwe.blg。mwe.blg 是 BibTeX 运行产生的日志文件,mwe.bbl 是提交需要的文件。mwe.bbl 的内容就是排好版的参考文献列表:

\begin{thebibliography}{1}

\bibitem{Goossens}
Michel Goossens, Frank Mittelbach, and Alexander Samarin.
\newblock {\em The LaTeX Companion}.
\newblock Addison-Wesley, 1 edition, 1994.

\bibitem{adams}
Douglas Adams.
\newblock {\em The Restaurant at the End of the Universe}.
\newblock The Hitchhiker's Guide to the Galaxy. Pan Macmillan, 1980.

\end{thebibliography}

再运行两次 pdflatex mwe.tex:第一次把 mwe.bbl 排进文末,第二次才能把正文里的 [?] 换成正确的编号和页码。每一步读什么、产出什么,可以在下面逐步看:

从 .tex 到 .bbl
  • mwe.tex正文
  • mwe.bib文献库
  • mwe.aux引用记录
  • mwe.bbl排好的参考文献上传给 arXiv
  • mwe.blgBibTeX 日志
  • mwe.logLaTeX 日志
  • mwe.pdf输出
mwe.pdf

还没有 PDF

This is text with and .

一开始只有正文 mwe.tex 和文献库 mwe.bib。

点“下一步”逐步运行:蓝色是这一步读取的文件,绿色是新生成或被更新的文件。

最省事的做法是不改源码,直接上传 mwe.tex 和 mwe.bbl:arXiv 要求 .bbl 与主 .tex 文件同名(mwe.tex 对应 mwe.bbl),看到它就会直接使用。

如果想让源码完全不依赖 BibTeX,也可以复制 mwe.tex 到 mwe-arxiv.tex 并删除对 bibtex 的引用,复制 mwe.bbl 文件内容或引用 mwe.bbl 文件到 mwe-arxiv.tex。

方式一,直接把 mwe.bbl 的内容复制进 mwe-arxiv.tex(适合引用较少,此时上传文件只需要包含 mwe-arxiv.tex 即可)。注释标出了被去掉和被替换的部分:

\documentclass[10pt,a4paper]{article}

\usepackage{hyperref} % for better urls


\begin{document}

This is text with \cite{Goossens} and \cite{adams}.

\nocite{*} % to test all bib entrys
%\bibliographystyle{unsrt} % <======================== not longer needed!
%\bibliography{\jobname} % <========================== not longer needed!
\begin{thebibliography}{1} % <================================== mwe.bbl

\bibitem{Goossens}
Michel Goossens, Frank Mittelbach, and Alexander Samarin.
\newblock {\em The LaTeX Companion}.
\newblock Addison-Wesley, 1 edition, 1994.

\bibitem{adams}
Douglas Adams.
\newblock {\em The Restaurant at the End of the Universe}.
\newblock The Hitchhiker's Guide to the Galaxy. Pan Macmillan, 1980.

\end{thebibliography} % <======================================= mwe.bbl

\end{document}

方式二,使用 \input{mwe.bbl} 引入(上传文件包含 mwe-arxiv.tex 和 mwe.bbl,这时文件名不必一致)。与上面相比,只是把整段 thebibliography 换成了一行 \input:

\documentclass[10pt,a4paper]{article}

\usepackage{hyperref} % for better urls


\begin{document}

This is text with \cite{Goossens} and \cite{adams}.

\nocite{*} % to test all bib entrys
%\bibliographystyle{unsrt} % <======================== not longer needed!
%\bibliography{\jobname} % <========================== not longer needed!
\input{mwe.bbl} % <============================================= mwe.bbl

\end{document}

总结

  1. 首先运行 pdflatex mwe.tex 和 bibtex mwe 生成必要文件。
  2. 然后运行两次 pdflatex mwe.tex 得到正确的引用编号和页码。
  3. 保持 mwe.bbl 与主文件同名,或者将其内容引入到 mwe.tex。
  4. 上传 mwe.tex 和 mwe.bbl 文件(其他 Figures 文件正常引入即可)。不要上传 .aux、.log、.pdf 这些中间文件,arXiv 会自动删掉它们。

Tips

arXiv 支持的 Figure 格式:

  • PostScript(PS、EPS)—— 需要用 LaTeX(DVI 模式)编译,见 Figure inclusion in LaTeX submissions
  • JPEG、PNG 或 PDF —— 需要用 PDFLaTeX 编译;arXiv 不会替你转换图片格式

文件名只允许包含 a-z A-Z 0-9 _ + - . , = 字符,而且区分大小写:Figure1.PDF 和 figure1.pdf 不是同一个文件。

论文的公布时间取决于提交时间,下表为公布时间表(均为美国东部时间,周五、周六不公布):

提交时间段公布时间邮件推送
Monday 14:00 – Tuesday 14:00Tuesday 20:00Tuesday night / Wednesday morning
Tuesday 14:00 – Wednesday 14:00Wednesday 20:00Wednesday night / Thursday morning
Wednesday 14:00 – Thursday 14:00Thursday 20:00Thursday night / Friday morning
Thursday 14:00 – Friday 14:00Sunday 20:00Sunday night / Monday morning
Friday 14:00 – Monday 14:00Monday 20:00Monday night / Tuesday morning

参考

  1. TeX StackExchange:How to obtain and use the .bbl file in my TeX document for arXiv submission
  2. arXiv:Submission Overview
  3. arXiv:TeX Submissions(参考文献、biblatex 与图片格式)
  4. arXiv:Availability of submissions(公布时间表)