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

# Отслеживайте свои метки с помощью showlabels

**Автор: Джеймс Аллен (январь 2012)**

Когда я пишу длинные документы LaTeX, я постоянно ловлю себя на том, что прыгаю туда-сюда по коду, пытаясь вспомнить, как я назвал `\label`. Чтобы не терять место в коде, я использую [`showlabels`](https://ctan.org/pkg/showlabels?lang=en) пакет, который отображает имя метки рядом с соответствующим уравнением. Тогда я могу посмотреть в PDF, где проще найти нужное мне уравнение, и мне не нужно прыгать по коду. Он работает почти со всем, чему можно присвоить `\label` метку. Замечательно!

**Использование**

В преамбуле добавьте:

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

**Пример вывода**

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

**Параметры**

Вы можете передать showlabels параметр, чтобы указать, где размещать метки:

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

Доступные параметры (взято из [документацию](https://ctan.org/pkg/showlabels?lang=en)):

* `внешний` \[по умолчанию] — все примечания размещаются на внешнем поле текста
* `внутренний`—внутреннее поле
* `левый`—левое поле
* `правый`—правое поле
* `на полях` \[по умолчанию] — помещать примечания на полях
* `встроенный`—помещать примечания в строку, насколько это возможно, и игнорировать любые из вышеприведённых вариантов размещения на полях
* `nolabel`—не вставлять примечание на полях для `\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/ru/voprosy-po-latex/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.
