TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm using reftex under emacs. In my document, my label policy is the following :

\label{<buffer name>:<env>:<key>}

for example


Is there a way to do that automatically with reftex ?

Thanks you for any advice, link or documentation...

share|improve this question

RefTeX customization -> RefTeX Label Support -> Reftex Defining Label Environments -> Reftex Label Alist. Change Label prefix string (for every entry). Use %f for filename (extension will be stripped); for details, see the documentation in the customization buffer.

share|improve this answer
Doesn't work, since my reftex seems to ignore completly all customization. I have to check that... – Paul Pichaureau Mar 28 '13 at 8:06

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.