> 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/ru/oshibki-latex/19-latex-error-unknown-float-option-h.md).

# Ошибка LaTeX: неизвестная опция плавающего объекта \`H'

Эта ошибка появляется, когда вы забыли подключить **`float`** пакет. Спецификаторы размещения плавающих объектов записываются в квадратных скобках всякий раз, когда мы используем *float* например рисунка или таблицы, то есть **`H`** в **`\begin{figure}[H]`**. **`H`** спецификатор float является частью **`float`** пакета. Он указывает компилятору разместить рисунок точно в этом месте страницы, а не переносить его куда-либо ещё. Каждый раз, когда мы хотим использовать эту опцию, мы должны подключить **`\usepackage{float}`** в преамбуле. Чтобы подробнее узнать, как использовать параметры для задания положения плавающих объектов, ознакомьтесь с нашей [документацию](/latex/ru/risunki-i-tablicy/02-positioning-images-and-tables.md).

## Распространённые причины

**Если забыть подключить `float` пакета:**

Это [пакет float](https://www.ctan.org/pkg/float?lang=en) предоставляет нам `H` опцию. Это более строгая версия `h`, и сообщает LaTeX, что мы хотели бы, чтобы рисунок появился *точно* здесь. Если мы используем `H` опцию, но забудем включить `\usepackage{float}` в преамбуле, мы получим ошибку, подобную показанной ниже

main.tex, строка 12

Ошибка LaTeX: неизвестная опция float \`H'.

См. руководство LaTeX или LaTeX Companion для пояснений. Введите H для немедленной помощи. ... l.10 \begin{figure}\[H] Опция \`H' проигнорирована, вместо неё использована \`p'.

Чтобы устранить эту ошибку, нам просто нужно подключить **`\usepackage{float}`** в преамбуле нашего документа, то есть перед **`\begin{document}`**


---

# 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/ru/oshibki-latex/19-latex-error-unknown-float-option-h.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.
