[Top][All Lists]

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

Re: Inserting beamer frames

From: Mandar Mitra
Subject: Re: Inserting beamer frames
Date: Tue, 11 Jan 2022 20:28:51 +0530

Greg Bognar via General discussion about AUCTeX wrote (Fri, Jan 07, 2022 at 
11:06:11PM +0100):
> Hi, when I insert a new frame in a Beamer document, C-c C-e asks me for the
> title and then inserts a frame this way:
> \begin{frame}
>   \frametitle{My title}
> \end{frame}
> I would prefer to format my frames like this:
> \begin{frame}\frametitle{My title}
> \end{frame}

You could try saving the following as beamer.el in your own "styles" directory 
(probably ".emacs.d/auctex/style"), and see if you get the behaviour you want.

;;; beamer.el --- personal customisations to AUCTeX style for beamer package.

;;; Author:

;;; Commentary:

;;; Code:

 (lambda ()
    '("frame"  (lambda (env &rest ignore)
                 (let ((title (read-string "(Optional) Title: ")))
                   (forward-line -3)))

reply via email to

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