Note: I use the MiKTeX
distribution of latex on primarily windows machines. Whatever tools you use, you should know how/where to put the .sty
files in order to use them for your templates. Below I explain how to get these files working for me.
MiKTeX
always looks for files nested in folders of the following structure:tex/latex/
.- As such, you need to add this repository to
MikTek
's collection ofroots
. - Run
mo.exe
. This opens upMiKTeK
options. - Click on the roots tab.
- Click
Add...
. - Add this repository to the list. On my machine, path is
T:\GitProjects\Latex-Packages
. - Click
Apply
.
You will only ever have to do this once.
If the folder of this repo is contained in the root list, any changes to files will automatically be taken care of.
However if files get added or deleted from this, you will need to force MiKTeK
to refresh. To do this:
- Run
mo.exe
. This opens upMiKTeK
options. - Go to the General tab.
- Click Refresh FNDB.
Note: Don't put .tex
files in directories on the root. I can't explain why but files won't compile unless they are outside these folders.