[OS X TeX] Is this geometry behavior correct?

Bruno Voisin bvoisin at mac.com
Fri Apr 6 03:32:49 EDT 2007


Le 6 avr. 07 à 02:23, Herbert Schulz a écrit :

> I've got two geometry.cfg files in the TeX distribution I'm using  
> (gwTeX). One is only ``seen'' when you are running xelatex (i.e.,  
> it is in the .../tex/xelatex/... branch of the tree which is not  
> searched when using (pdf)latex) and the other is in the .../doc/...  
> branch; so there is no geometry.cfg file when using latex+etc. or  
> pdflatex.

I don't think that's true:

$ texdist --texdist=TeXLive-2007 "kpsewhich --engine=latex geometry.cfg"
/usr/local/texlive/2007/texmf-dist/tex/xelatex/xetexconfig/geometry.cfg
$ texdist --texdist=TeXLive-2007 "kpsewhich --engine=pdflatex  
geometry.cfg"
/usr/local/texlive/2007/texmf-dist/tex/xelatex/xetexconfig/geometry.cfg
$ texdist --texdist=gwTeX "kpsewhich --engine=latex geometry.cfg"
/usr/local/gwTeX/texmf.texlive/tex/xelatex/xetexconfig/geometry.cfg
$ texdist --texdist=gwTeX "kpsewhich --engine=pdflatex geometry.cfg"
/usr/local/gwTeX/texmf.texlive/tex/xelatex/xetexconfig/geometry.cfg

So it seems the XeLaTeX-tailored geometry.cfg is read in all cases.

I'm not sure the following is correct invocation of kpsewhich, but  
with "kpsewhich --engine=latex --show-path=tex" here's what I get  
(slightly reformatted) with TeXLive-2007:

.
~/.texlive2007/texmf-config/tex/kpsewhich//
~/.texlive2007/texmf-var/tex/kpsewhich//
~/Library/texmf/tex/kpsewhich//
!!/usr/local/texlive/2007/texmf-config/tex/kpsewhich//
!!/usr/local/texlive/2007/texmf-var/tex/kpsewhich//
!!/usr/local/texlive/2007/texmf/tex/kpsewhich//
!!/usr/local/texlive/2007/../texmf-local/tex/kpsewhich//
!!/usr/local/texlive/2007/texmf-dist/tex/kpsewhich//
~/.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///

and with gwTeX:

.
~/Library/texmf/tex/kpsewhich//
!!/usr/local/gwTeX/texmf.local/tex/kpsewhich//
!!/usr/local/gwTeX/texmf.pkgs/tex/kpsewhich//
!!/usr/local/gwTeX/texmf.gwtex/tex/kpsewhich//
!!/usr/local/gwTeX/texmf.texlive/tex/kpsewhich//
!!/usr/local/gwTeX/texmf/tex/kpsewhich//
~/Library/texmf/tex/generic//
!!/usr/local/gwTeX/texmf.local/tex/generic//
!!/usr/local/gwTeX/texmf.pkgs/tex/generic//
!!/usr/local/gwTeX/texmf.gwtex/tex/generic//
!!/usr/local/gwTeX/texmf.texlive/tex/generic//
!!/usr/local/gwTeX/texmf/tex/generic//
~/Library/texmf/tex///
!!/usr/local/gwTeX/texmf.local/tex///
!!/usr/local/gwTeX/texmf.pkgs/tex///
!!/usr/local/gwTeX/texmf.gwtex/tex///
!!/usr/local/gwTeX/texmf.texlive/tex///
!!/usr/local/gwTeX/texmf/tex///

I don't really understand the logic behind the ordering with which  
the various texmf trees are searched in the TeXLive case, but from  
the above it seems that, among these trees:

- tex/kpsewhich is searched first

- tex/generic second

- tex third

and that the existence of latex and xelatex subdirectories within the  
tex directory is of no importance whatsoever. I'm surprised, as I  
thought this used to be different.

Bruno Voisin

------------------------- Helpful Info -------------------------
Mac-TeX Website: http://www.esm.psu.edu/mac-tex/
TeX FAQ: http://www.tex.ac.uk/faq
List Archive: http://tug.org/pipermail/macostex-archives/
List Reminders & Etiquette: http://www.esm.psu.edu/mac-tex/list/





More information about the MacOSX-TeX mailing list