LaTeX compilers can't find files in texmf-local

Lars Madsen daleif at math.au.dk
Sat Apr 11 19:02:38 CEST 2020


there is no need to run a LaTeX program to see if latex can find it, on the command line run

kpsewhich poliphd.sty

and it will return the path to it if found.


/Lars Madsen
Institut for Matematik / Department of Mathematics
Aarhus Universitet / Aarhus University
Mere info: http://au.dk/daleif@math<http://au.dk/daleif@imf> / More information: http://au.dk/en/daleif@math<http://au.dk/en/daleif@imf>

________________________________
From: tex-live <tex-live-bounces+daleif=imf.au.dk at tug.org> on behalf of Manuel Boni <ziosombrero at gmail.com>
Sent: 11 April 2020 18:18
To: tex-live at tug.org <tex-live at tug.org>
Subject: Re: LaTeX compilers can't find files in texmf-local

Thank you very much for your support.
The .sty file is called poliphd.sty. Here are the steps to reproduce the issue:
1) put poliphd.sty inside C:/texlive/texmf-local/tex/latex/local/
2) run mktexlsr (it will successfully complete its job)
3) use the poliphd package inside a document and compile it

here is the error I get

pdflatex report
This is pdfTeX, Version 3.14159265-2.6-1.40.21 (TeX Live 2020/W32TeX) (preloaded format=pdflatex)
 restricted \write18 enabled.
entering extended mode
(./report.tex
LaTeX2e <2020-02-02> patch level 5
L3 programming layer <2020-03-06>
(c:/texlive/2020/texmf-dist/tex/latex/base/book.cls
Document Class: book 2019/12/20 v1.4l Standard LaTeX document class
(c:/texlive/2020/texmf-dist/tex/latex/base/bk11.clo))
(c:/texlive/2020/texmf-dist/tex/latex/base/fontenc.sty)
(c:/texlive/2020/texmf-dist/tex/latex/base/inputenc.sty)
(c:/texlive/2020/texmf-dist/tex/latex/lm/lmodern.sty)
(c:/texlive/2020/texmf-dist/tex/generic/babel/babel.sty
(c:/texlive/2020/texmf-dist/tex/generic/babel/switch.def)
(c:/texlive/2020/texmf-dist/tex/generic/babel-english/english.ldf
(c:/texlive/2020/texmf-dist/tex/generic/babel/babel.def
(c:/texlive/2020/texmf-dist/tex/generic/babel/txtbabel.def)))
(c:/texlive/2020/texmf-dist/tex/generic/babel-italian/italian.ldf))
(c:/texlive/2020/texmf-dist/tex/latex/etoolbox/etoolbox.sty)
(c:/texlive/2020/texmf-dist/tex/latex/mathtools/mathtools.sty
(c:/texlive/2020/texmf-dist/tex/latex/graphics/keyval.sty)
(c:/texlive/2020/texmf-dist/tex/latex/tools/calc.sty)
(c:/texlive/2020/texmf-dist/tex/latex/mathtools/mhsetup.sty)
(c:/texlive/2020/texmf-dist/tex/latex/amsmath/amsmath.sty
For additional information on amsmath, use the `?' option.
(c:/texlive/2020/texmf-dist/tex/latex/amsmath/amstext.sty
(c:/texlive/2020/texmf-dist/tex/latex/amsmath/amsgen.sty))
(c:/texlive/2020/texmf-dist/tex/latex/amsmath/amsbsy.sty)
(c:/texlive/2020/texmf-dist/tex/latex/amsmath/amsopn.sty)))
(c:/texlive/2020/texmf-dist/tex/latex/amsfonts/amssymb.sty
(c:/texlive/2020/texmf-dist/tex/latex/amsfonts/amsfonts.sty))
(c:/texlive/2020/texmf-dist/tex/latex/amscls/amsthm.sty)

! LaTeX Error: File `poliphd.sty' not found.

Type X to quit or <RETURN> to proceed,
or enter new name. (Default extension: sty)

Enter file name:

The interesting thing is that putting poliphd.sty file inside the home texmf directory (~/texmf/tex/latex/),
the compiler can find the document without any issue.

Best wishes,
Manuel
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://tug.org/pipermail/tex-live/attachments/20200411/95fb5e64/attachment.html>


More information about the tex-live mailing list.