> 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/latexnisuru/02-keep-track-of-your-labels-with-showlabels.md).

# showlabelsでラベルを管理する

**著者: James Allen（2012年1月）**

長い LaTeX 文書を書いていると、いつもコード内を前後に行き来しながら、あるものに何という名前を付けたのか思い出そうとしてしまいます `\label`。コード内で今いる場所を見失わないように、私は [`showlabels`](https://ctan.org/pkg/showlabels?lang=en) 対応する式の横にラベル名を表示するパッケージを使っています。そうすれば、探している式を見つけやすい PDF を見ればよく、コード内をあちこち飛び回る必要がありません。ほとんど何にでも a を割り当てられるものに使えます。 `\label` に。すばらしい！

**使い方**

プリアンブルに次を記述します:

```latex
\usepackage{showlabels}
```

**出力例**

![ShowlabelsExample.png](/files/c657cf4694b24d064e283ec51edbb61b174e83e3)

**オプション**

showlabels にオプションを指定して、ラベルをどこに配置するかを伝えられます:

```latex
\usepackage[inline]{showlabels}
```

利用可能なオプションは（以下から引用したものです） [ドキュメント](https://ctan.org/pkg/showlabels?lang=en)):

* `外側` \[デフォルト]—すべての注記は本文の外側余白に配置されます
* `内側`—内側余白
* `左`—左余白
* `右`—右余白
* `欄外` \[デフォルト]—注記を余白に配置します
* `インライン`—注記を可能な限り行内に配置し、上記の余白配置オプションは無視します
* `ラベルなし`—のための欄外注記を挿入しません `\label` コマンド
* `下書き` \[デフォルト]—何もしません。…の相方
* `完成版`—パッケージの機能をすべて無効にします

次の点に注意してください `showlabels` は、パッケージの後に読み込む必要があります `amsmath` や `hyperref` それらと正しく動作させるためです。 [公式ドキュメント（PDF）](http://mirrors.ctan.org/macros/latex/contrib/showlabels/showlabels.pdf) 詳細はそちらをご覧ください。


---

# 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/latexnisuru/02-keep-track-of-your-labels-with-showlabels.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.
