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

# Hold oversikt over etikettene dine med showlabels

**Forfatter: James Allen (januar 2012)**

Når jeg skriver lange LaTeX-dokumenter, finner jeg alltid at jeg hopper frem og tilbake i koden og prøver å huske hva jeg kalte en `\label`. For å slippe å miste plassen min i koden bruker jeg [`showlabels`](https://ctan.org/pkg/showlabels?lang=en) pakken som viser navnet på etiketten ved siden av den tilsvarende ligningen. Da kan jeg se i PDF-en, der det er lettere å finne ligningen jeg leter etter, og jeg trenger ikke å hoppe rundt i koden min. Det fungerer på nesten alt du kan tildele en `\label` til. Fantastisk!

**Bruk**

Sett inn i preamblen:

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

**Eksempel på utdata**

![ShowlabelsExample.png](/files/3eb97d23fbcc2f302d79a5a3db9fbdffb6628bc4)

**Alternativer**

Du kan angi et valg for showlabels for å fortelle det hvor etikettene skal plasseres:

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

Tilgjengelige valg er (hentet fra [dokumentasjonen](https://ctan.org/pkg/showlabels?lang=en)):

* `outer` \[standard]—alle notater plasseres i tekstens ytterkant
* `inner`—indre marg
* `left`—venstre marg
* `right`—høyre marg
* `marginal` \[standard]—plasser notater i margen
* `innebygd`—plasser notater inline, så langt det er mulig, og ignorer alle alternativene for margplassering ovenfor
* `nolabel`—ikke sett inn en marginalnote for `\label` kommandoer
* `draft` \[standard]—gjør ingenting, motpart til...
* `final`—slår av all funksjonalitet i pakken

Merk at `showlabels` bør inkluderes etter pakkene `amsmath` og `hyperref` for å fungere korrekt med dem. Se den [offisielle dokumentasjonen (PDF)](http://mirrors.ctan.org/macros/latex/contrib/showlabels/showlabels.pdf) for mer informasjon.


---

# 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/no/latex-sporsmal/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.
