Hi,
I added a new environment as follows in my .emacs file
(add-hook 'LaTeX-mode-hook
(lambda ()
(LaTeX-add-environments
'("axiom" LaTeX-env-label)
'("assumption" LaTeX-env-label))))
(setq reftex-label-alist
'(("axiom" ?a "ax:" "~\\ref{%s}" nil ("axiom" "ax."))
("assumption" ?s "asp:" "~\\ref{%s}" nil ("assumption"
"assum."))))
I also set reftex-plug-into-AUCTeX to t.
When pressing C-c C-e, the label for the axiom environment will be
automatically numbered based on the current document, but the label for the
assumption environment requires manual input. Both environments are defined
in the document.
I don't know what the difference is. Am I missing something in my .emacs
file? Any help is greatly appreciated.
Shan
_______________________________________________
auctex mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/auctex