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

# Kesalahan LaTeX: Opsi float \`H' tidak dikenal

Kesalahan ini muncul ketika Anda lupa memuat **`float`** paket. Spesifier float ditulis di dalam tanda kurung siku setiap kali kita menggunakan sebuah *float* seperti gambar atau tabel, yaitu **`H`** di **`\begin{figure}[H]`**. Paket **`H`** spesifier float merupakan bagian dari **`float`** paket. Ini memberi tahu compiler untuk menempatkan gambar pada lokasi tepat tersebut di halaman, alih-alih memindahkannya ke tempat lain. Setiap kali kita ingin menggunakan opsi ini, kita harus menyertakan **`\usepackage{float}`** di preambel kita. Untuk membaca lebih lanjut tentang cara menggunakan opsi untuk menentukan posisi float, lihat [dokumentasi](/latex/id/gambar-dan-tabel/02-positioning-images-and-tables.md).

## Penyebab Umum

**Lupa memuat `float` paket:**

Fitur [paket float](https://www.ctan.org/pkg/float?lang=en) memberi kita `H` opsi. Ini adalah versi yang lebih kuat dari `h`, dan memberi tahu LaTeX bahwa kita ingin gambar muncul *tepat* di sini. Jika kita menggunakan `H` opsi, tetapi lupa menyertakan `\usepackage{float}` di preambel kita, kita akan mendapatkan kesalahan seperti yang ditunjukkan di bawah ini

main.tex, baris 12

Kesalahan LaTeX: Opsi float \`H' tidak dikenal.

Lihat manual LaTeX atau LaTeX Companion untuk penjelasan. Ketik H untuk bantuan segera. ... l.10 \begin{figure}\[H] Opsi \`H' diabaikan dan \`p' digunakan.

Untuk mengatasi kesalahan ini, kita cukup menyertakan **`\usepackage{float}`** di preambel dokumen kita, yaitu sebelum **`\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/id/kesalahan-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.
