[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
auctex: prompt for label in theorem like environments
|
From: |
nic . d . m . 1 |
|
Subject: |
auctex: prompt for label in theorem like environments |
|
Date: |
Sun, 10 May 2009 05:46:29 -0700 (PDT) |
|
User-agent: |
G2/1.0 |
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
| [Prev in Thread] |
Current Thread |
[Next in Thread] |
- auctex: prompt for label in theorem like environments,
nic . d . m . 1 <=