|
From: | Shan |
Subject: | Re: [AUCTeX] LaTeX-equation-label with file-dependent prefix |
Date: | Fri, 7 Jun 2013 09:51:33 -0500 |
Shan <address@hidden> writes:My fault. It set the value of LaTeX-equation-label to (concat ...)
> It seems that the lisp function concat, file-name-nondirectory and
> file-name-sans-extension haven't been executed in my case.
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--8<---------------cut here---------------end--------------->8---
%%% (file-name-sans-extension
%%% (buffer-file-name)))
%%% ":" LaTeX-equation-label))
%%% LaTeX-label-function: nil
%%% End:
When I put it in the file bar.tex, it'll suggest a label starting with
"bar:eq:".
Bye,
Tassilo
_______________________________________________
auctex mailing list
address@hidden
https://lists.gnu.org/mailman/listinfo/auctex
[Prev in Thread] | Current Thread | [Next in Thread] |