[tex-live] Strange TEXMFHOME in TeX Live 2017 on Darwin
Yudai NAKATA
yudai.nkt at gmail.com
Thu Jul 20 07:48:11 CEST 2017
Dear all,
I noticed that TEXMFHOME is different between TL 2016 and TL 2017
although I don’t think I configured something special when installing:
$ /usr/local/texlive/2016/bin/x86_64-darwin/kpsewhich -var-value TEXMFHOME
/Users/yudai-nkt/texmf
$ !!:s/2016/2017/
/usr/local/texlive/2017/bin/x86_64-darwin/kpsewhich -var-value TEXMFHOME
/Users/yudai-nkt/Library/texmf
TEXMFHOME in TL 2016 is same as the documentation (7th paragraph in
https://www.tug.org/texlive/doc/texlive-en/texlive-en.html#x1-260003.2.3)
and
the one in TL 2017 is like MacTeX style (please note that I use
vanilla TeX Live, not MacTeX).
As Perl is Greek to me I have no idea about what install-tl is doing,
but I found some relevant part
(line numbers are just for reference):
1393 # Environment variables and default values on UNIX:
1394 # TEXLIVE_INSTALL_PREFIX /usr/local/texlive => $tex_prefix
1395 # TEXLIVE_INSTALL_TEXDIR $tex_prefix/2010 => $TEXDIR
1396 # TEXLIVE_INSTALL_TEXMFSYSVAR $TEXDIR/texmf-var
1397 # TEXLIVE_INSTALL_TEXMFSYSCONFIG $TEXDIR/texmf-config
1398 # TEXLIVE_INSTALL_TEXMFLOCAL $tex_prefix/texmf-local
1399 # TEXLIVE_INSTALL_TEXMFHOME '$HOME/texmf'
1400 # TEXLIVE_INSTALL_TEXMFVAR ~/.texlive2010/texmf-var
1401 # TEXLIVE_INSTALL_TEXMFCONFIG ~/.texlive2010/texmf-config
1434 if (platform() =~ m/darwin/) {
1435 $texmfhome ||= "~/Library";
1436 } else {
1437 $texmfhome ||= "~";
1438 }
1439 $vars{'TEXMFHOME'} = "$texmfhome/texmf";
If I run the script, however, different default values are proposed
regarding non-systemwide directories:
$ cd /path/to/install-tl && sudo ./install-tl
[...]
<D> set directories:
TEXDIR (the main TeX directory):
/usr/local/texlive/2017
TEXMFLOCAL (directory for site-wide local files):
/usr/local/texlive/texmf-local
TEXMFSYSVAR (directory for variable and automatically generated data):
/usr/local/texlive/2017/texmf-var
TEXMFSYSCONFIG (directory for local config):
/usr/local/texlive/2017/texmf-config
TEXMFVAR (personal directory for variable and automatically generated data):
~/Library/texlive/2017/texmf-var
TEXMFCONFIG (personal directory for local config):
~/Library/texlive/2017/texmf-config
TEXMFHOME (directory for user-specific files):
~/Library/texmf
[...]
I have no problem since I symlinked files to a new TEXMFHOME, but I’d
like to let you know just in case
(and also suppose contradiction between manual and actual behavior is confusing)
Best regards,
Yudai Nakata
More information about the tex-live
mailing list