Add: sumatrapdf as pdf viewer on Windows

This commit is contained in:
xhcoding 2019-02-24 17:44:06 +08:00
parent a13758393e
commit 5da216a1c5
2 changed files with 5 additions and 1 deletions

View file

@ -8,6 +8,10 @@
(file-exists-p! (or "/Applications/Skim.app"
"~/Applications/Skim.app")))
(add-to-list 'TeX-view-program-selection '(output-pdf "Skim"))))
(`sumatrapdf
(when (and IS-WINDOWS
(executable-find "SumatraPDF"))
(add-to-list 'TeX-view-program-selection '(output-pdf "SumatraPDF"))))
(`okular
(when (executable-find "okular")

View file

@ -11,7 +11,7 @@
enabling unicode symbols in math regions. This requires the unicode-math latex
package to be installed.")
(defvar +latex-viewers `(skim zathura okular pdf-tools)
(defvar +latex-viewers `(skim sumatrapdf zathura okular pdf-tools)
"A list of enabled latex viewers to use, in this order. If they don't exist,
they will be ignored. Recognized viewers are skim, zathura, okular and
pdf-tools.