Use a custom TeX Live bin folder

texliveonfly

  • Downloads missing TeX Live packages while compiling `.tex` files.
    More information: <https://ctan.org/pkg/texliveonfly>.
  • Trick copyright: tl;dr; <https://github.com/tldr-pages/tldr>

texliveonfly --texlive_bin={{path/to/texlive_bin}} {{source.tex}}

click the source code to copy install texliveonfly on any operating system with command-not-found.com