如果我在 pdf 中对在条件环境中写的单词进行反向搜索\ifthenelse
,它会带我到块的底部\ifthenelse
,而不是代码.tex
文件中的那个单词。
但是,如果我对常规内容执行相同操作,我的编辑器 TeXShop 3.74 (SyncTeX >=2010) 会将我准确引导至该词。请参阅 MWE。
\documentclass [10pt,letterpaper,twoside,openright]{book}
\usepackage{ifthen}
\newboolean{questions}
\newboolean{solutions}
\begin{document}
\setboolean{questions}{true}
\setboolean{solutions}{false}
\ifthenelse{\boolean{questions}}{
This is to highlight the issue of syncing when the content is within ``ifthenelse'' case. If I sync in pdf at --- WORD, it will take me to line \#10 and not at WORD.\\
line 2
line3
line4
line5: Even here at --- THIS WORD, it will take me to line \#10. I wish to reach at the exact line/word.\\
line6
line7
line8
line9
line10\\\\
}{}
Now see here...\\
This content is not within ``ifthenelse'' case. If I sync in pdf at --- WORD, it will take me to WORD and not at line \#10. Is it got to do with Conditional environment?\\
line 2
line3
line4
line5: Here also if I sync --- THIS WORD, it will take me to THIS WORD and not to line \#10. So this is all good.
line6
line7
line8
line9
line10
\end{document}