[XeTeX] xetex needs testfontavailability file???

Bruno Voisin bvoisin at mac.com
Wed Jul 11 16:54:38 CEST 2007


Le 11 juil. 07 à 16:18, Abdorrahman Manian a écrit :

> Now another question, where can (or should) I copy this file for  
> using it I mean some directories (in xetex path) for placing such  
> scripts??

A possibility:

1) Type in "kpsewhich texmf.cnf" to locate texmf.cnf on your setup,  
then open this file in a text editor.

2) Within this file, TEXMFLOCAL defines the directory where you  
should put system-wide additions to your TeX distribution, and  
TEXMFHOME the directory where you should put user-specific additions.  
(By system-wide I mean the additions visible from all account on a  
given computer, and by user-specific I mean the additions visible  
only from your user account.) Choose whichever is more appropriate in  
your case.

3) Within the directory you choose, put testfontavailability.tex  
within a subdirectory tex/generic/ then run mktexlsr (prefaced by  
sudo if needed).

4) Just to be sure, verify the directory is present within the output  
of both:

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

(There may be similar precautions to take for ConTeXt, but given I'm  
not using it I cannot help here.)

Here's what I get on my Mac with a MacTeX/TeXLive-2007 installation,  
slightly reformatted for readability:

theo9mc182:~ bvoisin$ kpsewhich --progname=xetex --show-path=tex
.
~/.texlive2007/texmf-config/tex/xetex//
~/.texlive2007/texmf-var/tex/xetex//
~/Library/texmf/tex/xetex//
!!/usr/local/texlive/2007/texmf-config/tex/xetex//
!!/usr/local/texlive/2007/texmf-var/tex/xetex//
!!/usr/local/texlive/2007/texmf/tex/xetex//
!!/usr/local/texlive/2007/../texmf-local/tex/xetex//
!!/usr/local/texlive/2007/texmf-dist/tex/xetex//
~/.texlive2007/texmf-config/tex/plain//
~/.texlive2007/texmf-var/tex/plain//
~/Library/texmf/tex/plain//
!!/usr/local/texlive/2007/texmf-config/tex/plain//
!!/usr/local/texlive/2007/texmf-var/tex/plain//
!!/usr/local/texlive/2007/texmf/tex/plain//
!!/usr/local/texlive/2007/../texmf-local/tex/plain//
!!/usr/local/texlive/2007/texmf-dist/tex/plain//
~/.texlive2007/texmf-config/tex/generic//
~/.texlive2007/texmf-var/tex/generic//
~/Library/texmf/tex/generic//
!!/usr/local/texlive/2007/texmf-config/tex/generic//
!!/usr/local/texlive/2007/texmf-var/tex/generic//
!!/usr/local/texlive/2007/texmf/tex/generic//
!!/usr/local/texlive/2007/../texmf-local/tex/generic//
!!/usr/local/texlive/2007/texmf-dist/tex/generic//
~/.texlive2007/texmf-config/tex///
~/.texlive2007/texmf-var/tex///
~/Library/texmf/tex///
!!/usr/local/texlive/2007/texmf-config/tex///
!!/usr/local/texlive/2007/texmf-var/tex///
!!/usr/local/texlive/2007/texmf/tex///
!!/usr/local/texlive/2007/../texmf-local/tex///
!!/usr/local/texlive/2007/texmf-dist/tex///

theo9mc182:~ bvoisin$ kpsewhich --progname=xelatex --show-path=tex
.
~/.texlive2007/texmf-config/tex/xelatex//
~/.texlive2007/texmf-var/tex/xelatex//
~/Library/texmf/tex/xelatex//
!!/usr/local/texlive/2007/texmf-config/tex/xelatex//
!!/usr/local/texlive/2007/texmf-var/tex/xelatex//
!!/usr/local/texlive/2007/texmf/tex/xelatex//
!!/usr/local/texlive/2007/../texmf-local/tex/xelatex//
!!/usr/local/texlive/2007/texmf-dist/tex/xelatex//
~/.texlive2007/texmf-config/tex/latex//
~/.texlive2007/texmf-var/tex/latex//
~/Library/texmf/tex/latex//
!!/usr/local/texlive/2007/texmf-config/tex/latex//
!!/usr/local/texlive/2007/texmf-var/tex/latex//
!!/usr/local/texlive/2007/texmf/tex/latex//
!!/usr/local/texlive/2007/../texmf-local/tex/latex//
!!/usr/local/texlive/2007/texmf-dist/tex/latex//
~/.texlive2007/texmf-config/tex/generic//
~/.texlive2007/texmf-var/tex/generic//
~/Library/texmf/tex/generic//
!!/usr/local/texlive/2007/texmf-config/tex/generic//
!!/usr/local/texlive/2007/texmf-var/tex/generic//
!!/usr/local/texlive/2007/texmf/tex/generic//
!!/usr/local/texlive/2007/../texmf-local/tex/generic//
!!/usr/local/texlive/2007/texmf-dist/tex/generic//
~/.texlive2007/texmf-config/tex///
~/.texlive2007/texmf-var/tex///
~/Library/texmf/tex///
!!/usr/local/texlive/2007/texmf-config/tex///
!!/usr/local/texlive/2007/texmf-var/tex///
!!/usr/local/texlive/2007/texmf/tex///
!!/usr/local/texlive/2007/../texmf-local/tex///
!!/usr/local/texlive/2007/texmf-dist/tex///

You'll see that, as a rule, xetex searches directories:

texmf/tex/xetex/ for all texmf trees
texmf/tex/plain/ for all texmf trees
texmf/tex/generic/ for all texmf trees
texmf/tex/ for all texmf trees

and xelatex searches:

texmf/tex/xelatex/ for all texmf trees
texmf/tex/latex/ for all texmf trees
texmf/tex/generic/ for all texmf trees
texmf/tex/ for all texmf trees

Hope this helps,

Bruno Voisin


More information about the XeTeX mailing list