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

# Inga positioner i valfri flyttalsangivelse

Detta är ett vanligt LaTeX-fel som uppstår när du inte inkluderar en [flytobjektspecifikatorn](/latex/sv/figurer-och-tabeller/02-positioning-images-and-tables.md) i alternativen för en float, dvs. den **`ht`** i **`\begin{figure}[ht]`**. Parametern för float-specifikatorn är ett alternativ som ger oss större kontroll över var en figur placeras. De olika placeringsalternativ som finns tillgängliga för oss listas nedan:

| Specifikator | Tillstånd                                                                                                                               |
| ------------ | --------------------------------------------------------------------------------------------------------------------------------------- |
| h            | Placera flytobjektet *här*, dvs. *ungefär* på samma punkt som det förekommer i källtexten (dock inte *exakt* på platsen)                |
| t            | Placera längst upp på *toppen* av sidan.                                                                                                |
| b            | Placera längst upp på *botten* av sidan.                                                                                                |
| p            | Placera på en särskild *page* endast för flytobjekt.                                                                                    |
| !            | Åsidosätt interna parametrar som LaTeX använder för att avgöra "bra" positioner för flytobjekt.                                         |
| H            | Placera flytobjektet exakt på platsen i LaTeX-koden. Kräver paketet *float* (*\usepackage{float}*). Detta är något likvärdigt med *h!*. |

Dessa *float-specifikatorer* kan placeras inom hakparenteserna när vi skapar en float, till exempel **`\begin{figure}[h]`**. De kan till och med kombineras, till exempel **`\begin{figure}[!htb]`**, vilket säger åt LaTeX att placera figuren *här*, eller *toppen*, eller *botten*. Om du lämnar hakparenteserna tomma genom att skriva något i stil med **`\begin{table}[]`**, visas ett felmeddelande, såsom det som visas nedan.

main.tex

Inga positioner i valfri float-specifikator.

## Så här löser du felet

**Ta bort hakparenteserna:**

Det enklaste sättet att bli av med detta fel är att ta bort hakparenteserna när vi inte använder en float-specifikator, dvs. istället för att skriva **`\begin{figure}[]`**, kan du helt enkelt skriva **`\begin{figure}`**.

**Infoga en float-specifikator:**

Ett annat sätt att lösa detta fel är att infoga en [flytobjektspecifikatorn](/latex/sv/figurer-och-tabeller/02-positioning-images-and-tables.md) som talar om för LaTeX var du vill att din float ska visas. Detta bör anges inom hakparenteserna, till exempel **`\begin{figure}[h]`** eller **`\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/sv/latex-fel/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.
