How to load latex .sty files from a subdirectory?

前端 未结 4 1173
悲&欢浪女
悲&欢浪女 2021-02-02 05:42

I use some .sty-files that are not part of texlive and want to have them in a subdirectory of the folder with my main.tex. I used the following line to load the package:

4条回答
  •  没有蜡笔的小新
    2021-02-02 06:44

    Simply put line below before the call to pdflatex (or latex) in your makefile or build script:

    export TEXINPUTS=".:./sty:"
    

    Then reference your package as:

    \usepackage{prettythesis}
    

提交回复
热议问题