Adam Lindsay wrote:
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,}//
there is also code like: if (($UseEnginePath)&&($EngineDone)) { $FormatPath = `$kpsewhich --engine=$EnginePath --show-path=fmt` ; } else { $FormatPath = `$kpsewhich --show-path=fmt` ; } what does --show-path=fmt reports? ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl -----------------------------------------------------------------