[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [AUCTeX] LaTeX-equation-label with file-dependent prefix
From: |
Tassilo Horn |
Subject: |
Re: [AUCTeX] LaTeX-equation-label with file-dependent prefix |
Date: |
Fri, 07 Jun 2013 13:49:13 +0200 |
User-agent: |
Gnus/5.130008 (Ma Gnus v0.8) Emacs/24.3.50 (gnu/linux) |
Shan <address@hidden> writes:
> It seems that the lisp function concat, file-name-nondirectory and
> file-name-sans-extension haven't been executed in my case.
My fault. It set the value of LaTeX-equation-label to (concat ...)
instead of evaluating it. This does indeed work:
--8<---------------cut here---------------start------------->8---
%%% Local Variables:
%%% eval: (set (make-local-variable 'LaTeX-equation-label)
%%% (concat
%%% (file-name-nondirectory
%%% (file-name-sans-extension
%%% (buffer-file-name)))
%%% ":" LaTeX-equation-label))
%%% LaTeX-label-function: nil
%%% End:
--8<---------------cut here---------------end--------------->8---
When I put it in the file bar.tex, it'll suggest a label starting with
"bar:eq:".
Bye,
Tassilo
- [AUCTeX] LaTeX-equation-label with file-dependent prefix, Shan, 2013/06/05
- Re: [AUCTeX] LaTeX-equation-label with file-dependent prefix, Tassilo Horn, 2013/06/06
- Re: [AUCTeX] LaTeX-equation-label with file-dependent prefix, Shan, 2013/06/06
- Re: [AUCTeX] LaTeX-equation-label with file-dependent prefix, Shan, 2013/06/06
- Re: [AUCTeX] LaTeX-equation-label with file-dependent prefix,
Tassilo Horn <=
- Re: [AUCTeX] LaTeX-equation-label with file-dependent prefix, Shan, 2013/06/07
- Re: [AUCTeX] LaTeX-equation-label with file-dependent prefix, Tassilo Horn, 2013/06/07
- Re: [AUCTeX] LaTeX-equation-label with file-dependent prefix, Shan, 2013/06/07
- Re: [AUCTeX] LaTeX-equation-label with file-dependent prefix, Tassilo Horn, 2013/06/07
- Re: [AUCTeX] LaTeX-equation-label with file-dependent prefix, Shan, 2013/06/07