從 Emacs (AUCTeX) 到 Okular 的正向搜尋\include
不起作用。我的作業系統:
OS: Debian bullseye (testing)
Emacs: 26.3
Okular: 1.11.1
AUCTeX: 12.2.4
.emacs(Emacs 設定):
(custom-set-variables
'(package-selected-packages (quote (auctex)))
'(TeX-source-correlate-method (quote synctex))
'(TeX-source-correlate-mode t)
'(TeX-source-correlate-start-server t)
'(TeX-view-program-list (quote (("Okular" "okular --unique %o#src:%n%b"))))
'(TeX-view-program-selection (quote ((engine-omega "dvips and gv") (output-dvi "xdvi") (output-pdf "Okular") (output-html "xdg-open"))))
)
./main.tex:
\documentclass{}
\begin{document}
\include{chapters/chap1}
\end{document}
./chapters/chap1.tex:
\chapter{Chapter 1}
\section{Blub 1.1}
\subsection{Blub 1.1.1}
C-c C-v
(= 從 Emacs 向前搜尋到 Okular 的快捷方式) 在線\section{Blub 1.1}
給出了 (emacs) 錯誤:
Output file "chap1.pdf" does not exist.
答案1
將以下文本(尤其是%%% TeX-master: "../master.tex"
)放在章節文件(例如 chap1.tex)的末尾解決了我的問題:
%%% Local Variables:
%%% mode: latex
%%% TeX-master: "../master.tex"
%%% End: