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

# LaTeXエラー：不明な浮動体オプション \`H'

このエラーは、読み込むのを忘れたときに表示されます。 **`float`** パッケージです。フロート指定子は、私たちが次のものを使うとき、角括弧内に書きます。 *float* 図や表など、つまり **`H`** を **`\begin{figure}[H]`**&#x3068;呼ばれます。 **`H`** フロート指定子は **`float`** パッケージの一部として付いてきます。これは、図を別の場所へ移動させる代わりに、そのページのその正確な位置に配置するようコンパイラに指示します。このオプションを使いたいときは、 **`\usepackage{float}`** をプリアンブルに含める必要があります。フロート位置を指定するためのオプションの使い方についてさらに読むには、私たちの [ドキュメント](/latex/ja/to/02-positioning-images-and-tables.md).

## 一般的な原因

**を読み込むのを忘れた `float` パッケージを使っています：**

この [フロートパッケージ](https://www.ctan.org/pkg/float?lang=en) は、私たちに `H` オプションを与えてくれます。これは `h`のより強力な版であり、LaTeX に対して図を *正確に* ここに表示したいことを伝えます。私たちが `H` オプションを使うが、 `\usepackage{float}` をプリアンブルに含めるのを忘れると、下に示すようなエラーが出ます。

main.tex、12行目

LaTeX エラー: 不明なフロートオプション \`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/ja/latexer/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.
