[tex-k] ~ expansion in TEXMFLOCAL from Knuth

Thomas Esser te at dbs.uni-hannover.de
Sun Apr 10 13:20:09 CEST 2005


Hi,

I have found the bug. Interestingly, if one compares TEXMFLOCAL / TEXMFHOME, there
is a difference:

  $ TEXMFHOME='~/sunburn/texmf' kpsewhich cmrfunny.tfm
  /home/te/sunburn/texmf/fonts/tfm/foo/baa/cmrfunny.tfm

  $ TEXMFLOCAL='~/sunburn/texmf' kpsewhich cmrfunny.tfm

The difference is the use of the !! prefix in the TEXMF definition:
  TEXMF = {...,$TEXMFHOME,...,!!$TEXMFLOCAL,...}

Finally, I have found that kpse_tilde_expand() in tilde.c does not expand
a tilde in an element such as
  !!~/sunburn/texmf/fonts/tfm//
because of

  /* If no leading tilde, do nothing.  */
  if (*name != '~') {

So, this code has to be rewritten to take care of the !! prefix.

Thomas



More information about the tex-k mailing list