Bonjour François,
François Patte <[email protected]> writes:
> When I use C-c-a to compile my document, latexmk is run but at the
> end, it complains that "no matching viewer found"....
Does it work for you if you do
• C-c C-c LaTeX RET
• C-c C-v
?
> I searched on the internet and found someone saying to add in the init
> file:
>
> (eval-after-load "tex"
> '(progn
> (setq TeX-view-program-list '(("Evince" "evince
> --page-index=%(outpage) %o")))
> ;(add-to-list 'TeX-command-list '("View" "evince %g"
> TeX-run-command nil t :help "Run evince on your document"))
> (setq TeX-view-program-selection '((output-pdf "Evince")))))
In theory, it should be sufficient to have this in your init file:
(setq TeX-view-program-selection '((output-pdf "Evince")))
AUCTeX has an entry for Evince in `TeX-view-program-list-builtin' which
should get you going, in theory.
> Sometimes it works sometimes not... Why?
Good question. Do you have any stale AUCTeX installation on your HD?
Do you see something suspicious when you open a .tex file and do:
M-x list-load-path-shadows RET
? You could try starting Emacs as 'emacs -Q', then eval this in scratch
(progn
(package-initialize t)
(package-activate 'auctex)
(setq TeX-view-program-selection '((output-pdf "Evince"))))
open your .tex file and run 'C-c C-v' again. My final idea is if your
Emacs supports DBUS. All stab in the dark, I'm not on a Linux machine
and don't use Evince.
> I am wondering why I have a cheap emacs install...
;-) I hope we can change this impression.
> My emacs version is 29.4 from fedora distro, My auctex version is
> 14.08 from elpa.
Best, Arash