> For the complete documentation index, see [llms.txt](https://ayakaleaf-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://ayakaleaf-pro.ayaka.space/latex/zh-cn/zhi-shi-ku/103-latex-checklist-for-arxiv-submissions.md).

# arXiv 投稿的 LaTeX 检查清单

目前，arXiv 编译 LaTeX 项目时使用一种 [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 宏包存在不可避免的差异，向 arXiv 提交 Overleaf 项目的用户可能会受到 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://ayakaleaf-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.
