TeX Live (including MacTeX) uses several distinct hierarchies of files ('texmf trees'). The contents of the trees is managed and searched differently.
Although this can be customised differently, the chances are that you are using the default. In that case, the main 3 trees you have to think about will be the following.
The main distribution tree installed and updated by MacTeX/TeX Live Utility, usually at /usr/local/texlive/YYYY/texmf-dist/ where YYYY is the year of the version of TeX Live you are using e.g. 2015.
- You should not alter the contents of the files in this tree. Nor should you add or remove files manually.
- The tree is managed by the tools provided to administer your installation of TeX. (TeX Live Utility or
tlmgr etc.)
The local tree which contains files installed locally and available to all users of the system, usually at /usr/local/texlive/texmf-local/.
- This is probably best used for packages you download because TeX Live doesn't provide them, especially if you want them to be available for a while and generally or don't want to accidentally edit them, for example.
- When you install packages here, you need to update the file name database so that TeX can find them.
Your personal tree which contains files you install or write for your personal use, at ~/Library/texmf/ in your case.
- This is best used for cases where you make a renamed copy of a file to edit it or create your own files.
- The exception would be if you install a font package, when it would be better to use the local tree even for your own idiosyncratic creations. However, you don't need to worry about this if you are new to LaTeX because the creation of custom font packages is not something you are likely to tackle any time soon ;).
The styles you have been using are not in your personal tree because they are supplied by your TeX distribution and installed into the main, distribution tree.
To discover the location of a file or to determine which file TeX is using:
kpsewhich <filename>.<extension>
For example, on my system
kpsewhich apalike.bst
returns
/usr/local/texlive/2015/texmf-dist/bibtex/bst/base/apalike.bst
which shows the file is in the main, distribution tree, whereas
kpsewhich splncs03.bst
returns
/home/<username>/texmf/bibtex/bst/journals/llncs2e/splncs03.bst
where <username> is my user name, which shows that the file is in my personal tree.
To discover the location of a tree, you can ask kpsewhich for the value of the relevant variable.
For example,
kpsewhich -var TEXMFDIST ; kpsewhich -var TEXMFLOCAL ; kpsewhich -var TEXMFHOME
returns
/usr/local/texlive/2015/texmf-dist
/usr/local/texlive/texmf-local
/home/<username>/texmf
on my system. On yours, the final result will presumably give something equivalent to ~/Library/texmf.
/usr/local/texlive.kpsewhichwill tell you exactly where. – You Oct 14 '13 at 12:00kpsewhich, open a Terminal session and typekpsewhich apalike.bst. On a 2013 MacTeX system it should return/usr/local/texlive/2013/texmf-dist/bibtex/bst/base/apalike.bst. – Alan Munn Oct 14 '13 at 12:15apalike.bst— this directly compromises document portability. (That is, if you share your document with someone else, it will compile differently on their system.) Instead, make a copy of it, such asmyapalike.bst(or whatever the steps are to make a new BibTeX style), and work from there, distributing thisbstwith the document. – Sean Allred Oct 14 '13 at 14:31TeX Live Utilitywhich comes with yourMacTeXdistribution and with which you will be able to automatically update packages during the year. (but, only if you installedMacTeXmore recently that some time in April or May of this year; else it will be connected toTeXLive 2012or earlier, which is not updated anymore). – Oct 14 '13 at 19:49