[XeTeX] where to place personal style files?

Bruno Voisin bvoisin at mac.com
Wed Aug 2 11:33:30 CEST 2006


Le 2 août 06 à 10:51, John Tang Boyland a écrit :

> I'm using xelatex through texshop on MacOSX.
> /usr/local/teTeX/texmf.cnf says that TEXMF includes $HOME/Library/ 
> texmf
> but when I typeset (using xelatex), none of the files are found.
> (\usepackage{...} fails).  I even forced an ls-R file, to no avail.
> Where does xelatex look for files?

You can simply mimick the organization of /usr/local/teTeX/share/ 
texmf.local/, where the XeTeX support files are installed by default,  
yielding in your case

~/Library/texmf/tex/xelatex/

as one possibility. For ~/Library/texmf/, no texhash or mktexlsr is  
required.

In such situations, the kpsewhich utility is your friend (see chapter  
3.5 of /usr/local/teTeX/share/texmf.tetex/doc/programs/kpathsea.pdf).  
You could try, for example,

kpsewhich --progname=xelatex --show-path=.tex

to get (after some reformatting)

.
/Users/<yourusername>/Library/texmf/xetex/xelatex//
/usr/local/teTeX/share/texmf.local/xetex/xelatex//
/usr/local/teTeX/share/texmf.gwtex/xetex/xelatex//
/usr/local/teTeX/share/texmf.tetex/xetex/xelatex//
/usr/local/teTeX/share/texmf/xetex/xelatex//
/Users/<yourusername>/Library/texmf/tex/xelatex//
/usr/local/teTeX/share/texmf.local/tex/xelatex//
/usr/local/teTeX/share/texmf.gwtex/tex/xelatex//
/usr/local/teTeX/share/texmf.tetex/tex/xelatex//
/usr/local/teTeX/share/texmf/tex/xelatex//
/Users/<yourusername>/Library/texmf/xetex/latex//
/usr/local/teTeX/share/texmf.local/xetex/latex//
/usr/local/teTeX/share/texmf.gwtex/xetex/latex//
/usr/local/teTeX/share/texmf.tetex/xetex/latex//
/usr/local/teTeX/share/texmf/xetex/latex//
/Users/<yourusername>/Library/texmf/tex/latex//
/usr/local/teTeX/share/texmf.local/tex/latex//
/usr/local/teTeX/share/texmf.gwtex/tex/latex//
/usr/local/teTeX/share/texmf.tetex/tex/latex//
/usr/local/teTeX/share/texmf/tex/latex//
/Users/<yourusername>/Library/texmf/xetex/generic//
/usr/local/teTeX/share/texmf.local/xetex/generic//
/usr/local/teTeX/share/texmf.gwtex/xetex/generic//
/usr/local/teTeX/share/texmf.tetex/xetex/generic//
/usr/local/teTeX/share/texmf/xetex/generic//
/Users/<yourusername>/Library/texmf/tex/generic//
/usr/local/teTeX/share/texmf.local/tex/generic//
/usr/local/teTeX/share/texmf.gwtex/tex/generic//
/usr/local/teTeX/share/texmf.tetex/tex/generic//
/usr/local/teTeX/share/texmf/tex/generic//
/Users/<yourusername>/Library/texmf/xetex///
/usr/local/teTeX/share/texmf.local/xetex///
/usr/local/teTeX/share/texmf.gwtex/xetex///
/usr/local/teTeX/share/texmf.tetex/xetex///
/usr/local/teTeX/share/texmf/xetex///
/Users/<yourusername>/Library/texmf/tex///
/usr/local/teTeX/share/texmf.local/tex///
/usr/local/teTeX/share/texmf.gwtex/tex///
/usr/local/teTeX/share/texmf.tetex/tex///
/usr/local/teTeX/share/texmf/tex///

Hope this helps,

Bruno Voisin


More information about the XeTeX mailing list