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

# 組版済みPDFからソースコードへジャンプする方法（SyncTeX）

Overleafを使うと、組版済みPDF内のある位置から、対応するLaTeXソースコード内の位置へ移動したり、その逆も行えます。 **注**: この機能は、プロジェクトのメイン `.tex` ファイルがフォルダ内に保存されている場合は機能しません（つまり、プロジェクトの最上位（ルート）レベルに配置する必要があります）。他に考えられる原因はいくつか以下に記載されています [こちら](/latex/ja/narejjibsu/132-synctex-errors.md).

次のいずれかを行えます：

* PDFをダブルクリックすると、Overleafのエディタがソースコード内の対応する位置までスクロールします。あるいは、
* ソースコードパネルとプレビューパネルの間の区切り線上にある矢印を使って、ソースからプレビューへ、またはプレビューからソースへ移動します：

![ソースからプレビュー、またはプレビューからソースへのOverleafの矢印を示す画像](/files/977c997e34dd334ce2c4ad0167ba6ac2312c4f3e)

それらの矢印が表示されない場合、またはPDFのダブルクリックが機能しない場合は、プロジェクトのPDFビューアーが「Browser」ではなく「Overleaf」に設定されていることを確認してください。プロジェクトのPDFビューアーの設定方法と、Overleafのソース/PDF同期機能を示す短い動画をご覧ください。

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

### SyncTeX: このOverleaf機能を支えるTeXnology

Overleafの「ソースコード位置へジャンプ」と「PDF位置へジャンプ」機能は、すべてのTeXエンジンに組み込まれている標準機能であるSyncTeXを使用して実装されています。SyncTeXの簡単な紹介に関心のある読者は、詳しくは [このOverleafの記事](/latex/ja/sononotopikku/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/ja/narejjibsu/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.
