diff --git a/modules/lang/latex/+viewers.el b/modules/lang/latex/+viewers.el index 5a237f11d..89251647f 100644 --- a/modules/lang/latex/+viewers.el +++ b/modules/lang/latex/+viewers.el @@ -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") diff --git a/modules/lang/latex/config.el b/modules/lang/latex/config.el index b5ffb5ada..5a1c9921a 100644 --- a/modules/lang/latex/config.el +++ b/modules/lang/latex/config.el @@ -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.