Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

add own function to latex-environment

1 view
Skip to first unread message

Sterni

unread,
Jul 16, 2007, 3:43:07 PM7/16/07
to Help-gn...@gnu.org

hello,
im new in this forum. and i´m german so excuse me for my bad english :)

i use emacs to write latex documents.

i want to add an own function to the auctex/latex environment.
so if i press "C-c C-e" my own function should be listed to (next to
"itemize", "figure" and so on)

my code:

(global-set-key "\C-c\C-e\C-f" 'latex-frame)
(append '(latex-environment) '(latex-frame))

(defun latex-frame ()
;;insert frame
(interactive)
(beginning-of-line)
(insert "\\begin{frame} \n \\frametitle{}\n\\end{frame} \n")
(backward-char 15)
)


if i do "M-x latex-frame" everything works, but i want that "frame" is
listet in the environment list!
the shortcut "\C-c\C-e\C-f" isnt working too .....

i hope i can get some help.

thank you!

--
View this message in context: http://www.nabble.com/add-own-function-to-latex-environment-tf4090725.html#a11629566
Sent from the Emacs - Help mailing list archive at Nabble.com.

Ralf Angeli

unread,
Jul 17, 2007, 1:26:49 AM7/17/07
to
* Sterni (2007-07-16) writes:

> i want that "frame" is
> listet in the environment list!

Recent versions of AUCTeX contain support for beamer.sty. You just have
to activate parsing as explained on the first page of AUCTeX's manual.

--
Ralf

0 new messages