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

# SyncTeX 错误

在使用某些宏包时，使用 SyncTeX 从预览跳转到源代码窗口有时会出现问题。

在这些情况下，如果你尝试双击预览，或使用位于源代码窗格与预览窗格之间分隔栏上的箭头按钮，就会显示一条错误消息：

> 找不到相应的源文件。

已知会发生在使用 Ti 的文档中*王*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 失败。如果 `[大多数]` 使用了 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-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.
