> 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-cuo-wu/20-latex-error-unknown-float-option-q.md).

# LaTeX 错误：未知的浮动体选项 \`q'

当使用 LaTeX 无法识别的浮动体选项时，会出现此错误。每当你使用一个 *float* 例如图或表，即 **`h`** 中插入一个 **`\begin{figure}[h]`**。你能够使用的唯一有效浮动体说明符是 **`h`**, **`t`**, **`b`** 和 **`页`**，再加上 **`H`** 如果你包含 **`\usepackage{float}`** 在我们的导言区中。如果你在方括号中写入 LaTeX 无法识别的浮动体说明符，它会生成如下所示的错误。

main.tex，第 5 行

LaTeX 错误：未知的浮动体选项 \`q'。

有关说明，请参阅 LaTeX 手册或 LaTeX Companion。输入 H 可立即获得帮助。... l.5 \begin{figure}\[q] 选项 \`q' 被忽略，使用了 \`p'。

要了解更多有关如何使用选项来指定浮动体位置的信息，请查看我们的 [文档](/latex/zh-cn/tu-biao-he-biao-ge/02-positioning-images-and-tables.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-cuo-wu/20-latex-error-unknown-float-option-q.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.
