bug-auctex
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug-AUCTeX] 11.83; AucTeX does not recognize style when the master file


From: Guy Wiener
Subject: [Bug-AUCTeX] 11.83; AucTeX does not recognize style when the master file does not have \documentclass directly
Date: Fri, 13 Apr 2007 17:22:01 +0300

I use three files:
1. A general header file pres.tex which includes a declaration of the
\documentclass and some options
2. A master files master.tex which inputs the header file pres.tex and
the content file lect.tex
3. A content file lect.tex which includes the document itself, from
\begin{document} to \end{document}

I set the master file of lect.tex to be the master file master.tex
Under these conditions AucTeX does not recognize the style of the
content file.

Thanks, Guy Wiener.

Emacs  : GNU Emacs 21.4.1 (i486-pc-linux-gnu, X toolkit, Xaw3d scroll
bars)
 of 2006-09-15 on rothera, modified by Debian
Package: 11.83

current state:
==============
(setq
 AUCTeX-date "2006-06-07"
 window-system 'x
 LaTeX-version "2e"
 TeX-style-path '("style" "auto"
"/usr/share/emacs/21.4/site-lisp/auctex/style"
                                  "/var/lib/auctex/emacs21")
 TeX-auto-save nil
 TeX-parse-self t
 TeX-master "master"
 TeX-command-list '(("TeX" "%(PDF)%(tex) %S%(PDFout) \"%(mode)\\input %t
\""
                                        TeX-run-TeX nil (plain-tex-mode 
ams-tex-mode texinfo-mode)
                                         :help "Run plain TeX")
                                        ("LaTeX" "%l \"%(mode)\\input{%t}\"" 
TeX-run-TeX nil
                                         (latex-mode doctex-mode) :help "Run 
LaTeX")
                                        ("Makeinfo" "makeinfo %t" 
TeX-run-compile nil
                                         (texinfo-mode) :help "Run Makeinfo 
with Info output")
                                        ("Makeinfo HTML" "makeinfo --html %t" 
TeX-run-compile nil
                                         (texinfo-mode) :help "Run Makeinfo 
with HTML output")
                                        ("AmSTeX" "%(PDF)amstex %S%(PDFout) 
\"%(mode)\\input %t\""
                                         TeX-run-TeX nil (ams-tex-mode) :help 
"Run AMSTeX")
                                        ("ConTeXt" "texexec --once --texutil 
%(execopts)%t"
                                         TeX-run-TeX nil (context-mode) :help 
"Run ConTeXt once")
                                        ("ConTeXt Full" "texexec %(execopts)%t" 
TeX-run-TeX nil
                                         (context-mode) :help "Run ConTeXt 
until completion")
                                        ("BibTeX" "bibtex %s" TeX-run-BibTeX 
nil t :help
                                         "Run BibTeX")
                                        ("View" "%V" TeX-run-discard t t :help 
"Run Viewer")
                                        ("Print" "%p" TeX-run-command t t :help 
"Print the file")
                                        ("Queue" "%q" TeX-run-background nil t 
:help
                                         "View the printer queue" :visible 
TeX-queue-command)
                                        ("File" "%(o?)dvips %d -o %f " 
TeX-run-command t t :help
                                         "Generate PostScript file")
                                        ("Index" "makeindex %s" TeX-run-command 
nil t :help
                                         "Create index file")
                                        ("Check" "lacheck %s" TeX-run-compile 
nil (latex-mode)
                                         :help "Check LaTeX file for 
correctness")
                                        ("Spell" "(TeX-ispell-document \"\")" 
TeX-run-function nil
                                         t :help "Spell-check the document")
                                        ("Clean" "TeX-clean" TeX-run-function 
nil t :help
                                         "Delete generated intermediate files")
                                        ("Clean All" "(TeX-clean t)" 
TeX-run-function nil t :help
                                         "Delete generated intermediate and 
output files")
                                        ("Other" "" TeX-run-command t t :help
                                         "Run an arbitrary command")
                                        )
 )

===File ~/Workshop/beamer-bug/lect.tex======================
\begin{document}

\end{document}
%%% Local Variables: 
%%% mode: latex
%%% TeX-master: "master"
%%% End: 
============================================================

===File ~/Workshop/beamer-bug/master.tex====================
\input{pres.tex}
\input{lect.tex}
============================================================

===File ~/Workshop/beamer-bug/pres.tex======================
\documentclass{beamer}
\usetheme{Berkeley}

============================================================






reply via email to

[Prev in Thread] Current Thread [Next in Thread]