[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Auctex&Beamer recognising pdftex mode automatically
From: |
Ulrich M. Schwarz |
Subject: |
Re: Auctex&Beamer recognising pdftex mode automatically |
Date: |
Fri, 11 May 2007 07:45:13 +0200 |
User-agent: |
netcat/1.10 |
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?
>
> A pity if so because it's a nice neat feature.
Putting %&pdflatex as the first line will¹ cause LaTeX to behave as if
you called pdflatex (even if you called latex).
HTH
Ulrich
¹ this can be disabled; the key phrase to look for is "parse first
line". I believe it's enabled in recent TeXLives, don't know about the
rest.
--
I've done a lot; God knows I've tried // To find the truth. I've even lied.
But all I know is down inside// I'm bleeding...
"Super Heroes"