From: Stephen Eglen <S.J.Eglen@damtp.cam.ac.uk>
To: help-gnu-emacs@gnu.org
Subject: Re: Auctex&Beamer recognising pdftex mode automatically
Date: Sat, 12 May 2007 22:10:58 +0100 [thread overview]
Message-ID: <t5xabw9vjbx.fsf@notch.damtp.cam.ac.uk> (raw)
In-Reply-To: 87wszgxr6e.fsf@wivenhoe.staff8.ul.ie
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.
)
next prev parent reply other threads:[~2007-05-12 21:10 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-05-10 22:14 Auctex&Beamer recognising pdftex mode automatically Brendan Halpin
2007-05-10 23:18 ` Lars Madsen
2007-05-10 23:48 ` Amy Templeton
2007-05-11 5:45 ` Ulrich M. Schwarz
2007-05-11 6:00 ` Ralf Angeli
2007-05-11 9:32 ` Peter Dyballa
[not found] ` <mailman.506.1178841043.32220.help-gnu-emacs@gnu.org>
2007-05-11 15:35 ` Brendan Halpin
[not found] ` <mailman.514.1178876409.32220.help-gnu-emacs@gnu.org>
2007-05-11 18:08 ` Ralf Angeli
2007-05-12 21:10 ` Stephen Eglen [this message]
2007-05-12 21:25 ` Ralf Angeli
2007-05-13 12:58 ` Michele Dondi
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=t5xabw9vjbx.fsf@notch.damtp.cam.ac.uk \
--to=s.j.eglen@damtp.cam.ac.uk \
--cc=help-gnu-emacs@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.