auctex
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [AUCTeX] PDF-tools, AUCTeX and annotations


From: Mandar Mitra
Subject: Re: [AUCTeX] PDF-tools, AUCTeX and annotations
Date: Wed, 25 Nov 2015 20:51:33 +0530

Marcin Borkowski wrote (Wed, Nov 25, 2015 at 08:17:15AM +0100):
> 2. How do I set it up so that I normally launch pdf-tools, but I can
> fall back on Evince in case I need it (e.g., AFAICT pdf-tools does not
> have a "double-page" preview)?

I have something like the following. Maybe you could roll something like this 
for your needs.

(defun mm-toggle-tex-pdf-viewer ()
  (interactive)
  (let ((viewer (read-string 
                 (concat "Current PDF viewer: " (cadr (assoc 'output-pdf 
TeX-view-program-selection)) "; change to? ")
                 nil nil
                 '("Evince" "PDF Tools" "zathura")
                 nil)))
    (setq TeX-view-program-selection (assq-delete-all 'output-pdf 
TeX-view-program-selection))
    (add-to-list 'TeX-view-program-selection (list 'output-pdf viewer))))


Best,
Mandar.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]