auctex
[Top][All Lists]
Advanced

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

Re: LaTeX package completion not working properly


From: Brian Elmegaard
Subject: Re: LaTeX package completion not working properly
Date: Mon, 20 Apr 2020 08:53:52 +0200
User-agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:68.0) Gecko/20100101 Thunderbird/68.7.0

Hi Tassilo

Thank you for the reply.

This is the output of
C-x C-e (TeX-macro-global) RET

("c:/Users/brel/AppData/Local/Programs/MiKTeX 2.9/tex/" "c:/Users/brel/AppData/Local/Programs/MiKTeX 2.9/bibtex/bst/")

so this looks correct, I guess.

I also have kpsewhich in %PATH%.

On the other hand I do not have the environment variable SYSTEXMF set. MikTeX does not use this.
Is that a problem?

Best regards,
Brian







On 18-04-2020 10:21, Tassilo Horn wrote:
Brian Elmegaard <address@hidden> writes:

Hi Brian,

It also works for LaTeX commands and environments as soon as I have
entered the package name manually.
But for \usepackage it does not work.

The only difference I can find is that somehow I have the environment variable
TEXINPUTS set to the path:
.;c:/Users/me/AppData/Roaming/.emacs.d/elpa/auctex-12.2.0/latex
This is used in LaTeX-search-files-type-alist
That should not be needed for packages provided by your LaTeX
distribution.  Those should be found automatically using kpathsea.  What
does

   C-x C-e (TeX-macro-global) RET

return?  For me, on a GNU/Linux box with TeXLive, it returns

   ("/usr/share/texmf/tex/" "/usr/share/texmf/bibtex/bst/"
    "/usr/share/texmf-dist/tex/" "/usr/share/texmf-dist/bibtex/bst/")

which are the directories where TeXLive put its packages.

I guess in your case it returns the default value

   ("/usr/share/texmf/tex/" "/usr/share/texmf/bibtex/bst/")

which is not applicable to your installation nor OS.  If that's the
case, it indicates that AUCTeX couldn't call kpsewhich in order to query
your TeX distro's paths.  So make sure that it is on your PATH.

As an example,

   $ kpsewhich -expand-path '$SYSTEXMF'

should return something like

   /var/lib/texmf:/usr/share/texmf:/usr/share/texmf-dist

of course with paths matching your system and TeX installation

HTH,
Tassilo






reply via email to

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