help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Auctex&Beamer recognising pdftex mode automatically


From: Stephen Eglen
Subject: Re: Auctex&Beamer recognising pdftex mode automatically
Date: Sat, 12 May 2007 22:10:58 +0100
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.99 (gnu/linux)

Brendan Halpin <brendan.halpin@ul.ie> writes:

> I've been looking for a way to get Emacs/AucTeX to recognise that a
> paticular latex file should be processed by pdflatex, and was
> delighted to stumble on the fact that \usepackage[pdftex]{graphicx}
> or \documentclass[pdftex]{...} was enough. 
>
> But it doesn't seem to work for Beamer files, i.e.
> \documentclass[pdftex]{beamer} still gets put in LaTeX-mode. Is
> this an oddity of beamer.cls?

I previously asked a similar question.  Try the following in .emacs


(eval-after-load "tex"
  '(TeX-add-style-hook "beamer" 'my-beamer-mode))

(defun my-beamer-mode ()
  "My adds on for when in beamer."

  ;; when in a Beamer file I want to use pdflatex.
  ;; Thanks to Ralf Angeli for this.
  (TeX-PDF-mode 1)                      ;turn on PDF mode.
)


reply via email to

[Prev in Thread] Current Thread [Next in Thread]