Hans Hagen said this at Fri, 27 May 2005 01:29:30 +0200:
well, this magic line will append web2c/{$ENGINE,} to each path,
Okay, that's part of the problem: your code isn't detecting the presence of $ENGINE in my path... It's there already! (Thanks, Gerben.) The line from texmf.cnf: TEXFORMATS = .;$TEXMF/web2c/{$engine,}// However: % kpsewhich --expand-var=\$TEXFORMATS .:{/Users/atl/Library/texmf,!!/usr/local/teTeX/share/texmf.local, !!/usr/local/teTeX/share/texmf.gwtex,!!/usr/local/teTeX/share/texmf.tetex, !!/usr/local/teTeX/share/texmf}/web2c/{,}// ^^^ But: % kpsewhich --engine=pdfetex --expand-var=\$TEXFORMATS .:{/Users/atl/Library/texmf,!!/usr/local/teTeX/share/texmf.local, !!/usr/local/teTeX/share/texmf.gwtex,!!/usr/local/teTeX/share/texmf.tetex, !!/usr/local/teTeX/share/texmf}/web2c/{pdfetex,}// ^^^^^^^
including the share/texmf.local path so i'm puzzled; one complication is that kpse is not able to report the path that will be used (probably for good reason); so the format should end up in:
!!/usr/local/teTeX/share/texmf.local/web2c/pdfetex/cont-en.fmt
could it be that the /{,}// is playing tricks? can you try to add
$texformats =~ s/\{\,\}\/\/// ;
Tried that. Didn't change anything.
i.e. get rid of the trailing crap so that th eend looks like /web2c/ {$ENGINE,}/
can you check at what value texexec sets $ENGINE ?
erm, it didn't seem to be set at that function.
(setting TEXFORMATS at the shell level will also work; that is what i normally have)
I've done that too, but I haven't been able to get that to work correctly with multiple engines (problem in when the variables get expanded?)... it probably would work for me with this current texexec snapshot.
watch this mix of teTeX and tetex and Users and Library vs share; if i would not know better, i'd think it was a blob of tricky perl code -)
:) It's just Gerben being clever and convenient w/r/t directory structure for Mac users--all legitimate. adam -- =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= Adam T. Lindsay, Computing Dept. atl@comp.lancs.ac.uk Lancaster University, InfoLab21 +44(0)1524/510.514 Lancaster, LA1 4WA, UK Fax:+44(0)1524/510.492 -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-