I am running AUCTeX in Emacs 25 (latest version) on arch linux. I have searched some configuration online, but they don't work. Here is the relevant configuration:
(setq TeX-view-program-selection '((output-pdf "PDF Viewer"))) (setq TeX-view-program-list '(("PDF Viewer" "okular --unique %o#src:%n%b"))) (server-start) (setq LaTeX-command-style '(("" "%(PDF)%(latex) -shell-escape %S%(PDFout)"))) ;; use Sumatra PDF to preview pdf (setq TeX-source-correlate-mode t) (setq TeX-source-correlate-method 'synctex) ;; Enable synctex generation. Even though the command shows ;; as "latex" pdflatex is actually called (custom-set-variables '(LaTeX-command "latex -synctex=1") )
What's going wrong? Thanks!