I want to edit LaTeX using Emacs, and installing AUCTeX on Ubuntu using sudo apt-get texlive auctex automatically hooks up .tex files inside Emacs, so that is fine.

I also figured out that C-c C-c (Control+c, Control+c) compiles my LaTeX document, but how do I make AUCTeX compile PDF files and use Evince (the default PDF document viewer in Ubuntu) when I hit C-c C-v (Control+c, Control+v) instead of the less pretty-looking xdvi or xpdf programs?

Do I need to make changes to my .emacs configuration file in my home directory?

asked 21 Sep '12, 20:41

Simon%20Shine's gravatar image

Simon Shine ♦
384310
accept rate: 27%


C-c C-t C-p changes between latex and pdflatex mode (.dvi or .pdf).

You can see many more keyboard shortcuts associated with AUCTeX just by looking in the "LaTeX" menu, which appears when latex-mode is loaded.

The default PDF-viewer is set through the variable TeX-view-program-selection. You can define it in .emacs.d/init.el, or through the menu "Options::Customize Emacs" (of which it sounds as if you weren't aware?)

Hope this helps.

link

answered 03 Oct '12, 18:18

avery's gravatar image

avery
462
accept rate: 100%

edited 03 Oct '12, 18:20

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

×122
×12
×3
×1
×1

Asked: 21 Sep '12, 20:41

Seen: 1,033 times

Last updated: 03 Oct '12, 18:20

powered by OSQA