[XeTeX] ~/Library/texmf/tex/...?

Jonathan Kew jonathan_kew at sil.org
Sun Feb 19 23:59:14 CET 2006

On 19 Feb 2006, at 7:14 pm, Stephen Moye wrote:

> I'm not sure that I understand the change that seems to have  
> occurred with XeTeX 0.99, fontspec 1.9 and the most recent version  
> of xkeyval.
> At some point in the not too distant past I was putting all (xe) 
> latex items in ~/Library/texmf/tex/latex, and everything seemed to  
> work without a problem. Now, unless xkeyval is in ~/Library/texmf/ 
> tex/xelatex, fontspec seems not to work. Is there now a requirement  
> for this directory? What should be put in it?
> Thanks for any insights...

I'm not sure if there was a specific change in the software (don't  
think so); or if something changed in texmf.cnf rather than in the  
software itself (this is possible); or if there were changes in the  
other packages included with gwTeX and/or XeTeX (this is likely).

Anyhow, you can use the -kpathsea-debug option with xelatex to  
determine exactly what paths it searches for a given file. On my  
machine, the path for a .sty file is shown as:


(where !! indicates the use of an ls-R file maintained by texhash/ 
mktexlsr). These paths imply that files under ~/Library/texmf/tex/ 
latex will be searched, but only *after* locations under texmf/xetex/ 
xelatex or texmf/tex/xelatex etc. And if a file is found in the  
texmf.local tree at one of these locations, it will take precedence  
over Library/tex/latex in the home directory.

Now, given that the XeTeX installer puts fontspec.sty into  
texmf.local/tex/xelatex, this (older) version will take precedence  
over a new one you install in ~/Library/texmf/tex/latex. To ensure  
your personal copy is used, you need to move it to a "more preferred"  
path, as indicated in the list above.



More information about the XeTeX mailing list