> 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/tex-latex-primitive/12-synctex.md).

# \synctex

Den `\synctex` primitiven er et tillegg til TeX som tilbys av [SyncTeX-utvidelsen](https://ctan.org/tex-archive/support/synctex-parser?lang=en). SyncTeX kan aktiveres eller deaktiveres via et kommandolinjevalg for TeX-motoren eller direkte i en TeX-kildefil via `\synctex` primitiven:

**Brukseksempler**

* for å aktivere SyncTeX, bruk `\synctex=1` i dine `.tex` fil;
* for å deaktivere SyncTeX, bruk `\synctex=0` i dine `.tex` fil;

Siterer denne beskrivelsen fra [CTAN](https://ctan.org/tex-archive/support/synctex-parser?lang=en):

> Synchronization TeXnology, kalt SyncTeX, er en funksjon i TeX-motorer. Den muliggjør synkronisering mellom inndata og utdata, noe som betyr å navigere fra kildedokumentet til det satsede materialet og omvendt. Slik fungerer det: under satsingsprosessen av `foo.tex`, skriver TeX-motorene litt geometrisk informasjon til en hjelpefil kalt `foo.synctex`, brukes denne informasjonen deretter av redigeringsprogrammer eller visningsprogrammer for å navigere mellom inndata og utdata.

SyncTeX støttes av Overleaf.

#### Mer informasjon om SyncTeX

* [En TUGBoat-artikkel av Jérôme Laurens](http://www.tug.org/TUGboat/tb29-3/tb93laurens.pdf), SyncTeXs forfatter.
* Den [GitHub-repositoriet](https://github.com/jlaurens/synctex) til SyncTeX-parseren.


---

# 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/tex-latex-primitive/12-synctex.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.
