When I use \usepackage{<package_name>}, what directories does LaTeX check for the .sty file for <package_name>? I'm asking this because I have a set of "configurations" that I always place in the preamble of my files and it would just be a lot easier to load all of that from a .sty file.
In my experience, it checks the directory of the .tex file and the regular install directory (in my case ~/.local/texlive/2020/texmf-dist/tex/latex), but I was wondering if there are any other options.
Not sure if it matters but I'm using Ubuntu 18.04 with a user (rather than root) install of TeXLive.
kpsewhich --progname=pdflatex --show-path=texwhich should give a lot of pathes. But normally texmf-local/tex/latex or texmfhome/tex/latex should be fine (texmfhome is normally somewhere in your home directory,kpsewhich --expand-path=$texmfhome) – Ulrike Fischer May 06 '20 at 13:40