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

# \synctex

この `\synctex` プリミティブは、TEXに追加された機能で、 [SyncTEX拡張](https://ctan.org/tex-archive/support/synctex-parser?lang=en). SyncTEXは、TEXエンジンのコマンドラインオプションで有効化または無効化でき、またはTEXソースファイル内から直接、 `\synctex` プリミティブ：

**使用例**

* SyncTEXを有効にするには、次を使用します `\synctex=1` を `.tex` ファイル;
* SyncTEXを無効にするには、次を使用します `\synctex=0` を `.tex` ファイル;

この説明は以下からの引用です [CTAN](https://ctan.org/tex-archive/support/synctex-parser?lang=en):

> SyncTEXと呼ばれるSynchronization TeXnologyは、TEXエンジンの機能です。入力と出力の同期を可能にし、ソース文書から組版結果へ、またその逆へ移動できるようにします。仕組みは次のとおりです。TEXエンジンの組版処理中に `foo.tex`、TEXエンジンは、いくつかの幾何学的情報を補助ファイルに書き込みます `foo.synctex`、この情報はその後、エディタやビューアーによって入力と出力の間を移動するために使われます。

SyncTEXはOverleafでサポートされています。

#### SyncTEXの詳細情報

* [Jérôme LaurensによるTUGBoatの記事](http://www.tug.org/TUGboat/tb29-3/tb93laurens.pdf)、SyncTEXの作者。
* この [GitHub リポジトリ](https://github.com/jlaurens/synctex) SyncTEXパーサーの


---

# 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/tex-latexpurimitibu/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.
