Home > Net >  Install custom TeX packages
Install custom TeX packages

Time:12-27

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

  1. Create a texmf folder

    mkdir ~/texmf
    
  2. Then create TeX directory structure

    mkdir -p ~/texmf/tex/latex
    
  3. Then put the custom-latex-package folder under ~/texmf/tex/latex directory

  4. Then 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.

  • Related