Change View-command In Emacs And AUCTeX (pdf Mode)


Answer :

Solution: to use `TeX-view-program-list' in order to define a new viewer description (which contains an Evince command without sync). This new command will override the description of Evince defined in `TeX-view-program-list-builtin' (which contains the problematic command TeX-evince-sync-view).

To do so :

M-x customize-variable <RET> TeX-view-program-list <RET>   <INS>     Name = Evince     Command = evince --page-index=%(outpage) %o 

I have no idea why this code in .emacs does not work:

(setq TeX-view-program-list '(("Evince" "evince --page-index=%(outpage) %o"))) 

Via configuration, I find the following works:

(defun my-LaTeX-mode()   (add-to-list 'TeX-view-program-list '("Evince" "evince --page-index=%(outpage) %o"))   (setq TeX-view-program-selection '((output-pdf "Evince")))   ; Other mode specific config   ) (add-hook 'LaTeX-mode-hook 'my-LaTeX-mode) 

Comments

Popular posts from this blog

Are Regular VACUUM ANALYZE Still Recommended Under 9.1?

Can Feynman Diagrams Be Used To Represent Any Perturbation Theory?