Q: how do I add a new outline header regexp but change the overlaid text?
I often write presentations with Beamer in LaTeX. As such, there are a lot of frame (ie, "slide") environments:
\begin{frame} \frametitle{My frame} % ... % ... \end{frame} To make navigation easier, I've added the frame environment to TeX-outline-extra so that Emacs will treat frames as headers and allow me to hide and show them:
(add-to-list 'TeX-outline-extra '("\\\\begin{frame}" 5)) % at paragraph level Now, when the headers are closed, I have the following:
\begin{frame}... \begin{frame}... \begin{frame}... \begin{frame}... That's a big help, but I'd like to have a visual cue about what each frame contains (such as the frametitle). How could I get the following:
\begin{frame} (My frame)... \begin{frame} (Another frame)... \begin{frame} (A different frame)... \begin{frame} (Yet another frame)...
\begin{frame}{My frame}.