Which is the best directory to keep my .sty files?
If you want to install your own .sty files, then you should copy the files into
the directory tex/latex/mystuff relative to a new TEXMF root directory.
Example (Mac/Linux):
- Create a new TEXMF root:
mkdir ~/mytexmf - Create a sub directory:
mkdir -p ~/mytexmf/tex/latex/mystuff - Copy your
.clsand/or.styfiles to~/mytexmf/tex/latex/mystuff - Register the TEXMF root directory
~/mytexmf
The last step can be carried out in MiKTeX Console.