> For the complete documentation index, see [llms.txt](https://overleaf-pro.ayaka.space/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://overleaf-pro.ayaka.space/latex/zh-cn/zhi-shi-ku/103-latex-checklist-for-arxiv-submissions.md).

# arXiv 提交的 LaTeX 检查清单

目前，arXiv 使用一个 [经过修改的 TeX Live 2023 版本](https://info.arxiv.org/help/faq/texlive.html)。对于使用不同版本 TeX Live 的项目，在提交到 arXiv 时可能会导致不兼容。在 Overleaf 中，您可以 [选择用于编译您项目的 TeX Live 版本](https://www.overleaf.com/blog/new-feature-select-your-tex-live-compiler-version) ，这使您可以选择最适合 arXiv 投稿的可用 TeX Live 版本。

此外，一些在 Overleaf 上编译无误的项目，在提交到 arXiv 服务时可能会遇到意外的编译错误。本帮助页面概述了一些常见原因以及解决方法。

## 您是否正在使用 Overleaf 的提交到 arXiv 功能？

arXiv 期望收到一个包含您项目中部分生成文件的 zip 提交包。这些文件可以直接获取（见： [查看生成的文件](/latex/zh-cn/zhi-shi-ku/150-view-generated-files.md)），但 **提交到 arXiv** 按钮下的选项 **提交** 按钮会为您提供一个包含这些内容的 zip 文件。此选项位于 **在线仓库** 提交菜单的部分。如果您的项目使用的是专用期刊模板， **提交** 按钮可能不会包含除该模板期刊之外的其他选项。要查看所有提交选项，包括 arXiv，请复制您的项目：复制后的 **提交** 按钮将包含所有选项，而不仅仅是该模板的期刊。

## 您是否正在使用不兼容的 TeX Live 版本？

在撰写本文时（2023 年 9 月），arXiv 服务 [使用 TeX Live 2023 来处理 LaTeX 投稿](https://arxiv.org/help/faq/texlive)。新的 Overleaf 项目——无论是从头创建，还是当您 [复制项目](/latex/zh-cn/zhi-shi-ku/030-copying-a-project.md)——也基于 TeX Live 2023 的某个版本，但可能与 arXiv 使用的版本略有不同。由于某些 LaTeX 宏包中不可避免的差异，提交 Overleaf 项目到 arXiv 的用户可能会受到 TeX Live 版本不匹配的影响。目前，我们建议任何准备提交到 arXiv 的项目都应配置为使用 TeX Live 2023，方法是使用 [Overleaf 的 TeX Live 选择功能](https://www.overleaf.com/blog/new-feature-select-your-tex-live-compiler-version).

## 您是否正在使用 hyperref 宏包？

在处理 LaTeX 投稿时，arXiv 会加载 `hyperref` 该宏包及其所需的一组选项。如果您的项目也加载了 `hyperref` 带有选项的它，那么在向 arXiv 投稿时可能会出现“Option clash for package hyperref”错误。

您可以尝试将您的 `hyperref` 选项与宏包加载分开设置。例如，这一行

```latex
\usepackage[colorlinks,allcolors=black,pdftex]{hyperref}
```

可以改为

```latex
\usepackage{hyperref}
\hypersetup{colorlinks,allcolors=black}
```

**请注意，这** [**不是必要的（也不建议）**](https://arxiv.org/help/submit_tex#pdflatex) **需要指定 `pdftex` （也不 `dvips`, `dvipdfm`，……）选项用于 `hyperref` 也不适用于其他宏包。**

如果该 `hyperref` 宏包是由一个 *文档类* 或一个 *宏包* 那么可能无法更改其 `hyperref` 一个例子是，如果您使用 `\documentclass{mnras}`。在这种情况下，您可能需要 [阻止 arXiv 注入其 `hyperref` 命令](https://arxiv.org/help/faq/mistakes#nohypertex)。这可以通过向您的项目中添加一个名为 `00README.XXX` 并在其中加入这一行：

```
nohypertex
```

## 您的主 .tex 文件是否位于项目顶层？

arXiv 投稿可能无法在主 `.tex` 文件位于文件夹中，因此在重新尝试向 arXiv 投稿之前，请先将该 `.tex` 文件移动到 Overleaf 项目的根目录。请记住，您可能还需要更新您的 `\include`, `\input`, `\includegraphics` 和 `\bibliography` 命令等的文件路径。

## 您是否在使用 .png、.jpg 或 .pdf 图片文件的同时也使用任何 .eps 图片文件？

arXiv 将使用 `pdfLaTeX` 来处理您的投稿，而且当然 `pdfLaTeX` 不能直接嵌入 `.eps` 图形文件到排版后的 PDF 中：它们必须先转换为一种能够被 `pdfLaTeX` 使用的格式。Overleaf 可以自动转换 `.eps` 文件为 `.pdf` 格式，在 `pdfLaTeX` 编译过程中，但 arXiv 可能未启用此功能。因此，arXiv 的编译在尝试包含 `.eps` 文件，例如 `\includegraphics{plot.eps}`.

如果您的 Overleaf 项目使用的是以下格式的图形 `.eps` 格式，我们建议您将其转换为 `.pdf` 格式，将其上传到您的项目中，并在文档中使用这些 `.pdf` 版本，直接在任何 `\includegraphics` 命令中使用。

## 更多参考资料

* [导致（arXiv）自动处理失败的常见错误](https://arxiv.org/help/faq/mistakes)
* [TeX 投稿（至 arXiv）的注意事项](https://arxiv.org/help/submit_tex)


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://overleaf-pro.ayaka.space/latex/zh-cn/zhi-shi-ku/103-latex-checklist-for-arxiv-submissions.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
