> 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/knowledge-base/132-synctex-errors.md).

# SyncTeX Errors

There are sometimes problems with using SyncTeX to jump from the preview to the source window when certain packages are in use.

In these cases, if you try to double-click the preview or use the arrow buttons that sit on the divider bar between the source pane and the preview pane, an error message will be displayed:

> Couldn't find the corresponding source file.

This is known to happen in documents using the Ti*k*Z shadows or fadings library. The [todonotes package in TL2020 also loads the fadings library](https://tex.stackexchange.com/questions/479146/how-to-solve-no-synchronization-info-at-this-position-issue#comment1210452_479146), so may also cause SyncTeX to fail. This is also the case if the `[most]` option of the package tcolorbox is used.

Note also that the main .tex document of an Overleaf project should be in the top-level of the project (i.e. not in a folder) for SyncTeX to work.

When using `\input` and `\include`, do not use a preceding `./` to your file paths. That is to say: `\include{./chapters/intro}` would cause SyncTeX to fail; but it would work fine with `\include{chapters/intro}`. Each .tex file name should not contain characters like `()[]`, other symbols, nor space characters.

If you see this error in a project which doesn't fall into one of the above scenarios , you can send us a [support request](https://www.overleaf.com/contact) and we can investigate further.


---

# 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/knowledge-base/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.
