I'm using emacs (GNU Emacs 25.1.1 (x86_64-w64-mingw32) of 2016-09-17), and trying to define SumatraPDF as my default PDF-viewer for LaTeX. After some trials, nothing happens, and I have no idea why...
I wrote this in my .emacs-file (just after calling the emacs-leuven configuration ):
(eval-after-load 'latex
'(progn
(if (eq system-type 'windows-nt)
(progn
(add-to-list 'TeX-view-program-list
'("Sumatra PDF"
("\"c:/Program Files (x86)/SumatraPDF/SumatraPDF.exe\" -reuse-instance"
(mode-io-correlate " -forward-search %b %n") " %o")))
(assq-delete-all 'output-pdf TeX-view-program-selection)
(add-to-list 'TeX-view-program-selection '(output-pdf "Sumatra PDF"))))))
And this is what I see in the buffer for the customization of the TeX-view-program-list
:
'(("Sumatra PDF"
("\"c:/Program Files (x86)/SumatraPDF/SumatraPDF.exe\" -reuse-instance"
(mode-io-correlate " -forward-search %b %n")
" %o"))
("SumatraPDF"
(concat "\"" "c:/Program Files (x86)/SumatraPDF/SumatraPDF.exe" "\" %o")))
Does someone have any idea what's wrong ?
C:\SumatraPDF
).