I'm trying to install a custom Latex package (this Beamer template). I've tried to create a new directory under ...\AppData\Roaming\TinyTeX\texmf-local\
, copy the .sty files and refresh Tinytex with tlmgr update --self -all
tlmgr path add
fmtutil-sys --all
, but when I call pksewhich mypackage.sty
it still doesn't shows.
CodePudding user response:
The issue Install package manually #377 on TinyTeX github repo describes a way to do this.
Steps are
Create a
texmf
foldermkdir ~/texmf
Then create TeX directory structure
mkdir -p ~/texmf/tex/latex
Then put the custom-latex-package folder under
~/texmf/tex/latex
directoryThen Add to TeX's "search PATH"
tlmgr conf auxtrees add ~/texmf
Then kpsewhich beamerthemesintef.sty
returns
c:/Users/User/texmf/tex/latex/custom_pkg/beamerthemesintef.sty
and one caveat of this approach as @Yihui pointed out is that, you need to repeat the 4th step after upgrading or reinstalling TinyTeX
.