Newbie here. I have just installed emacs/auctex on my mac. I don't like xdvi to view the dvis, I like to use emacs' builtin pdf viewer to view pdf on its own split window on the right. It used to be so with emacs if I remember correctly, but after I installed the auctex, it seems it by default is using the xdvi. How can I switch back to use doc-view-mode to view my pdf then? Thanks
1 Answer
Try the following:
Customize
Tex View Program List
- insert a new entry, with
name
set toEmacs
(or any other meaningful word) - for the associated value menu, choose
Command
, and set the value toemacsclient %o
- you may need to kill and restart Emacs for this to take effect
- you will definitely need to start an Emacs server: either start emacs as
emacs --daemon
, or add(server-start)
to your.emacs
.
- insert a new entry, with
Customize
TeX View Program Selection
- look for the entry for
output-pdf
- from the value menu for that entry, select
Emacs
- look for the entry for
This works for me here on Emacs 24.4.50.1 with Auctex 2014-02-04 from Melpa.
-
I did as instructed, but cannot find
Emacs
in the final value menu. Jun 14, 2018 at 16:05
TeX-PDF-mode
tot
(or just call it as a function, or useC-c C-t C-p
). You may also be interested in tex.stackexchange.com/a/165645/17423.TeX-view-program-list
to usefind-file
on the PDF (normally given by the format string%o
).TeX-view-program-list
, like step-1, step-2, step-3... Thanks. And beside, what's frustrating is to see the pdf file though C-x C-f, is not width fit. And I can't find any button to make it fit width...;-)