[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [AUCTeX] turn on tex-pdf-mode when it's a beamer
From: |
Piet van Oostrum |
Subject: |
Re: [AUCTeX] turn on tex-pdf-mode when it's a beamer |
Date: |
Mon, 07 Jan 2008 10:02:05 +0100 |
User-agent: |
Gnus/5.11 (Gnus v5.11) Emacs/22.1 (darwin) |
>>>>> Ralf Angeli <address@hidden> (RA) wrote:
>RA> * Mehmet Ergun (2008-01-03) writes:
>>> I have emacs 21.4.1 with beamer.el and auctex on ubuntu 6.04. It seems
>>> like beamer.el does not turn on the TeX-pdf-mode automatically when the
>>> document class is beamer (even after parsing it as such). I saw here[1]
>>> some code that seems relevant, but have no idea how to use it (I have
>>> next to no experience with emacs).
>RA> Put the following stanza into your init file:
>RA> (add-hook 'LaTeX-mode-hook
>RA> (lambda ()
>RA> (when (member "beamer" (TeX-style-list))
>RA> (TeX-PDF-mode 1))))
>RA> Note that this will enable TeX PDF mode only for existing files. If you
>RA> open a new file and insert the documentclass stuff, the mode will not be
>RA> updated. This will happen only after you save the file, close it and
>RA> reopen it.
Or just C-c C-n
--
Piet van Oostrum <address@hidden>
URL: http://pietvanoostrum.com [PGP 8DAE142BE17999C4]
Private email: address@hidden