From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Peter Dyballa Newsgroups: gmane.emacs.help Subject: Re: Auctex&Beamer recognising pdftex mode automatically Date: Fri, 11 May 2007 11:32:13 +0200 Message-ID: References: <87wszgxr6e.fsf@wivenhoe.staff8.ul.ie> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 (Apple Message framework v752.2) Content-Type: text/plain; charset=ISO-8859-1; delsp=yes; format=flowed Content-Transfer-Encoding: quoted-printable X-Trace: sea.gmane.org 1178876025 22971 80.91.229.12 (11 May 2007 09:33:45 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 11 May 2007 09:33:45 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: brendan.halpin@ul.ie Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri May 11 11:33:42 2007 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1HmRVO-0008Na-4N for geh-help-gnu-emacs@m.gmane.org; Fri, 11 May 2007 11:33:42 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HmRcm-0000qL-Ld for geh-help-gnu-emacs@m.gmane.org; Fri, 11 May 2007 05:41:20 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HmRbZ-0000pf-Qg for help-gnu-emacs@gnu.org; Fri, 11 May 2007 05:40:05 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HmRbW-0000oe-Lt for help-gnu-emacs@gnu.org; Fri, 11 May 2007 05:40:04 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HmRbV-0000oR-Tu for help-gnu-emacs@gnu.org; Fri, 11 May 2007 05:40:02 -0400 Original-Received: from fmmailgate01.web.de ([217.72.192.221]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1HmRU6-0008Mc-0w for help-gnu-emacs@gnu.org; Fri, 11 May 2007 05:32:22 -0400 Original-Received: from smtp08.web.de (fmsmtp08.dlan.cinetic.de [172.20.5.216]) by fmmailgate01.web.de (Postfix) with ESMTP id 526E27E5734A; Fri, 11 May 2007 11:32:20 +0200 (CEST) Original-Received: from [62.134.230.136] (helo=[192.168.1.2]) by smtp08.web.de with asmtp (TLSv1:AES128-SHA:128) (WEB.DE 4.108 #197) id 1HmRU4-00058S-00; Fri, 11 May 2007 11:32:20 +0200 In-Reply-To: <87wszgxr6e.fsf@wivenhoe.staff8.ul.ie> X-Mailer: Apple Mail (2.752.2) X-Sender: Peter_Dyballa@web.de X-Provags-ID: V01U2FsdGVkX1+VtytPebw9krDXCtKlBCfUKRr+DTJyFNcMt5Td v8d6qjuqiksqV7BfBtkJGZSBhzhSB3VmohPzVdjzKFfFssgwcw ZcTwcNPZN4BcaXOkKKug== X-detected-kernel: Linux 2.4-2.6 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:43875 Archived-At: Am 11.05.2007 um 00:14 schrieb Brendan Halpin: > 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? In a modern TeX installation latex is a sym-link, for example to =20 pdftex, which itself is actually pdfetex. So latex produces PDF =20 directly. You can make AUCTeX prefer pdfTeX by adding this customisation(s, =20 enabling micro-typography for DVI output, too): '(TeX-PDF-mode t) ; '(TeX-DVI-via-PDFTeX t) The third option is to add a file local variable: %%% TeX-command-default: "pdfelatex" which needs to de defined as a TeX command in AUCTeX. IMO it is not recommended to restrict TeX packages to some mode =20 (pdftex, dvips, ...), except you use a package of which you exactly =20 know that it is not able to determine whether (x)dvipdfm(x) or dvips =20 or something else will process the DVI output. Not using such a =20 restrictive options the LaTeX source is free to be compiled by any =20 TeX version to PDF, DVI, or whatever. It can be useful to have a =20 construct like this in the file's preamble: \usepackage{ifpdf} \ifpdf \immediate\write16{\jobname: Bonjour, PDF !} \usepackage{cmap} \usepackage[pdftex]{graphicx} % \DeclareGraphicsExtensions{.png,.gif,.tif,.jpeg} \usepackage[activate=3D{true,nocompatibility}]{microtype} \else % for non-pdfTeX \immediate\write16{=A1Hola \jobname: DVI!} % \DeclareGraphicsExtensions{.eps,.ps} \usepackage[dvips]{graphicx} \usepackage[protrusion=3Dtrue,expansion=3Dfalse]{microtype} \fi -- Greetings Pete The human brain operates at only 10% of its capacity. The rest is =20 overhead for the operating system.