> 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/latex-ji-chu/05-errors.md).

# 错误

LaTeX 错误信息有时会比较棘手，难以理解和修复。我们下面整理了一份常见错误列表，并附上更多关于其含义以及如何解决它们的信息。

## 对齐方式

* [对齐制表符字符 & 放置错误](/latex/zh-cn/latex-cuo-wu/23-misplaced-alignment-tab-character.md)
* [多余的对齐制表符已改为 \cr。](/latex/zh-cn/latex-cuo-wu/07-extra-alignment-tab-has-been-changed-to-cr.md)

## 双重下标

* [双重下标](/latex/zh-cn/latex-cuo-wu/04-double-subscript.md)

## 缺少数学模式字符

* [行间数学应以 $$ 结束](/latex/zh-cn/latex-cuo-wu/03-display-math-should-end-with.md)
* [缺少 $](/latex/zh-cn/latex-cuo-wu/25-missing-inserted.md)

## 参考文献

* [存在未定义的引用](/latex/zh-cn/latex-cuo-wu/30-there-were-undefined-references.md)
* [第 XXX 页上的引用 XXX 在输入行 XXX 未定义](/latex/zh-cn/latex-cuo-wu/30-there-were-undefined-references.md)

## 标签

* [存在多个重复定义的标签。](/latex/zh-cn/latex-cuo-wu/29-there-were-multiply-defined-labels.md)
* [标签 XXX 被重复定义。](/latex/zh-cn/latex-cuo-wu/29-there-were-multiply-defined-labels.md)

## 浮动体指定符

* [\`h' 浮动体指定符已改为 \`ht'。](/latex/zh-cn/latex-cuo-wu/01-h-float-specifier-changed-to-ht.md)
* [可选浮动体指定符中没有位置。](/latex/zh-cn/latex-cuo-wu/28-no-positions-in-optional-float-specifier.md)

## 未定义的控制序列

* [未定义的控制序列。](/latex/zh-cn/latex-cuo-wu/31-undefined-control-sequence.md)

## 未找到文件

* [在输入行 XXX 未找到文件 XXX。"](/latex/zh-cn/latex-cuo-wu/09-file-xxx-not-found-on-input-line-xxx.md)
* [LaTeX 错误：未找到文件 XXX。"](/latex/zh-cn/latex-cuo-wu/09-file-xxx-not-found-on-input-line-xxx.md)
* [Package pdftex.def 错误：未找到文件 XXX。"](/latex/zh-cn/latex-cuo-wu/09-file-xxx-not-found-on-input-line-xxx.md)

## 缺少数字/非法的度量单位

* [缺少数字，已按零处理](/latex/zh-cn/latex-cuo-wu/26-missing-number-treated-as-zero.md)
* [非法的度量单位（已插入 pt）](/latex/zh-cn/latex-cuo-wu/10-illegal-unit-of-measure-pt-inserted.md)

## 环境未定义（缺少包）

* [LaTeX 错误：环境 tikzpicture 未定义](/latex/zh-cn/latex-cuo-wu/14-latex-error-environment-xxx-undefined.md)
* [LaTeX 错误：环境 theorem 未定义](/latex/zh-cn/latex-cuo-wu/14-latex-error-environment-xxx-undefined.md)
* [LaTeX 错误：环境 split 未定义](/latex/zh-cn/latex-cuo-wu/14-latex-error-environment-xxx-undefined.md)
* [LaTeX 错误：环境 minipage\* 未定义](/latex/zh-cn/latex-cuo-wu/14-latex-error-environment-xxx-undefined.md)
* [LaTeX 错误：环境 maplelatex 未定义](/latex/zh-cn/latex-cuo-wu/14-latex-error-environment-xxx-undefined.md)
* [LaTeX 错误：环境 mapleinput 未定义](/latex/zh-cn/latex-cuo-wu/14-latex-error-environment-xxx-undefined.md)
* [LaTeX 错误：环境 maplegroup 未定义](/latex/zh-cn/latex-cuo-wu/14-latex-error-environment-xxx-undefined.md)
* [LaTeX 错误：环境 flalign 未定义](/latex/zh-cn/latex-cuo-wu/14-latex-error-environment-xxx-undefined.md)
* [LaTeX 错误：环境 figure\* 未定义](/latex/zh-cn/latex-cuo-wu/14-latex-error-environment-xxx-undefined.md)
* [LaTeX 错误：环境 comment 未定义](/latex/zh-cn/latex-cuo-wu/14-latex-error-environment-xxx-undefined.md)
* [LaTeX 错误：环境 biblio\_lat 未定义](/latex/zh-cn/latex-cuo-wu/14-latex-error-environment-xxx-undefined.md)
* [LaTeX 错误：环境 align\* 未定义](/latex/zh-cn/latex-cuo-wu/14-latex-error-environment-xxx-undefined.md)
* [LaTeX 错误：环境 align 未定义](/latex/zh-cn/latex-cuo-wu/14-latex-error-environment-xxx-undefined.md)
* [LaTeX 错误：环境 algorithm 未定义](/latex/zh-cn/latex-cuo-wu/14-latex-error-environment-xxx-undefined.md)
* [LaTeX 错误：环境 adjustbox 未定义](/latex/zh-cn/latex-cuo-wu/14-latex-error-environment-xxx-undefined.md)

## 内容不足和溢出框

尽管这些警告是 *不* 错误，我们在此列出以便参考：

* [理解内容不足和溢出框警告](/latex/zh-cn/zhi-shi-ku/138-understanding-underfull-and-overfull-box-warnings.md)

## 其他

* [LaTeX 错误：只能在导言区使用](/latex/zh-cn/latex-cuo-wu/13-latex-error-can-be-used-only-in-preamble.md)
* [LaTeX 错误：缺少 \begindocument](/latex/zh-cn/latex-cuo-wu/16-latex-error-missing-begin-document.md)
* [LaTeX 错误：\verb 以行尾结束](/latex/zh-cn/latex-cuo-wu/12-latex-error-verb-ended-by-end-of-line.md)
* [未给出 \author](/latex/zh-cn/latex-cuo-wu/27-no-author-given.md)
* [\noalign 使用位置错误](/latex/zh-cn/latex-cuo-wu/22-misplaced-noalign.md)
* [LaTeX 错误：出了点问题——可能缺少 \item](/latex/zh-cn/latex-cuo-wu/17-latex-error-something-s-wrong-perhaps-a-missing-item.md)
* [这里没有可结束的行](/latex/zh-cn/latex-cuo-wu/18-latex-error-there-s-no-line-here-to-end.md)
* [未知的图形扩展名：.XXX](/latex/zh-cn/latex-cuo-wu/21-latex-error-unknown-graphics-extension-.xxx.md)


---

# 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/latex-ji-chu/05-errors.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.
