I wanted to set up auctex to use mupdf as the pdf viewer it ran when I do
C-c C-v. So I
TeX-view-program-list to include a line for MuPDF and
TeX-view-program-selection to select MuPDF. But when I run
C-c C-v, I get the error:
Cannot find "MuPDF" viewer. My
.emacs contains the following relevant lines:
(custom-set-variables ;; custom-set-variables was added by Custom. ;; If you edit it by hand, you could mess it up, so be careful. ;; Your init file should contain only one such instance. ;; If there is more than one, they won't work right. '(TeX-view-program-list (quote (("MuPDF" ("mupdf %s.pdf") "")))) '(TeX-view-program-selection (quote (((output-dvi has-no-display-manager) "dvi2tty") ((output-dvi style-pstricks) "dvips and gv") (output-dvi "xdvi") (output-pdf "MuPDF") (output-html "xdg-open"))))
So what on earth is going on!?
getenv PATH returns a list of paths that includes the location of mupdf, but I don't think that's relevant since the error has "MuPDF" capitalised... Pretty much exactly the same set-up works fine on my laptop.
I'm on emacs 24 (installed with the package manager on ubuntu) and auctex 11.90.0 (installed through emacs with