Monday, November 26, 2007

reftex and beamer

Well, I already said that I enjoy working with reftex. It also happens that I'm a beamer fan. Beamer is a great tool for making wonderfully-looking presentations with LaTeX. So, here's a small trick I added in my .emacs configuration file to be able to see frames in the TOC mode of reftex. It is quick, dirty and hackish, but it works:

(add-hook 'LaTeX-mode-hook (lambda ()
  (turn-on-reftex)
  (setq reftex-section-levels 
 (cons '("begin{frame}" . -3) reftex-section-levels))
  ))

No comments: