[Top][All Lists]

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

Re: [AUCTeX] autocomplete only for Latex commands/keywords?

From: Jannis
Subject: Re: [AUCTeX] autocomplete only for Latex commands/keywords?
Date: Wed, 29 May 2013 15:56:24 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130329 Thunderbird/17.0.5

On 29.05.2013 15:35, Tassilo Horn wrote:
Jannis <address@hidden> 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.


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
      '("style/" "auto/"

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

Thanks a lot for your assistance!


reply via email to

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