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
Asked
Active
Viewed 3,899 times
8
1 Answers
2
Try the following:
Customize
Tex View Program List- insert a new entry, with
nameset 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.
Tyler
- 2,541
-
I did as instructed, but cannot find
Emacsin the final value menu. – Bart Michels Jun 14 '18 at 16:05
TeX-PDF-modetot(or just call it as a function, or useC-c C-t C-p). You may also be interested in http://tex.stackexchange.com/a/165645/17423. – Sean Allred Jun 26 '14 at 23:25TeX-view-program-listto usefind-fileon the PDF (normally given by the format string%o). – Sean Allred Jun 26 '14 at 23:50TeX-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... – Daniel Jun 27 '14 at 00:15W; useC-h m(or just?) from withindoc-view-modefor a good summary of commands;). I'll draw up a good answer here shortly. – Sean Allred Jun 27 '14 at 00:16TeX-view-program-listcan be a function, see for example theEvinceentry inTeX-view-program-list-builtin:-)– giordano Jun 27 '14 at 08:22doc-view-mode? Why not using a full-fledged viewer? – giordano Jun 27 '14 at 08:23auto-revert-mode). And I did try to get the function thing to work on my own, but having an example will be very helpful. I'll see if I can cook something up when I get home. – Sean Allred Jun 28 '14 at 17:39;-)– giordano Jun 28 '14 at 17:58xelatexandlualatexare unavailable, thus pdflatex or latex are being replaced manually. NextC-c C-cdefaults, as expected, todocviewin the other buffer. the output after compiling with xelatex or lualatex indocviewbuffer, is satisfactory. Is this the current behavior with the latest bzr emacs? – doed Sep 09 '14 at 08:59xemacsfailed in more than two instances, resulting in the omission of my.emacsinit file, which of course, resulting inauctex.elnot longer being loaded.unmigratealso failed fromxemacs. And so did my search, to find out, what had happened. Unfortunatelyxemacshas failed to compile due to alone starerror mesage, which had left me no choice but installing the ubuntu compiled version. – doed Sep 14 '14 at 03:18(load "auctex.el nil t t)was no longer in the initialization file, for there was none to start with. – doed Sep 14 '14 at 03:21