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 <[email protected]> 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