> For the complete documentation index, see [llms.txt](https://ayakaleaf-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://ayakaleaf-pro.ayaka.space/latex/overleaf-learn-latex-pt/questoes-sobre-latex/02-keep-track-of-your-labels-with-showlabels.md).

# Mantenha o registo das suas etiquetas com showlabels

**Autor: James Allen (janeiro de 2012)**

Sempre que escrevo documentos LaTeX longos, dou por mim a saltar para trás e para a frente no código, tentando lembrar-me do nome que dei a `\label`. Para evitar perder o meu lugar no código, uso o [`showlabels`](https://ctan.org/pkg/showlabels?lang=en) pacote, que exibe o nome da etiqueta ao lado da equação correspondente. Assim, posso procurar no PDF, onde é mais fácil encontrar a equação que procuro, e não preciso de andar a saltar no meu código. Funciona com praticamente tudo a que se pode atribuir uma `\label` a. Maravilhoso!

**Uso**

No preâmbulo, coloque:

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

**Exemplo de saída**

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

**Opções**

Pode fornecer uma opção ao showlabels para lhe indicar onde colocar as etiquetas:

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

As opções disponíveis são (retiradas do [documentação](https://ctan.org/pkg/showlabels?lang=en)):

* `externa` \[predefinição]—todas as notas são colocadas na margem externa do texto
* `interna`—margem interna
* `esquerda`—margem esquerda
* `direita`—margem direita
* `marginal` \[predefinição]—coloque as notas na margem
* `linha`—coloque as notas na linha, tanto quanto possível, e ignore quaisquer das opções de colocação na margem acima
* `nolabel`—não insira uma nota marginal para `\label` comandos
* `rascunho` \[predefinição]—não faz nada, parceiro de...
* `final`—desativa toda a funcionalidade do pacote

Note que `showlabels` deve ser incluído depois dos pacotes `amsmath` e `hyperref` para funcionar corretamente com eles. Consulte a [documentação oficial (PDF)](http://mirrors.ctan.org/macros/latex/contrib/showlabels/showlabels.pdf) para mais detalhes.


---

# 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://ayakaleaf-pro.ayaka.space/latex/overleaf-learn-latex-pt/questoes-sobre-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.
