Dear Haris (or whomever else!),
The latest SVN versions of the latex bundles don't seem to respect the value of TEXINPUTS. Instead, the bundle has the lines
# Add our tex directory to the TEXINPUTS variable so e.g. pdfsync is found (even when the user hasn’t installed it) # preceeding colon stands for default search paths. Search them first so if user installed pdfsync it'll use that one export TEXINPUTS=":$TM_BUNDLE_SUPPORT/tex//"
The problem is that this doesn't actually *add* to the TEXINPUTS; it overwrites it.
It should probably be something like export TEXINPUTS=":${TEXINPUTS}:$TM_BUNDLE_SUPPORT/tex//"
but with some better shell-substitution to take care of possible previous values or lack thereof for TEXINPUTS.
Yours,
Andrew
Hi Andrew On Feb 2, 2007, at 4:16 AM, Andrew Jaffe wrote:
Dear Haris (or whomever else!),
The problem is that this doesn't actually *add* to the TEXINPUTS; it overwrites it.
Yes thanks for noticing that, it was an oversight that went unnoticed for so long since I don't actually use TEXINPUTS.
It should probably be something like export TEXINPUTS=":${TEXINPUTS}:$TM_BUNDLE_SUPPORT/tex//"
Actually it should probably be:
export TEXINPUTS="$(kpsewhich -progname "$TEX" --expand-var '$TEXINPUTS'):$TM_BUNDLE_SUPPORT/tex//"
since unless I've mistaken TEXINPUTS is not necessarily set in the shell, but only when the various tex programs are run. Or perhaps I'm mistaken, anyway I've maid the above change just now, let me know if it works out.
but with some better shell-substitution to take care of possible previous values or lack thereof for TEXINPUTS.
Yours,
Andrew
Haris