I'm using TeXShop on my Macbook. After I upgraded my system to El Captain, my TeXshop stopped typesetting. I reinstalled the complete version of MacTex 2015 again. It turned out that a package I used for many of my papers is missing.
It is a .sty file written by a friend so it is not on TeX Live. I tried some methods I found online, e.g. How do I add a .sty file to my MacTeX/TeXShop installation?. But it does not work. I created ~/library/texmf but TeXshop still cannot find the package. I remember that last time I installed that package, this method did not work for me, and I copied that .sty file into some other folder somewhere under usr/...
I also tried to use commands directly in terminal. But the new system on Mac totally forbids any change to usr/... and I just have no way to either use terminal or copy the file into a folder under usr/...
So, I would appreciate it if someone can help me out.
mkdir -p $(kpsewhich -var-value TEXMFHOME)/tex/latex/<special-package>; mv <filename>.sty $(kpsewhich -var-value TEXMFHOME)/tex/latex/<special-package>/. Where<filename>.styis the.styfile and<special-package>is the name of the package (without special characters, spaces etc. i.e. just letters and hyphens, if needed). – cfr Oct 08 '15 at 23:26/usr. You do need to use Terminal to run the above commands. But that should work fine. – cfr Oct 08 '15 at 23:28/usr/local. If you wish, you can do that by usingsudoand replacingTEXMFHOMEwithTEXMFLOCAL. This will also work fine. (/usr/localcan be modified - only/usrand things other thanlocalunder/usrcannot.) If you do that, you also then need to runsudo mktexlsr $(kpsewhich TEXMFLOCAL). This is not necessary forTEXMFHOME. [I assume that your distribution is installed, contrary to upstream's advice, with root privileges. Hencesudois required.] – cfr Oct 08 '15 at 23:32~/Libarary/texmfdid you put the package? For LaTeX code, it needs to be inside~/Library/texmf/tex/latex, for example. – Joseph Wright Oct 09 '15 at 06:17