* auctex: prompt for label in theorem like environments
@ 2009-05-10 12:46 nic.d.m.1
0 siblings, 0 replies; only message in thread
From: nic.d.m.1 @ 2009-05-10 12:46 UTC (permalink / raw)
To: help-gnu-emacs
Hello!
Is there a way to configure auctex to prompt for a label name if you
insert a theorem environment?
I tried this in my .emacs file
(setq reftex-label-alist '(("theorem" ?h "thm:" "~\\ref{%s}" t
("theorem" "thm.") -3)))
(add-hook 'LaTeX-mode-hook
(lambda ()
(LaTeX-add-environments
'("theorem" LaTeX-env-label))))
But auctex always generates a standard Label "thm:x", x integer.
I tried nil instead of t, also (nil . t) but nothing worked.
regards
nic
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2009-05-10 12:46 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-05-10 12:46 auctex: prompt for label in theorem like environments nic.d.m.1
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).