Given that Apple are discouraging system wide environment variables, it would probably be best
to place symbolic links to your folders in your TEXMFHOME which would usually be ~/Library/texmf
You can create symbolic links with packages such as Path Finder or in Terminal with the ln command
— see Create symbolic link — Ask Different
ln -s originalFile symlink
You have the follow the TeX Directory Structure (say texdoc tds in Terminal for documentation)
-
Place LaTeX files in TEXMFHOME/tex/latex/
-
Place BibTeX source files in TEXMFHOME/bibtex/bib/
-
Place BibTeX style files in TEXMFHOME/bibtex/bst/
There is (at least) one obscure point to watch out for. If a directory, d, being searched for subdirectories contains plain files and symbolic links to other directories, but no true subdirectories, d will be considered a leaf directory, that is, the symbolic links will not be followed
(from page 39, section 8.5.1 of the Kpathsea manual version 6.2.0, May 2014; page 22 of the Kpathsea
manual version 6.0.1, April 2011). Workaround: create an empty dummy subdirectory in d
setenveven a correct command on the command line on a Mac, I thought it was running bash on the cli. – daleif Jan 15 '15 at 13:41pdflatexcannot find the files. I'd guess~/.profilemight be a suitable place, though I do not remember the syntax – daleif Jan 15 '15 at 13:53