Merge pull request #1195 from xhcoding/develop

Add: sumatrapdf as pdf viewer on Windows
This commit is contained in:
Henrik Lissner 2019-02-24 21:05:29 -05:00 committed by GitHub
commit 85b1983c89
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 1 deletions

View file

@ -8,6 +8,10 @@
(file-exists-p! (or "/Applications/Skim.app" (file-exists-p! (or "/Applications/Skim.app"
"~/Applications/Skim.app"))) "~/Applications/Skim.app")))
(add-to-list 'TeX-view-program-selection '(output-pdf "Skim")))) (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 (`okular
(when (executable-find "okular") (when (executable-find "okular")

View file

@ -11,7 +11,7 @@
enabling unicode symbols in math regions. This requires the unicode-math latex enabling unicode symbols in math regions. This requires the unicode-math latex
package to be installed.") 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, "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 they will be ignored. Recognized viewers are skim, zathura, okular and
pdf-tools. pdf-tools.