> For the complete documentation index, see [llms.txt](https://ayakaleaf-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://ayakaleaf-pro.ayaka.space/latex/zh-cn/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://ayakaleaf-pro.ayaka.space/latex/zh-cn/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.
