XeTeX 0.9 : \usepackage[xetex]{graphicx}

Bruno Voisin bvoisin at mac.com
Fri Feb 25 19:00:30 CET 2005


Le 25 févr. 05, à 18:19, Yves Codet a écrit :

> Le 25 févr. 05, à 09:13, Bruno Voisin a écrit :
>
>>> BTW, with XeTeX 0.9 (with the i-Installer install), texmf.cnf needs 
>>> to be changed to reflect the changes in the XeTeX tree:
>>>
>>> TEXINPUTS.xelatex = .;$TEXMF/{xetex,tex}/{xetex,latex,generic,}//
>>>
>>> must be changed to
>>>
>>> TEXINPUTS.xelatex = .;$TEXMF/{xetex,tex}/{xelatex,latex,generic,}//
>>>
>>> Namely, change at least the second xetex to xelatex.
>>
>> But when that is done, people also need to change the organization of 
>> their custom XeTeX directories, inside 
>> /usr/local/teTeX/share/texmf.local or ~/Library/texmf, where they 
>> have possibly installed fontspec.sty, utf8accents.sty, local 
>> graphics.cfg and color.cfg containg \ExecuteOptions{xetex}, etc., to 
>> reflect the new search path.
>
> I just installed XeTeX 0.9 and apparently everything is found (among 
> other things "fontspec" and "utf8accents") without my having to edit 
> "texmf.cnf", but I'll do it if you recommend it.

No, certainly not, I'm no authority on the matter, I very often speak 
too fast and tell mistakes.

> I'm afraid I don't understand the above code ("TEXINPUTS.xelatex = 
> .;$TEXMF/{xetex,tex}/{xelatex,latex,generic,}//").

It tells where xelatex, when run, searches for its input files. Gerben 
Wierda explains this very pedagogically in 
/Library/teTeX/share/texmf.gwtex/README.howtexfindsfiles.txt; see also 
/Library/teTeX/share/texmf.tetex/doc/programs/kpathsea.pdf.

Gerben gives a one-line CLI instruction for expanding the above 
variable:

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

which gives indications how the braces are expanded, starting from the 
highest level:

	.:
	/Users/brunovoisin/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/brunovoisin/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/brunovoisin/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/brunovoisin/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/brunovoisin/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/brunovoisin/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/brunovoisin/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/brunovoisin/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///

Without redefining TEXINPUTS.xelatex, the subdirectory 
texmf/tex/xelatex would not be searched, and texmf/tex/xetex would be 
searched instead, I think. But again, I'm no authority.

> Would it be possible to have a description of what the tree in 
> ~/Library/texmf should look like?

The above should explain this a bit, and 
/Library/teTeX/share/texmf.tetex/doc/help/tds.dvi should be helpful as 
well. In short, mimic the structure of 
/Library/teTeX/share/texmf.local.

> Another ignorant question: can "osxenc" package be discarded now?

I think that has been incorporated inside fontspec by now.

Hope this helps,

Bruno Voisin



More information about the XeTeX mailing list