[Tex/LaTex] Include siunitx package in subdirectory

folderspackagessiunitx

I am creating a TeX project that uses the siunitx package. I would like to be able to place the siunitx package in a subdirectory, to simplify folder structure and to allow me to easily transfer this project to other computers. I know I can load some packages from subdirectories, but when I try with siunitx, I cannot compile my document and get this error:

! LaTeX Error: File 'siunitx-abbreviations.cfg' not found.

siunitx includes other files, which cannot be reached if the .sty file is moved from the root of my project. Is there any way to fix this to allow siunitx to find its associated package files?

This is in my TeX document:

\usepackage[binary-units=true]{tex_packages/siunitx/siunitx}
\sisetup{per-mode=symbol}

Best Answer

The siunitx.sty file is a part of package texlive-science. Install it by:

sudo apt-get install texlive-science

References: missing “.sty” package.