AUCTeX ⇒ AUCTeX — Parse on Save not working
-
- Posts: 1
- Joined: Sun Jun 19, 2011 12:06 pm
AUCTeX — Parse on Save not working
Could someone please explain to me why the following is happening. I have a latex document which has one equation labeled "eq:1". If I type "\ref{" and then try to autocomplete, then emacs fills in the macro with the correct label, i.e "eq:1".
Now, if I change the label to "eq:2", save the file, and try auto-completion, it still fills in the macro with "eq:1".
In my .emacs file I have the following two lines:
(setq TeX-auto-save t)
(setq TeX-parse-self t)
which, in theory, should update the labels everytime I save the file.
The only way that I have managed to make this work, is to give "C-c C-n" which forces the generation of the style information.
How I can make Auctex update the style information automatically when the file is saved? I thought that this was the whole point of setting "TeX-auto-save" to "t", but I am probably mistaken. If so, what does "TeX-auto-save" do?
Thanks for any suggestions!
Learn LaTeX easily with newest books:
The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis
The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more
LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis