Hello,

I've read the multifile and parsing sections of the AUCTeX manual but I
still can't seem to figure this out. I expect that this is a common problem
but I can't seem to get AUCTeX to recognize natbib (or another other
package) commands in terms of highlighting in any other file than the master
file. I've added the following to my emacs file:

(setq TeX-auto-save t)
(setq TeX-parse-self t)
(setq-default TeX-master nil)

;; colour highlighting
  (global-font-lock-mode t)
  (setq font-lock-maximum-decoration t)

;; use reftex
  ; with AUCTeX LaTeX mode
(add-hook 'LaTeX-mode-hook 'turn-on-reftex)
  ; with Emacs latex mode
(add-hook 'latex-mode-hook 'turn-on-reftex)
  ; use natural science bibliography style
(setq reftex-cite-format 'natbib)


This works well for the master file but not for any of the other files that
make up the entire document. This is what I have at the end of each of my
sub-files:

%%% Local Variables:
%%% mode: latex
%%% TeX-master: "thesis"
%%% End:

I am using Ubuntu 9.10, emacs 23.1.50.1, AUCTeX 11.84. Any suggestions on
what I am missing?

Thanks in advance.

Sam


-- 

*****************************************************
Sam Albers
Geography Program
University of Northern British Columbia
3333 University Way
Prince George, British Columbia
Canada, V2N 4Z9
phone: 250 960-6777
*****************************************************
_______________________________________________
auctex mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/auctex

Reply via email to