> 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/28-no-positions-in-optional-float-specifier.md).

# Sem posições no especificador de flutuação opcional

Este é um erro padrão do LaTeX que aparece quando não inclui um [especificador de flutuante](/latex/overleaf-learn-latex-pt/figuras-e-tabelas/02-positioning-images-and-tables.md) nas opções de um float, ou seja, o **`ht`** em **`\begin{figure}[ht]`**. O parâmetro de especificação de float é uma opção que nos permite ter um maior controlo sobre onde uma figura é colocada. As diferentes opções de colocação disponíveis são listadas abaixo:

| Especificador | Permissão                                                                                                                                                  |
| ------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------- |
| h             | Colocar o flutuante *aqui*, ou seja, *aproximadamente* no mesmo ponto em que ocorre no texto-fonte (no entanto, não *exatamente* no local)                 |
| t             | Posicionar no *topo* da página.                                                                                                                            |
| b             | Posicionar no *fundo* da página.                                                                                                                           |
| p             | Colocar numa página especial *page* apenas para flutuantes.                                                                                                |
| !             | Substituir os parâmetros internos que o LaTeX usa para determinar posições "boas" para flutuantes.                                                         |
| H             | Coloca o flutuante precisamente na localização no código LaTeX. Requer o *float* pacote (*\usepackage{float}*). Isto é, de certo modo, equivalente a *h!*. |

Estes *especificadores de float* podem ser colocados entre os colchetes quando criamos um float, como **`\begin{figure}[h]`**. Podem até ser colocados em combinações como **`\begin{figure}[!htb]`**, o que indica ao LaTeX para colocar a figura *aqui*, ou *topo*, ou *fundo*. Se deixar os colchetes em branco ao escrever algo como **`\begin{table}[]`**, aparecerá uma mensagem de erro como a mostrada abaixo.

main.tex

Sem posições no especificador opcional de float.

## Como resolver o erro

**Removendo os colchetes:**

A forma mais simples de eliminar este erro é remover os colchetes quando não estamos a usar um especificador de float, ou seja, em vez de escrever **`\begin{figure}[]`**, pode simplesmente escrever **`\begin{figure}`**.

**Inserindo um especificador de float:**

Outra forma de resolver este erro é inserindo um [especificador de flutuante](/latex/overleaf-learn-latex-pt/figuras-e-tabelas/02-positioning-images-and-tables.md) indicando ao LaTeX onde gostaria que o seu float aparecesse. Isto deve ser incluído entre os colchetes, como em **`\begin{figure}[h]`** ou **`\begin{table}[!htb]`**.


---

# 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/28-no-positions-in-optional-float-specifier.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.
