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 <br...@elmegaard.net> 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