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: Thu, 23 Apr 2020 18:22:25 +0200
User-agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:68.0) Gecko/20100101 Thunderbird/68.7.0

Hi Tassilo

Thanks - this was a good hint.

I found that kpathsea is mentioned in tex-mik.el.

It was not clear to me from the installation instructions that I should
(require 'tex-mik)
in .emacs, but that made it work.

Many thanks for your help,
Brian

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

Hi Brian,

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.
Yes, looks good to me, too.

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?
No, I don't think so.  TeX-macro-global queries for "$SYSTEXMF"
"$TEXMFLOCAL" "$TEXMFMAIN" "$TEXMFDIST".

Ok, so lets see further.  The list of LaTeX packages for completion are
gathered by

   (TeX-search-files-by-type 'texinputs 'global t t)

What does that return in one of you tex buffers?

In my case, that function calls

   (TeX-search-files-kpathsea "${TEXINPUTS.latex}"
     ("tex" "sty" "cls" "ltx" "texi" "txi" "texinfo" "dtx")
     'global t t)

which returns the list of all packages.

Maybe in your case TeX-search-files-kpathsea doesn't return anything
because the TeX-kpathsea-path-delimiter couldn't be configured
automatically?

In case you know how to use M-x edebug, this is the corner where you
should have a look at.

Bye,
Tassilo






reply via email to

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