Hi Uwe,
Uwe Brauer <[email protected]> writes:
> I played around a bit the thing I miss most is the automatic insertion
> of labels, but that might be a job of reftex?!
Thanks, does it mean that everything else worked fine? If yes, I would
make a proper submission and update the style.
Reg. automatic label insertion, yes, you have to tell RefTeX about your
new environment and update `reftex-label-alist'. Note that `?e' is for
equations, choose another `key-type' acc. to your needs.
--8<---------------cut here---------------start------------->8---
\documentclass{article}
Eval with `C-x C-e':
(LaTeX-add-environments (list "lemma" (vector "Heading")))
(add-to-list 'reftex-label-alist
'("lemma" ?e "lem:" "~\\ref{%s}" nil ("Lemma" "lemma") nil))
\begin{document}
`C-c C-e lemma RET' inserts:
\begin{lemma}[Optional]
`C-c (' inserts \label{lem:1}
Text for short reference.
\end{lemma}
`C-) RET e RET' inserts \ref{lem:1}
\end{document}
--8<---------------cut here---------------end--------------->8---
Best, Arash
_______________________________________________
auctex-devel mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/auctex-devel