emacs auctex: can one auto-fill section labels?

Posted by Mica on Stack Overflow See other posts from Stack Overflow or by Mica
Published on 2010-03-19T16:27:21Z Indexed on 2010/03/19 16:31 UTC
Read the original article Hit count: 341

Filed under:
|
|

Hi all, I am currently using emacs and auctex to author my latex documents. This is, of course, fantastic. However, I would like to have emacs and/or auctex auto-fill the section label when using C-c C-e to make a new header. It should end up looking like this:

\section{This is a section title}
\label{sec:this-is-a-section-title}

with the label for the header the same as the title, but with no spaces. I don't know lisp or elisp, and I'd have no idea where to start. If anyone could help that would be great!

© Stack Overflow or respective owner

Related posts about emacs

Related posts about auctex