> 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/it/base-di-conoscenza/069-how-to-jump-to-the-source-code-from-the-typeset-pdf-synctex.md).

# Come passare al codice sorgente dal PDF impaginato (SyncTeX)

Overleaf ti consente di passare da una posizione nel PDF impaginato alla posizione corrispondente nel codice sorgente LaTeX, e viceversa. **Nota**: Questa funzionalità non funzionerà se il file principale del tuo progetto `.tex` si trova all'interno di una cartella (cioè, deve essere collocato al livello superiore (root) del tuo progetto). Sono elencate diverse altre possibili cause [qui](/latex/it/base-di-conoscenza/132-synctex-errors.md).

Puoi fare in uno dei seguenti modi:

* fare doppio clic sul PDF, il che fa sì che l'editor di Overleaf scorra fino alla posizione corrispondente nel codice sorgente, oppure
* usare i tasti freccia che si trovano sul divisore tra il pannello del codice sorgente e il pannello di anteprima, per passare da sorgente ad anteprima, o da anteprima a sorgente:

![Immagine che mostra le frecce di Overleaf per passare da sorgente ad anteprima, o da anteprima a sorgente](/files/a327e500243eb37025bfb1c388c850c8bb4f7bb6)

Se non vedi quelle frecce, oppure se il doppio clic sul PDF non funziona, devi assicurarti che il visualizzatore PDF del tuo progetto sia impostato su “Overleaf” e non su “Browser”. Ecco un breve video che mostra come impostare il visualizzatore PDF del tuo progetto e dimostra le funzionalità di sincronizzazione sorgente/PDF di Overleaf.

{% embed url="<https://videos.ctfassets.net/nrgyaltdicpt/2xt7xSOvXcVqKZEAkxoaJi/76436c82c9382f8e78c84140c96deb40/SyncTeX_video.mp4>" %}

### SyncTeX: la tecnologia alla base di questa funzionalità di Overleaf

La capacità di Overleaf di “saltare alla posizione nel codice sorgente” e “saltare alla posizione nel PDF” è implementata usando SyncTeX, una funzionalità standard incorporata in tutti i motori TeX. I lettori interessati a una breve introduzione a SyncTeX possono saperne di più in [questo articolo di Overleaf](/latex/it/altri-argomenti/39-mltex-enctex-and-synctex-tex-extensions.md).


---

# 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/it/base-di-conoscenza/069-how-to-jump-to-the-source-code-from-the-typeset-pdf-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.
