I'm venturing into writing my own packages, but LaTeX is not finding them.
I working on a iMac OS X, but I don't want to use TEXMFHOME=~/Library/texmf. I would like to put my packages in a different directory: for the sake of this post let's call it ~/private/texmf.
My TEXINPUTS is set as TEXINPUTS=.:~/private/texmf//: and works perfectly well for standard .tex files. But when I place a new .sty file in these directories, LaTeX complains that they can't be found.
I've tried numerous things. The two most notable are:
- Setting
TEXMFHOME=~/private/texmf:~Library/texmf - Setting
TEXMFHOME=~/private/texmf
Both times, I've entered ~/private/texmf and run sudo texhash to update everything (I've never had to do this before). I've moved to the directory in which my packages are located ~/private/texmf/tex/latex/packages/ and called texhash again. All to no avail.
I've search the web and this site for clues about what to do:
Where do I place my own .sty files, to make them available to all my .tex files?
How to access style files in texlive-publishers from Kile
What's mentioned above is what seemed to be suggested at various different sites. Nothing's working.
Help.
texhashto update your TDS? – Werner Jun 19 '13 at 02:18mktexlsr; I'm not suretexhashis still supported/active. TDS refers to your TeX Directory Structure. – Werner Jun 19 '13 at 02:20mktexlsrortexhash? – Werner Jun 19 '13 at 02:33mktexlsr. – A.Ellett Jun 19 '13 at 02:34mktexlsr(perhaps formerly known astexhash, not sure), is a procedure that updates a reference list to your TDS. This reference list is searched when looking for packages that are not located in the root folder where your source document resides. – Werner Jun 19 '13 at 02:39TEXMFHOMEis that you don't need to usemktexlsrwhen you add a new file. I'm kind of surprised, in fact, that there isn't a way to make your new location automatically searched just as~/texmf(or, I think,~/Library/texmf) is. – jon Jun 19 '13 at 03:37ln -st ~/texmf/tex/latex/ ~/private/texmf. (Note: I assume these are personal latex files.) – jon Jun 19 '13 at 04:13~/Library/texmf– Alan Munn Jun 19 '13 at 11:31texmfdirectory to accurately reflect what's in it, and so separate links to each package directory (not each file) is more transparent than a single link to the other directory. – Alan Munn Nov 18 '13 at 15:22