I use MacOS, LateXTools in Sublime Text as a TeX editor, and MacTeX as a TeX distribution. I store my macros in a folder named TEXINPUTS on Dropbox, and set up symlinks to the relevant location in my texmf tree.
sudo ln -s /Users/nickriches/Dropbox/TEXINPUTS /usr/local/texlive/texmf-local/tex/latex
This has worked fine under a variety of different MacOSes, but I am running into problems under MacOS Catalina. When I compile a document, it does not find the relevant .tex files stored in TEXINPUTS. This is very odd because when I do a system check with LaTeXTools, the location where the symlink has been created shows up as possible path for TEXINPUTS;
:/usr/local/texlive/texmf-local/tex/latex
So as far as I can see, TeX knows where to look. But it is still not finding the relevant .tex files. I've also tried setting the variable on the command line using EXPORT;
export TEXINPUTS=.:/usr/local/texlive/texmf-local/tex/latex/$TEXINPUTS
which didn't work. Finally, I tried to enter the path in LaTeXTools builder settings;
("env:" {"TEXINPUTS": ".:/usr/local/texlive/texmf-local/tex/latex/TEXINPUTS"}
but for some reason, when I did this I lost the ability to compile any document.
Any pointers greatly welcomed!
:
in("env:" {"TEXINPUTS": ".:/usr/local/texlive/texmf-local/tex/latex/TEXINPUTS"}
otherwise you not only add your directory, you remove all the standard places. similarly your export should have no$
and should have a:
soexport TEXINPUTS=.:/usr/local/texlive/texmf-local/tex/latex/TEXINPUTS:
or if the issue is the symlink use/Users/nickriches/Dropbox/TEXINPUTS
instead ofusr/local/texlive/texmf-local/tex/latex/TEXINPUTS
? – David Carlisle Jun 20 '20 at 10:14~/Library/texmf/tex/latex
? – Herb Schulz Jun 20 '20 at 12:38