> 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-tw/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-tw/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-tw/zhi-shi-ku/030-copying-a-project.md)——也是以 TeX Live 2023 的某個版本為基礎，但可能與 arXiv 所使用的版本略有不同。將 Overleaf 專案提交到 arXiv 的使用者，可能會受到 TeX Live 版本不一致的影響，原因在於某些 LaTeX 套件不可避免的差異。目前，我們建議任何預計提交至 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 時可能會出現「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 檔案是否位於專案頂層？

如果主要 `.tex` 檔案位於資料夾內，則 arXiv 投稿可能無法編譯，因此在再次嘗試提交到 arXiv 之前，請先將該 `.tex` 檔案移到 Overleaf 專案的根層級。請記得，你也可能需要更新 `\include`, `\input`, `\includegraphics` 和 `\bibliography` 命令等所使用的檔案路徑。

## 你是否在使用任何 .eps 圖檔，並與 .png、.jpg 或 .pdf 圖檔並用？

arXiv 會使用 `pdfLaTeX` 來處理你的投稿，當然， `pdfLaTeX` 無法直接將 `.eps` 圖檔納入排版後的 PDF：它們必須先轉換為 `pdfLaTeX` arXiv 可使用的格式。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-tw/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.
