
Read Ebooks in the Command Line with Epy. ,(list (concat "\"" leuven-sumatrapdf-command "\" %o"))))))Īnd for your code, I suggest you don't rely on assq-delete-all deleting items from a list. The correct way would be: (when (or leuven-win32-p leuven-cygwin-p) This way, it adds a concat to TeX-view-program-list which will not work (see your question). Not related to your problem, I think emacs-leuven has a bug here: (when (or leuven-win32-p leuven-cygwin-p) (setq TeX-view-program-selection '((output-pdf "SumatraPDF"))) Add this single line in your init file, restart Emacs and open your. Restart Emacs and check if Emacs finds SumatraPDF by evaluating this line:. Put the directory c:/Program Files (x86)/SumatraPDF/ into your PATH on Windows. It has builtin support for SumatraPDF on Windows. Update your AUCTeX to lastest version (11.90.2) from ELPA. It is hard to debug the issue you describe: It would help if you could assemble a minimal scenario how to reproduce this. (concat "\"" "c:/Program Files (x86)/SumatraPDF/SumatraPDF.exe" "\" %o")))ĭoes someone have any idea what's wrong ? (mode-io-correlate " -forward-search %b %n")
(add-to-list 'TeX-view-program-selection '(output-pdf "Sumatra PDF"))))))Īnd this is what I see in the buffer for the customization of the TeX-view-program-list : '(("Sumatra PDF"
(assq-delete-all 'output-pdf TeX-view-program-selection)
(mode-io-correlate " -forward-search %b %n") " %o"))) ("\"c:/Program Files (x86)/SumatraPDF/SumatraPDF.exe\" -reuse-instance" emacs-file (just after calling the emacs-leuven configuration ): (eval-after-load 'latex After some trials, nothing happens, and I have no idea why. I'm using emacs (GNU Emacs 25.1.1 (x86_64-w64-mingw32) of ), and trying to define SumatraPDF as my default PDF-viewer for LaTeX.