> 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/zh-tw/zhi-shi-ku/132-synctex-errors.md).

# SyncTeX 錯誤

有時在使用某些套件時，使用 SyncTeX 從預覽跳轉到原始碼視窗會出現問題。

在這些情況下，如果你嘗試雙擊預覽，或使用位於原始碼窗格與預覽窗格之間分隔線上的箭頭按鈕，系統會顯示錯誤訊息：

> 找不到對應的原始碼檔案。

已知這種情況會發生在使用 Ti*k*Z shadows 或 fadings 函式庫的文件中。 [TL2020 中的 todonotes 套件也會載入 fadings 函式庫](https://tex.stackexchange.com/questions/479146/how-to-solve-no-synchronization-info-at-this-position-issue#comment1210452_479146)，因此也可能導致 SyncTeX 失敗。如果使用了 `[most]` 選項的 tcolorbox 套件，也會有同樣情況。

另請注意，Overleaf 專案的主要 .tex 文件應位於專案的最上層（也就是不要放在資料夾中），SyncTeX 才能正常運作。

當使用 `\input` 以及 `\include`，請不要在 `./` 前加上路徑。也就是說： `\include{./chapters/intro}` 會導致 SyncTeX 失敗；但使用 `\include{chapters/intro}`則可正常運作。每個 .tex 檔名都不應包含像 `()[]`這類字元、其他符號或空白字元。

如果你在不屬於上述任何情況的專案中看到這個錯誤，你可以向我們提交一則 [支援請求](https://www.overleaf.com/contact) ，我們可以進一步調查。


---

# 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/zh-tw/zhi-shi-ku/132-synctex-errors.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.
