如何解决“该位置没有同步信息”的问题?

如何解决“该位置没有同步信息”的问题?

最近,我发现反向搜索有一个非常奇怪的问题(我在 Windows 10 上使用了 MikTeX,PDF 查看器是 SumatraPDF):反向搜索仅在生成的 PDF 中的某些位置有效,而对于其他位置,您会遇到“此位置没有同步信息”的问题。

经过一番努力,我发现问题似乎出在todonotes包上。本说明的最后给出了一个 MWE(最小工作示例)。看来包todonotes只“禁用”了 ed 文件内内容的同步input(请注意,如果注释掉\usepackage[colorinlistoftodos]{todonotes},反向搜索将同时适用于两个部分)。也就是说,反向搜索只对 中直接出现的内容有效main.tex,而对“输入”文件中的内容(即 MWE 中第二部分的内容)无效。

有没有办法让反向搜索在两种情况下都有效?或者有人发现其他有类似问题的软件包?

\documentclass[11pt]{article}

\usepackage[colorinlistoftodos]{todonotes}

\title{No Synchronization Info: Example}
\author{Author}
\date{\today}

\begin{document}

\maketitle

\section{Test}

Click content within this section, reverse search works.

\input{sections/sec01}

\end{document}

其中sections/sec01.tex有以下内容:

\section{Test}

However, click content within this section, you will get ``No synchronization info at this position'' error.

相关内容