On a Windows XP machine, I'm trying to switch from MiKTex 2.9 to TeX Live 2011.
I just installed texlive from the iso DVD image to the directory "C:\apps\texlive".
I have a latex file "tst.tex" in a directory "E:\latex\tst".
Contents of tst.tex:
\input defaults
\documentclass[11pt]{article}
\begin{document}
Hello world!
\end{document}
The file "defaults.tex" contains some settings and it resides in the directory "E:\latex\inc".
To build "tst.dvi" I have a batch file "bld.bat" residing in the same directory as "tst.tex" with the following contents:
@echo off
set path=C:\apps\texlive\bin\win32
latex.exe -halt-on-error tst.tex >nul
pause
Of course it fails since texlive has no idea where to find "defaults.tex".
In MiKTex, I would use the command line option
--include-directory E:\latex\inc
but it appears that texlive has no such command line option.
I need to somehow tell texlive to look for input files in some central common subdirectory of "E:\".
I very much want to avoid hard-coding the full path for "defaults.tex".
I can make whatever subdirectories of "E:\" are needed, and I can edit bld.bat to set any needed environmental variables.
I would prefer not to make any permanent changes to texlive settings or to the contents of any texlive directories.
How can I resolve this problem?
Thanks in advance.
Update:
As a possible alternative, is it possible to set an environmental variable in my bld.bat file which will tell texlive that my home directory is somewhere on the E: drive, and based on that setting, is there a subdirectory where texlive will automatically search for input files?