I need help using the View command in AUCTeX running in Emacs. This is essential for viewing PDFs and without it I can not make TeX documents. In my .emacs file I have the following (which was created by M-x customize-variable):
(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 (("Preview" "\"open -a Preview.app %o\""))))
Now I open up a .tex document and enter C-c C-c (I have already compiled):
Emacs gives: Command: (default View)
I hit enter
Emacs gives this default command: View command: dvi2tty -q -w 132
I hit enter and Emacs says: View: done. but displays nothing in a PDF reader!
dvi2tty is intended for text only devices, and the command actually creates a new buffer in Emacs which attempts to display the PDF file (it is very messy). Anyway, if I replace dvi2tty -q -w 132 with `open -a Preview.app %o' (I am running Mac os X 10.8.4 and Preview is the name of the default PDF reader) then Preview opens the PDF!
- How do I change the default
View commandfromdvi2tty -q -w 132toopen -a Preview.app %o?
All help is greatly appreciated!
C-c C-v? – dustin Jun 18 '13 at 0:31C-c C-vruns theViewcommand without showing what is actually being executed. – CodeKingPlusPlus Jun 18 '13 at 0:34pdffor you though? – dustin Jun 18 '13 at 0:37C-h v RET TeX- TABto get a list of possible completions and then searched forview. – CodeKingPlusPlus Jun 18 '13 at 0:40