[tex-live] $TEXMFHOME not working right

George N. White III gnwiii at gmail.com
Fri May 14 13:51:07 CEST 2010


On Fri, May 14, 2010 at 8:28 AM, Joel C. Salomon <joelcsalomon at gmail.com> wrote:
> On 05/14/2010 12:13 AM, Norbert Preining wrote:
>> On Do, 13 Mai 2010, Joel C. Salomon wrote:
>>> I looked for an option in tlmgr for $TEXMFHOME (I vaguely recall such an
>>> option in the installer?) but could not find it.
>>>
>>> Is there a configuration file to edit to fix this?
>>
>> TEXMFHOME is searched for without ls-R files present.
> <snip>
>> It shoujld work.
>>
>> Can you send the output of
>>       tlmgr conf
>> please?
>
> The relevant lines are:
>
> ======== version information =======
> tlmgr revision 18011 (2010-04-26 21:41:33 +0200)
> tlmgr using installation: /opt/texlive/2009
> TeX Live (http://tug.org/texlive) version 2009
>> ======== kpathsea variables ========
>> TEXMFHOME=/home/chesky/texmf
> VARTEXFONTS=/home/chesky/.texlive2009/texmf-var/fonts
> TEXMF={/home/chesky/.texlive2009/texmf-config,/home/chesky/.texlive2009/texmf-var,/home/chesky/texmf,!!/opt/texlive/2009/texmf-config,!!/opt/texlive/2009/texmf-var,!!/opt/texlive/2009/texmf,!!/opt/texlive/2009/../texmf-local,!!/opt/texlive/2009/texmf-dist}
> SYSTEXMF=/opt/texlive/2009/texmf-var:/opt/texlive/2009/texmf:/opt/texlive/2009/../texmf-local:/opt/texlive/2009/texmf-dist
> TEXMFDBS={!!/opt/texlive/2009/texmf-config,!!/opt/texlive/2009/texmf-var,!!/opt/texlive/2009/texmf,!!/opt/texlive/2009/../texmf-local,!!/opt/texlive/2009/texmf-dist}
>>
> I’ve attached the full output in case I missed something pertinent.
>
> (BTW, it complained of “missing finding of XDvi, config!”.)
>
> I’m trying to play with the development versions of fontspec &c., so I
> installed fontspec.sty [2010/05/14 v2.0 …] (and the .cfg & .lua) in
> /home/chesky/texmf/tex/latex/fontspec.  I even get this result:
>
> chesky at derrial:~$ kpsewhich -all fontspec.sty
> /home/chesky/texmf/tex/latex/fontspec/fontspec.sty
> /opt/texlive/2009/texmf-dist/tex/xelatex/fontspec/fontspec.sty
> chesky at derrial:~$ kpsewhich fontspec.sty
> /home/chesky/texmf/tex/latex/fontspec/fontspec.sty
>
> But when I try to typeset the documentation for the development version
> of xltxtra, I get:
>
> chesky at derrial:~/Downloads/wspr/xltxtra$ xelatex xltxtra.dtx
> This is XeTeX, Version 3.1415926-2.2-0.9995.2 (TeX Live 2009)
>> LaTeX Warning: You have requested, on input line 28, version
>               `2010/05/14 v2.0' of package fontspec,
>               but only version
>               `2008/08/09 v1.18 Advanced font selection for XeLaTeX'
>               is available.
>>
> Why is the system not preferring my locally-installed version?
>
> —Joel Salomon

Because when running xelatex, the xelatex paths are searched first
(here I have duplicated your HOMETEXMF layout):

$ kpsewhich -all fontspec.sty
/Users/gwhite/Library/texmf/tex/latex/fontspec/fontspec.sty
/usr/local/texlive/2009/texmf-dist/tex/xelatex/fontspec/fontspec.sty
$ kpsewhich fontspec.sty
/Users/gwhite/Library/texmf/tex/latex/fontspec/fontspec.sty

but, if you tell kpsewhich to search for xelatex thingies:

$ kpsewhich -progname=xelatex fontspec.sty
/usr/local/texlive/2009/texmf-dist/tex/xelatex/fontspec/fontspec.sty

When adding updated versions of files that exist under texmf-dist, the
general rule is to copy the same directory structure, so you should
be using "/home/chesky/texmf/tex/xelatex/fontspec/fontspec.sty".

-- 
George N. White III <aa056 at chebucto.ns.ca>
Head of St. Margarets Bay, Nova Scotia



More information about the tex-live mailing list