> 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/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（Tab 鍵字元）  |
| 11      | 字母                               | A...Z、a...z，以及數千個 Unicode 字元 |
| 12      | 其他                               | 0...9 加上 ,.;?" 以及許多其他字元      |
| 13      | 活動字元                             | 用於建立單字元巨集的特殊類別代碼，例如 ˜        |
| 14      | 註解字元——忽略後面直到行尾的所有內容              | %                            |
| 15      | 無效字元，不允許出現在 .tex 輸入檔中            | ASCII 編碼 127（`刪除`)           |


---

# 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/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.
