>From bdca0ee216a44e2615c8014c075bf776add58161 Mon Sep 17 00:00:00 2001 From: Arash Esbati Date: Tue, 9 Feb 2016 23:19:57 +0100 Subject: [PATCH] Add support for dviout viewer * doc/changes.texi: Mention support for dviout on Windows. * tex.el (TeX-view-program-list-builtin): Add support for dviout on Windows. This setup works for `TeX-source-correlate-method' set to (dvi . source-specials). Reorder " %o" in entry for SumatraPDF. --- doc/changes.texi | 11 +++++++++++ tex.el | 5 +++-- 2 files changed, 14 insertions(+), 2 deletions(-) diff --git a/doc/changes.texi b/doc/changes.texi index b0c666b..f13a8b1 100644 --- a/doc/changes.texi +++ b/doc/changes.texi @@ -16,6 +16,17 @@ Parsing of the compilation log has been reworked. You should encounter fewer mistaken files while navigating through errors and warnings. @item +Added support for dviout viewer on Windows. Note that this setup works +when @code{TeX-source-correlate-method} is set to use address@hidden for @acronym{DVI}, e.g.: address@hidden +(setq TeX-source-correlate-method + '((dvi . source-specials) + (pdf . synctex))) address@hidden lisp +which is the default. + address@hidden Added support for SumatraPDF viewer on Windows. @item diff --git a/tex.el b/tex.el index 3c11786..090965e 100644 --- a/tex.el +++ b/tex.el @@ -1270,9 +1270,10 @@ the requirements are met." (cond ((eq system-type 'windows-nt) '(("Yap" ("yap -1" (mode-io-correlate " -s %n%b") " %o") "yap") + ("dviout" ("dviout -1 %d" (mode-io-correlate "\"# %n %b\"")) "dviout") ("SumatraPDF" - ("SumatraPDF -reuse-instance %o" - (mode-io-correlate " -forward-search \"%b\" %n")) + ("SumatraPDF -reuse-instance" + (mode-io-correlate " -forward-search \"%b\" %n") " %o") "SumatraPDF") ("dvips and start" "dvips %d -o && start \"\" %f" "dvips") ("start" "start \"\" %o"))) -- 2.7.0