auctex
[Top][All Lists]
Advanced

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

Re: [AUCTeX] Re: creating a new evironment command


From: Ralf Angeli
Subject: Re: [AUCTeX] Re: creating a new evironment command
Date: Wed, 07 Jun 2006 20:31:15 +0200

* Stephen Eglen (2006-06-07) writes:

> "Ryan Krauss" <address@hidden> writes:

[frame environment]

>> How can I set up a command like the one used to insert a figure that
>> prompts me for the frametitle and then puts the cursor in the contents
>> area?
>
> Dear Ryan,
> Here's what I use (nb it doesn't prompt you for the title, but leaves
> you in the right spot for it).
>
> Stephen
>
>
> (defun beamer-template-frame ()
>   "Create a simple template and move point to after \\frametitle."
>   (interactive)
>   (LaTeX-environment-menu "frame")

This will prompt for a frame title with AUCTeX 11.8x if you have
parsing enabled.

The functionality is currently broken as \frametitle is put on the
same line as \begin{frame} but I am working on a fix.

-- 
Ralf




reply via email to

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