auctex
[Top][All Lists]
Advanced

[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.
Good.

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:
include
includeonly

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.

Bye,
Tassilo

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/")


Documentation:
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 ()
    (LaTeX-add-bibliographies
     "xxxxx bibpath xxxxxx/bibname.bib")
    (LaTeX-add-labels
    <...>
    (TeX-add-symbols
     "raggedsection")
    (TeX-run-style-hooks
     "todonotes"
     "glossaries"
     "nonumberlist"
     "pdfsync"
     "novbox"
     "placeins"
     "natbib"
     "flafter"
     "subfig"
     "epstopdf"
     "graphicx"
     "pdftex"
     "threeparttablex"
     "threeparttable"
     "makecell"
     "booktabs"
     "longtable"
     "tabularx"
     "gensymb"
     "textcomp"
     "mathrsfs"
     "wasysym"
     "amssymb"
     "amsmath"
     "fancyhdr"
     "prettyref"
     "hyperref"
     "xcolor"
     "pdfcomment"
     "marginnote"
     "calc"
     "ifthen"
     "ifpdf"
     "xkeyval"
     "zref"
     "setspace"
     "fontenc"
     "T1"
     "courier"
     "helvet"
     "scaled"
     "tocloft"
     "tocbibind"
     "nottoc"
     "notlot"
     "notlof"
     "numbib"
     "typearea"
     "caption"
     "normal"
     "sc"
     "sf}"
     "geometry"
     "latex2e"
     "scrartcl11"
     "scrartcl"
     "DIV11"
     "a4paper"
     "BCOR12mm"
     "fleqn"
     "11pt"
     "xxxxx glossaryfile xxxxx"
     "titlepage")))




reply via email to

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