auctex
[Top][All Lists]
Advanced

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

[AUCTeX] Proposed modification to the beamer.sty LaTeX-add-enviroenments


From: Mirko Vukovic
Subject: [AUCTeX] Proposed modification to the beamer.sty LaTeX-add-enviroenments/block
Date: Fri, 1 Oct 2010 17:33:41 -0400

Hi,

The following snippet in beamer.sty

    '("block" (lambda (env &rest ignore)
                 (let ((title (read-string "(Optional) Title: ")))
                   (LaTeX-insert-environment env)
                   (save-excursion
                     (LaTeX-find-matching-begin)
                     (end-of-line)
                     (insert
                      (if (zerop (length title)) "{}"
                          (format "{%s}" title)))
                     ;; This works because \frametitle is a
                     ;; paragraph command.
                     (backward-char)
                     (LaTeX-fill-paragraph)))))

would prompt the user for the (optional) block title in a Beamer
frame.  I imagine it would be useful for most people that write beamer
presentations.

Mirko



reply via email to

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