Don’t put packages not coming with the main distribution there. Rather use /usr/local/texlive/texmf-local; otherwise the added file will vanish when an update to the main distribution will be done.
From the Terminal, assuming you are in the directory where the package files are:
% sudo mkdir -p /usr/local/texlive/texmf-local/tex/latex/cleveref
% sudo mv cleveref.sty /usr/local/texlive/texmf-local/tex/latex/cleveref
% …do the same for the other files…
% sudo mktexlsr
Here “%” stands for the shell prompt, which will be different.You can also navigate to /usr/local/texlive/texmf-local in the Finder and copy the files this way. However you’ll need to give thesudo mktexlsr anyway from the Terminal. If you don’t know about “sudo”, just do as stated, giving your password when requested. Of course, this assumes you are an administrator of the machine. The “mktexlsr”command makes TeX know about the added files.
Another way is to put the package files in
~/Library/texmf/tex/latex
~ stands for your home directory. Other users of your machine will not be able to use the added package, though. With this technique the “mktexlsr” command is not needed.
Leave a Reply