> 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/baza-znanii/069-how-to-jump-to-the-source-code-from-the-typeset-pdf-synctex.md).

# Как перейти к исходному коду из набранного PDF (SyncTeX)

Overleaf позволяет перейти из места в набранном PDF к соответствующему месту в исходном коде LaTeX и наоборот. **Примечание**: Эта функция не будет работать, если основной `.tex` файл хранится внутри папки (то есть он должен быть размещён на верхнем (корневом) уровне вашего проекта). Перечислены несколько других возможных причин [здесь](/latex/ru/baza-znanii/132-synctex-errors.md).

Вы можете либо:

* дважды щёлкнуть по PDF, что заставит редактор Overleaf прокрутить его к соответствующему месту в исходном коде, или
* использовать стрелки, расположенные на разделителе между панелью исходного кода и панелью предпросмотра, чтобы перейти из исходного кода к предпросмотру или из предпросмотра к исходному коду:

![Изображение, показывающее стрелки Overleaf для перехода из исходного кода к предпросмотру или из предпросмотра к исходному коду](/files/fef27965c7c317fbf561fc124b59315613a9778b)

Если вы не видите этих стрелок или двойной щелчок по PDF не работает, убедитесь, что в вашем проекте PDF-просмотрщик установлен на «Overleaf», а не на «Browser». Вот короткое видео, показывающее, как настроить PDF-просмотрщик вашего проекта и демонстрирующее функции синхронизации исходного кода/PDF в Overleaf.

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

### SyncTeX: TeXнология, лежащая в основе этой функции Overleaf

Возможность Overleaf «перейти к месту в исходном коде» и «перейти к месту в PDF» реализована с помощью SyncTeX — стандартной функции, встроенной во все TeX-движки. Читатели, заинтересованные в кратком введении в SyncTeX, могут узнать больше в [этой статье Overleaf](/latex/ru/drugie-temy/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/ru/baza-znanii/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.
