> 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/overleaf-learn-latex-pt/erros-do-latex/19-latex-error-unknown-float-option-h.md).

# Erro LaTeX: opção de flutuação desconhecida \`H'

Este erro aparece quando você esqueceu de carregar o **`float`** pacote. Os especificadores de flutuantes são escritos entre colchetes sempre que usamos um *float* como uma figura ou uma tabela, isto é, o **`H`** em **`\begin{figure}[H]`**. O **`H`** especificador de flutuante vem como parte do **`float`** pacote. Ele diz ao compilador para colocar a figura exatamente nessa localização na página, em vez de movê-la para outro lugar. Sempre que quisermos usar essa opção, devemos incluir **`\usepackage{float}`** no nosso preâmbulo. Para ler mais sobre como usar opções para especificar posições de flutuantes, confira o nosso [documentação](/latex/overleaf-learn-latex-pt/figuras-e-tabelas/02-positioning-images-and-tables.md).

## Causas comuns

**Esquecer de carregar o `float` pacote:**

O [pacote float](https://www.ctan.org/pkg/float?lang=en) nos fornece a `H` opção. Esta é uma versão mais forte de `h`, e diz ao LaTeX que gostaríamos que a figura aparecesse *exatamente* aqui. Se usarmos a `H` opção, mas esquecermos de incluir `\usepackage{float}` no nosso preâmbulo, teremos um erro como o mostrado abaixo

main.tex, linha 12

Erro LaTeX: Opção de flutuante desconhecida \`H'.

Veja o manual do LaTeX ou o LaTeX Companion para uma explicação. Digite H para ajuda imediata. ... l.10 \begin{figure}\[H] Opção \`H' ignorada e \`p' usada.

Para resolver este erro, só precisamos de incluir **`\usepackage{float}`** no preâmbulo do nosso documento, ou seja, antes de **`\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/overleaf-learn-latex-pt/erros-do-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.
