On 29.05.2013 15:35, Tassilo Horn wrote:
Jannis <[email protected]> writes:

Yes.  So it seems the problem is that your auctex installation is
lacking the style files like graphicx.el.  They should reside in a
directory listed in `TeX-style-path'.  Do `C-h v TeX-style-path' to
check the value.

Is there a graphicx.el in some of those directories?  If not, your
auctex installation seems to be incomplete.

TeX-style-path is a variable defined in `tex.el'.
Its value is
("style/" "auto/" "/usr/share/emacs21/site-lisp/auctex/style/"
"/var/lib/auctex/emacs21/" "/usr/local/share/emacs/site-lisp/auctex/style/")
You aren't using Emacs 21, are you?

None of the latter three directories exists.
Ok.  So are AUCTeX's package style files installed somewhere else?  Try

   $ locate graphicx.el

If it is somewhere, add it's containing directory to `TeX-style-path'
like so:

   (add-to-list 'TeX-style-path "/the/dir/with/graphicx/")

If it's not found, then your AUCTeX installation is lacking the style
files making the auto-completion of macros and environments provided by
used packages unavailable to you.

In any way, your AUCTeX installation is not how it's supposed to be.  It
should just work.  How did you install it?

The auto dierectory is a subdirectory of the directory with the tex
file and it contains a filename.el file with the following content:
That's ok.

Bye,
Tassilo

Thanks, Tassilo, for you continuous help! You helped me to find the cause of the error. I had copy pasted these lines into my .emacs:

(setq LaTeX-eqnarray-label "eq"
      LaTeX-equation-label "eq"
      LaTeX-figure-label "fig"
      LaTeX-table-label "tab"
      LaTeX-myChapter-label "chap"
      TeX-auto-save t
      TeX-newline-function 'reindent-then-newline-and-indent
      TeX-parse-self t
      TeX-style-path
      '("style/" "auto/"
    "/usr/share/emacs21/site-lisp/auctex/style/"
    "/var/lib/auctex/emacs21/"
    "/usr/local/share/emacs/site-lisp/auctex/style/")
      LaTeX-section-hook
      '(LaTeX-section-heading
    LaTeX-section-title
    LaTeX-section-toc
    LaTeX-section-section
    LaTeX-section-label))

Well, this happens if you copy paste without fully understanding its content :-).


Thanks a lot for your assistance!

Jannis






_______________________________________________
auctex mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/auctex

Reply via email to