> 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/vi/co-so-tri-thuc/132-synctex-errors.md).

# Lỗi SyncTeX

Đôi khi có vấn đề khi sử dụng SyncTeX để chuyển từ phần xem trước sang cửa sổ mã nguồn khi một số gói nhất định đang được dùng.

Trong những trường hợp này, nếu bạn thử nhấp đúp vào phần xem trước hoặc dùng các nút mũi tên nằm trên thanh phân cách giữa khung mã nguồn và khung xem trước, một thông báo lỗi sẽ được hiển thị:

> Không tìm thấy tệp nguồn tương ứng.

Điều này được biết là xảy ra trong các tài liệu sử dụng Ti*k*Z shadows hoặc fadings library. The [gói todonotes trong TL2020 cũng tải thư viện fadings](https://tex.stackexchange.com/questions/479146/how-to-solve-no-synchronization-info-at-this-position-issue#comment1210452_479146), nên cũng có thể làm SyncTeX thất bại. Điều này cũng xảy ra nếu `[most]` tùy chọn của gói tcolorbox được sử dụng.

Cũng lưu ý rằng tài liệu .tex chính của một dự án Overleaf phải nằm ở cấp cao nhất của dự án (tức là không ở trong một thư mục) để SyncTeX hoạt động.

Khi sử dụng `\input` và `\include`, đừng dùng một tiền tố `./` trước các đường dẫn tệp của bạn. Nói cách khác: `\include{./chapters/intro}` sẽ làm SyncTeX thất bại; nhưng nó sẽ hoạt động tốt với `\include{chapters/intro}`Mỗi tên tệp .tex không nên chứa các ký tự như `()[]`, các ký hiệu khác, cũng như các ký tự khoảng trắng.

Nếu bạn thấy lỗi này trong một dự án không rơi vào một trong các trường hợp trên , bạn có thể gửi cho chúng tôi một [yêu cầu hỗ trợ](https://www.overleaf.com/contact) và chúng tôi có thể điều tra thêm.


---

# 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/vi/co-so-tri-thuc/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.
