[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 14:30:36 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130329 Thunderbird/17.0.5

On 28.05.2013 11:09, Tassilo Horn wrote:
Jannis <address@hidden> writes:

OK, I created Tassilos file, ran C-c C-c several times and the
auto/bar.el file was created with the content Tassilo mentioned.

When I now go back to bar.tex and hit C-c C-m and start typing

include <TAB>

another buffer opens with this content:

Click <mouse-2> on a completion to select it.
In this buffer, type RET to select the completion near point.

Possible completions are:

So there is no completion for \includegraphics.

Is there in your cases?
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/")

List of directories to search for AUCTeX style files.
Per default the list is built from the values of the variables
`TeX-auto-global', `TeX-style-global', `TeX-auto-private',
`TeX-style-private', `TeX-auto-local', and `TeX-style-local'.

You can customize this variable.

None of the latter three directories exists. The auto dierectory is a subdirectory of the directory with the tex file and it contains a filename.el file with the following content:

(TeX-add-style-hook "filename"
 (lambda ()
     "xxxxx bibpath xxxxxx/bibname.bib")
     "xxxxx glossaryfile xxxxx"

reply via email to

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