TEX looks for files via paths which are defined by environment variables.
If the variables are not set, default values are used. Note that usually
the current directory (.) is searched first.
The values can be reset by a CLI shell which supports environment
variables. Note directory separator is `;'. I had trouble including ;
in the setenv command of GULAM. The variables are:
- TEXFORMATS
- default .;/TEX – FMT files here
- TEXINPUTS
- default .;/TEX/INPUTS – user input files and style files
- TEXFONTS
- default .;/TEX/TFM – font metric files (TFM)
- TEXPOOL
- default .;/TEX – file TEX.POOL here used only by INITEX
TeX doesn't like backslashes in file names so they are entered as `/'
(as in UNIX) and translated. If you put a / as first character of filename
or : as second character the program doesn't look at the environment
variable TEXINPUTS, it uses the exact name you entered.eg.
TEX /mydir/test
or
TEX d:test
Note that the .TEX extension is optional for input file names.