I was trying out Will Robertson's answer to this question and couldn't get it to compile correctly. Chasing through the log output, it seems that an old version of a package is getting loaded instead of a new one.
In slightly more detail, the package I was trying to test (unicode-math
) said that it needed the most up-to-date versions of a couple of packages (the crucial one here seems to be fontspec
). So, I downloaded them and put them in to my user texmf
tree. However, when I compile the test file, the system one is loaded. This is despite the fact that the requesting file specifies a version later than that provided for by the system version, and the fact that when I do
kpsewhich
fontspec.sty
then my version is returned.
MWE:
TeX Live 2009 (TeX Live 2010 has the right versions of the packages, but 2009 is what comes with my distribution) with unicode-math
, fontspec
, expl3
, and xpackages
from CTAN (as per the page on unicode-math
).
test.tex
:
\documentclass{article}
\usepackage{unicode-math}
\begin{document}
\end{document}
both
xelatex test.tex
lualatex test.tex
complain. The complaint appears later when loading some fonts, but given that the wrong fontspec
package is loaded, I'm guessing that the error lies there rather than when TeX actually complains. To confirm locations:
tmp% kpsewhich fontspec.sty
/home/astacey/texmf/tex/latex/bzr/unmodified/fontspec/fontspec.sty
But the output from TeX (slightly condensed):
tmp% xelatex test.tex
This is XeTeX, Version 3.1415926-2.2-0.9995.2 (TeX Live 2009/Debian)
restricted \write18 enabled.
entering extended mode
(./test.tex
...
(/home/astacey/texmf/tex/latex/bzr/unmodified/unicode-math/unicode-math.sty
...
(/home/astacey/texmf/tex/latex/bzr/unmodified/xpackages/xparse.sty)
(/home/astacey/texmf/tex/latex/bzr/unmodified/xpackages/l3keys2e.sty)
(/usr/share/texmf-texlive/tex/xelatex/fontspec/fontspec.sty
...
Note that some packages are getting pulled from my local texmf
tree, it's just this one that isn't.