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

_______________________________________________
auctex mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/auctex

Reply via email to