Saturday, 1 June 2013

How do I provide/trigger the special support for letters in AUCTeX?

How do I provide/trigger the special support for letters in AUCTeX?

As you probably know, the letter document class has quite a few pieces of metadata that go along with it, e.g. name, address, signature, etc. It would be really nice if all of this was put into the document when I C-c C-e RET letter RET RET (create a skeleton letter document).
Currently, the above command produces
\documentclass{letter}

\begin{document}
?
\end{document}
where ? is the cursor position.



This support already seems to be in place via .../auctex-<ver,11.86>/style/letter.el, but I don't know how to trigger it. A search of AUCTeX manual for letter doesn't turn up anything useful, either (at least not that I could find).
How can I trigger this functionality (maybe hooking it onto the command above which seems appropriate)?
TeX-add-style doesn't have very good documentation. (It is used in letter.el.)

No comments:

Post a Comment