[Top][All Lists]

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

[AUCTeX] Re: reftex toc + beamer + \begin{frame}{Title}

From: Ralf Angeli
Subject: [AUCTeX] Re: reftex toc + beamer + \begin{frame}{Title}
Date: Tue, 11 Nov 2008 21:59:36 +0100

* Malte Helmert (2008-11-11) writes:

> Ralf Angeli wrote:
>> * Malte Helmert (2008-10-27) writes:
>>>     \begin{frame}{Frame title}
>>>     Frame text. More frame text.
>>>     \end{frame}
>>> I tried adding "begin{frame}" to reftex-section-levels, and indeed this
>>> adds the frames to the TOC. However, instead of the expected TOC entry
>>>  * Frame: Frame title
>>> I get
>>>  * Frame: Frame title} Frame text. More frame text.
>> Yes, this is a feature.  In case of an environment the full contents are
>> used for the string to be displayed in the TOC.
> I see. Is there a particular reason why the initial "{" is swallowed?

This is just a fluke from parsing because the regexp used for that also
matches the character after the section macro.  Theoretically one could
compensate for that by moving one character back.  (In fact this is
already done for the case that another macro follows the section macro.)

> The string "Frame title}" is quite ugly; "{Frame title}" whould look
> much nicer.

But still a lot of stuff following the title would end up in the TOC.

>> So it looks as if there are environments which are used
>> for sectioning. Does anybody know such an environment?
> Apart from Beamer's frame environment, I can't think of any at the moment.

The feature is not meant for something like the frame environment.  It
looks like it's rather designed for a case like

This is the section title

and I haven't seen an environment like this yet.


reply via email to

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