> 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/geng-duo-zhu-ti/43-table-of-tex-category-codes.md).

# TeX 类别码表

| **类别码** | **说明**                           | **标准 LATEX/TEX**                 |
| ------- | -------------------------------- | -------------------------------- |
| 0       | 转义字符——告诉 TEX 开始查找命令              | `\`                              |
| 1       | 开始一个组                            | {                                |
| 2       | 结束一个组                            | }                                |
| 3       | 数学切换——进入/退出数学模式                  | $                                |
| 4       | 对齐制表符                            | &                                |
| 5       | 行尾                               | ASCII 码 13（`\r`)                 |
| 6       | 宏参数                              | #                                |
| 7       | 上标——用于排版数学： `$y=x^2$` $$y=x^2$$  | ˆ                                |
| 8       | 下标——用于排版数学： `$y=x_2$` $$y=x\_2$$ | \_                               |
| 9       | 被忽略的字符                           | ASCII 0 `<空>`                    |
| 10      | 空白符                              | ASCII 码 32（空格）和 9（制表符）           |
| 11      | 字母                               | A...Z，a...z，（以及成千上万的 Unicode 字符） |
| 12      | 其他                               | 0...9 以及 ,.;?" 和许多其他字符           |
| 13      | 活动字符                             | 用于创建单字符宏的特殊类别代码，例如 ˜             |
| 14      | 注释字符——忽略其后直到行尾的所有内容              | %                                |
| 15      | 无效字符，不允许出现在 .tex 输入文件中           | ASCII 码 127（`DEL`)               |


---

# 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/geng-duo-zhu-ti/43-table-of-tex-category-codes.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.
