[ESS] ESS Auctex and Sumatra

Oliver Jones ojones at wiwi.uni-bielefeld.de
Mon Jan 21 17:37:50 CET 2013


Hi,

this is in my init.el and it dose work for AUCTeX, i.e. just working on a tex-file.
But it does not work for .Rnw-files, acrobat allways shows up instead of Sumatra PDF.

(custom-set-variables
  ;; custom-set-variables was added by Custom.
  ;; If you edit it by hand, you could mess it up, so be careful.
  ;; Your init file should contain only one such instance.
  ;; If there is more than one, they won't work right.
  '(TeX-source-correlate-method (quote synctex))
  '(TeX-source-correlate-mode t)
  '(TeX-source-correlate-start-server t)
  '(TeX-view-program-list (quote (("Sumatra PDF" ("\"C:/Programme/SumatraPDF/SumatraPDF.exe\" 
-reuse-instance" (mode-io-correlate " -forward-search %b %n") " %o")))))
  '(TeX-view-program-selection (quote (((output-dvi style-pstricks) "dvips and start") 
(output-dvi "Yap") (output-pdf "Sumatra PDF") (output-html "start"))))
  '(ess-pdf-viewer-pref (quote ("C:/Programme/SumatraPDF/SumatraPDF.exe" "-reuse-instance"))))



Best
Oliver


Am 18.01.2013 15:01, schrieb Munawar Cheema:
> I don't know if this helps anyone, but as sumatrapdf.exe is being
> discussed and because  I use the ESS distribution via Vincent's
> distribution on Windows and it works great I will share my .emacs lines:
>
>    (require 'sumatra-forward)
>    (setq TeX-view-program-list'(("Sumatrapdf""sumatrapdf -reuse-instance
> %o")))
>    (setq TeX-view-program-selection '((output-pdf "Sumatrapdf")))
>
>

-- 
_______________________________________________________________________________
Universität Bielefeld
Fakultät für Wirtschaftswissenschaften
Lehrstuhl für Ökonometrie und Statistik
Raum / room:  V9-108
Tel / phone:  +49 (0)521 106 4895
http://www.wiwi.uni-bielefeld.de/oekonometrie.html



More information about the ESS-help mailing list