usepackage loads .sty file from texmf-dist instead of texmfhome

Norbert Preining norbert at preining.info
Mon Aug 26 16:25:34 CEST 2024


On Mon, 26 Aug 2024, TeX Live Mailing List wrote:
> texlive 2024 (see <https://tex.stackexchange.com/questions/725139>).

Answered there.

> $ kpsewhich -a piton.sty
> /home/yann/texmf/tex/latex/chato/piton.sty
> /opt/yann/texlive/texmf-dist/tex/lualatex/piton/piton.sty

Ok.

> However \usepackage{piton} loads the file from texmf-dist (when run with
> lualatex).

Because texmf-dist/web2c/texmf.cnf puts the lualatex specific paths
*before* the general latex path.

If you would do
	kpsewhich -progname lualatex piton.sty
it would show you that it uses the one from texmf-dist.

Best is to move your local copy to
	/home/yann/texmf/tex/lualatex/chato/piton.sty

Best regards

Norbert

--
PREINING Norbert                              https://www.preining.info
arXiv / Cornell University   +   IFMGA Guide   +   TU Wien  +  TeX Live
GPG: 0x860CDC13   fp: F7D8 A928 26E3 16A1 9FA0 ACF0 6CAC A448 860C DC13


More information about the tex-live mailing list.