Hi all,
I want to change the equation/figure label strings in the following manner:
Environment Current (default)
Desired
equation eq:1
eq:P1-1
figure fig:1
fig:P1-1
P1- stands for Part1-, and I'd like to have P2-, P3-, etc for different
documents. So the thing to do would be to write an AUCTeX style file and
drop it in style/ subdir of the document directory. Only, I don't know
elisp, and couldn't make out what to do even after reading the AUCTeX and
RefTeX documentation.
As an experiment, I changed
%%% Local Variables:
%%% mode: latex
%%% TeX-master: "main"
%%% End:
to
%%% Local Variables:
%%% mode: latex
%%% TeX-master: "main"
%%% LaTeX-equation-label: "eq:P1-"
%%% LaTeX-figure-label: "fig:P1-"
%%% End:
but that doesn't help either. As in C-( stil generates labels of the form
eq:10, and there's an unsafe variable warning that pops up on starting
emacs.
Can someone please give me an elisp code snippet that i can drop in style/ ?
Many thanks,
Ritesh
_______________________________________________
auctex mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/auctex