[XeTeX] xelatex and geometry

Bruno Voisin bvoisin at mac.com
Wed Mar 26 19:34:12 CET 2008


Le 26 mars 08 à 19:04, Manuel Pégourié-Gonnard a écrit :

> Hum, my question is certainly stupid, but I can't help wondering: if  
> the file
> is in /tex/xelatex, when it is found we already know that we are  
> running
> XeTeX, aren't we? So, why the \@ifundefined{XeTeXversion}?

geometry.cfg from tex/xelatex/ is found because there is no  
geometry.cfg otherwise in TeXLive-2007. After not finding anything in  
tex/latex/, the whole of tex/ is searched which leads finally to tex/ 
xelatex/.

Try for example "kpsewhich --show-path=.tex --progname=pdflatex" to  
see in which order directories are searched. Here on the Mac I get  
(with minor editing):

$ kpsewhich --show-path=.tex --progname=pdflatex | tr : '\n'
.
~/.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///

implying that tex/latex is searched first, then tex/generic/, then  
tex/. This corresponds to the setting, in texmf.cnf:

TEXINPUTS.pdflatex      = .;$TEXMF/tex/{latex,generic,}//

Bruno Voisin


More information about the XeTeX mailing list