> 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/01-abovedisplayskip-and-related-commands.md).

# \abovedisplayskipと関連コマンド

`\abovedisplayskip` は、TEX エンジンが、表示数式の前後に追加するグルー（伸縮可能な空白）の量を制御する 4 つのコマンドのうちの 1 つです:

* `\abovedisplayskip[=]` *グルー*
* `\belowdisplayskip[=]` *グルー*
* `\abovedisplayshortskip[=]` *グルー*
* `\belowdisplayshortskip[=]` *グルー*

ここで *グルー* はある種の「伸縮可能な空白」であり、「\[=]」は *任意の* コマンドの後に「=」が続くことを示します。

**使用例** `\abovedisplayskip=12pt plus 3pt minus 9pt` （「=」記号は任意です）。

上の 4 つのコマンドはいずれも、表示数式の組版時にTEXが使えるよう、お好みのグルー値を設定（保存）するために使えます。

#### どのグルーを使うかの選択

多くのTEXアルゴリズムと同様、完全な説明では *多数の* 細部を扱う必要がありますが、 *まず近似的には*、TEXは段落の最終行と数式が「重なっている」かどうかを調べます。その比較結果によって数式の上下に置くグルーが決まります。実際には、TEXは数式番号の有無も調べます。

数式の前に「十分に短い」行がある場合、 `\abovedisplayshortskip` に保存されたグルーが数式の上に挿入され、 `\belowdisplayshortskip` に保存されたグルー値がその後ろに挿入されます。より長い行（またはより長い数式）の場合には、TEXは代わりにグルー `\abovedisplayskip` を数式の上に、そして `\belowdisplayskip` を下に挿入します。

表示数式の上にどのグルー（`\abovedisplayskip` または `\abovedisplayshortskip`）を置くか、または下（`\belowdisplayskip` または `\belowdisplayshortskip`）にどれを置くかをTEXがどのように選ぶのかについての詳しい説明は、『The TEXbook』の188–9ページにあります。

#### 例

デモのため、各グルーには効果がはっきり見えるよう、いくつかの「極端な」値を使います。ここでは `\abovedisplayshortskip=-20pt` を選び、 *上方へ* 20ptだけ表示数式を移動させます。さらに `\belowdisplayshortskip=100pt` も使って、表示数式の下に挿入されるグルー（100pt）を設定します。ここでは、これらのコマンドの効果を示す例としてシュレーディンガー方程式を使います:

```
\[ \frac{\hbar^2}{2m}\nabla^2\Psi + V(\mathbf{r})\Psi
= -i\hbar \frac{\partial\Psi}{\partial t} \]
```

これにより、次の数式が得られます:

$$\frac{\hbar ^2}{2m}\nabla ^2\Psi + V(\mathbf{r})\Psi = -i\hbar \frac{\partial \Psi }{\partial t}$$ 次の例では、上で述べた「極端な」グルー値を使います:

```
\abovedisplayshortskip=-20pt
\belowdisplayshortskip=100pt
\noindent 短い最後の行...
\[ \frac{\hbar^2}{2m}\nabla^2\Psi + V(\mathbf{r})\Psi
= -i\hbar \frac{\partial\Psi}{\partial t} \]
... 短い結びの行。
```

次の図は結果を示しています:

![](/files/428258d5e84b2ed245d30342fa7989434e5b6b7a)

ご覧のとおり、シュレーディンガー方程式は20pt上に移動し、その下に100ptの空白が追加されています。

しかし、ここで `\abovedisplayshortskip=-20pt` や `\belowdisplayshortskip=100pt` を使う、または段落の最後の行をもっと長くすると、その表示数式が最後の行と「重なる」ため、この2つのグルー設定は無視されます。ここでTEXはグルー `\abovedisplayskip` を数式の上に、そして `\belowdisplayskip` その下に。ここでは、 `\abovedisplayskip` または `\belowdisplayskip` の値は設定せず、

```
\abovedisplayshortskip=-20pt
\belowdisplayshortskip=100pt
\noindent 短い最後の行...
\[\int_{x^2 + y^2 \leq R^2} f(x,y)\,dx\,dy
= \int_{\theta=0}^{2\pi} \int_{r=0}^R
f(r\cos\theta,r\sin\theta) r\,dr\,d\theta.\]
... 短い結びの行。
```

次の図は結果を示しています:

![](/files/827d1de26a28d2d1ec7b20f76fc77cc2ba37affd)

では、今度はシュレーディンガー方程式を組版しますが、最後の行をもっと長くしておきます:

```
\abovedisplayshortskip=-20pt
\belowdisplayshortskip=100pt
\noindent 今では、より長い最後の行がシュレーディンガー方程式の前に来ます。その結果、
\TeX{} は数式の上では \verb|\abovedisplayskip| のグルーを使い、
下では \verb|\belowdisplayskip| を使って、私たちが指定した「極端な」値を無視します:
\verb|\abovedisplayshortskip=-20pt| と \verb|\belowdisplayshortskip=100pt|。
\[ \frac{\hbar^2}{2m}\nabla^2\Psi + V(\mathbf{r})\Psi
= -i\hbar \frac{\partial\Psi}{\partial t} \]
... 短い結びの行。
```

次の図は結果を示しています:

![](/files/d23489c6e0f35a7ecdb27e94d89404e6480254cd)

#### 関連コマンド

* `\displaywidth`\[=] *寸法*
* `\displayindent`\[=] *寸法*
* `\predisplaysize`\[=] *寸法*

ここで *寸法* は、TEX が理解できる単位の長さです。「\[=]」は、 *任意の* コマンドの後に「=」が続くことを示します。


---

# 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/01-abovedisplayskip-and-related-commands.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.
