> 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/tex-latexpurimitibu/06-hfuzz.md).

# \hfuzz

TEX には、箱が overfull と見なされ、そのように報告されるかどうかの判定に影響を与えるコマンドがあります。たとえば、 `.log` ファイル。

* `\hfuzz[=]` *寸法*: `\hfuzz` は、ある `\hbox` その幅を `\hbox` overfull と見なされる前に。
* `\vfuzz[=]` *寸法*: `\vfuzz` は、ある `\vbox` その高さを `\vbox` overfull と報告される前に。

注意：

* “`[=]`” は、等号が省略可能であることを意味します。
* *寸法* は、TEX が理解できる単位—たとえば pt、bp、mm など—で指定される量です。

**使用例**

* `\hfuzz=0.5pt` または `\hfuzz 0.5pt` （「=」は省略可能です）
* `\vfuzz=0.75pt` または `\vfuzz 0.75pt` （「=」は省略可能です）

#### 例

「Overleaf」という単語をある `\hbox` に入れて、その幅を測定すると（デフォルトフォントを使用して）：

```
\setbox99=\hbox{Overleaf}\the\wd99
```

36.41675pt という値が得られます。ここで「Overleaf」をある `\hbox` 36pt と狭すぎる幅の [`\overfullrule`](/latex/ja/tex-latexpurimitibu/07-overfullrule.md) を 0 以外の値に設定すると：

```
\overfullrule=5mm
\hbox to 36pt{Overleaf}
```

次の図は出力を示しています：

![](/files/98d78e5106f3c641883ae686838b02bba9c3e516)

もし私たちが設定すると `\hfuzz=0.5pt` そして上記の手順を繰り返すと：

```
\overfullrule=5mm
\hfuzz=0.5pt
\hbox to 36pt{Overleaf}
```

次の図：

![](/files/e28ee2159fa43abfed83c7592a7770dd0c231da1)

TEX がもはや `\hbox to 36pt{Overleaf}` を overfull と扱わないことを示しており、そのため [`\overfullrule`](/latex/ja/tex-latexpurimitibu/07-overfullrule.md) ルールを追加しません。なぜなら、 `\hfuzz` （0.5pt）がそれを防ぐのにちょうど十分だからです。

～の動作は `\vfuzz` は `\hfuzz`に類似しています—ただし、TEX は vbox に対して overfull ルールを表示しません。

#### \hfuzz の詳細

TEX が *実際に* チェックするのは、内容の超過幅と、総計の（0次の）縮みグルーとの差です。たとえば、ある内容の総幅が 100pt で、望ましいボックス幅が 95pt だとします。このとき TEX が吸収する必要がある超過幅は 5pt であり、利用可能なグルーを 5pt 縮める必要があります。0次グルーの総縮みが 4pt あるとすると、TEX は現在の \hfuzz の値を `\hfuzz` 5pt の値と$$-$$4pt$$=$$1pt。

#### 関連コマンド

関連項目：

* [`\overfullrule`](/latex/ja/tex-latexpurimitibu/07-overfullrule.md)
* [`\hbadness`](/latex/ja/tex-latexpurimitibu/05-hbadness.md)


---

# 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/tex-latexpurimitibu/06-hfuzz.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.
