如何上传论文到 arXiv
上传你的论文到 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 排进文末,第二次才能把正文里的 [?] 换成正确的编号和页码。每一步读什么、产出什么,可以在下面逐步看:
mwe.tex正文mwe.bib文献库mwe.aux引用记录mwe.bbl排好的参考文献上传给 arXivmwe.blgBibTeX 日志mwe.logLaTeX 日志mwe.pdf输出
还没有 PDF
This is text with and .
- M. Goossens et al. The LaTeX Companion, 1994.
- D. Adams. The Restaurant at the End of the Universe, 1980.
一开始只有正文 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}
总结
- 首先运行
pdflatex mwe.tex和bibtex mwe生成必要文件。 - 然后运行两次
pdflatex mwe.tex得到正确的引用编号和页码。 - 保持
mwe.bbl与主文件同名,或者将其内容引入到mwe.tex。 - 上传
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:00 | Tuesday 20:00 | Tuesday night / Wednesday morning |
| Tuesday 14:00 – Wednesday 14:00 | Wednesday 20:00 | Wednesday night / Thursday morning |
| Wednesday 14:00 – Thursday 14:00 | Thursday 20:00 | Thursday night / Friday morning |
| Thursday 14:00 – Friday 14:00 | Sunday 20:00 | Sunday night / Monday morning |
| Friday 14:00 – Monday 14:00 | Monday 20:00 | Monday night / Tuesday morning |