I am trying to set up a function using helm to navigate a beamer file following the suggestion at : "http://blog.jenkster.com/2013/10/a-tip-for-navigating-clojure-files-in-emacs.html". I tried:
(defun helm-beamer-headlines ()
"Display headlines for the current Beamer file."
(interactive)
(helm-mode t)
(helm :sources '(((name . "Beamer Headlines")
(volatile)
(headline "^\\s\|^\\f")))))
to show only the lines starting with \f and \s (corresponding to sectioning and frame commands), and while the regexp works with emacs regexp search and helm-occur, I get no matches with M-x helm-beamer-headlines
.
A minimal file that I tried it on is:
\documentclass{beamer}
\begin{document}
\section{A}
\subsection{Aa}
\frame{\frametitle{}
\begin{enumerate}
\item one
\item two
\end{enumerate}
}
\subsection{Ab}
\frame{\frametitle{}
\begin{align*}
\alpha&=\beta
\end{align*}
}
\section{B}
\subsection{Ba}
\frame{\frametitle{}
\includegraphics[width=\textwidth]{abc.png}
}
\end{document}