exit

### Placement of the Environment File

The tex4ht.c and t4ht.c programs retrieve the information about their platform from an environment ﬁle. The programs search the ﬁle at the following locations, in the given order.

- The address speciﬁed within the command lines of tex4ht and t4ht, and identiﬁed there by the preﬁx ‘-e’.
- The address tex4ht.env in the work directory.
- At the location speciﬁed by an optional environment variable named TEX4HTENV.
- The address tex4ht.env in the root directory.
- The address provided in the variable ENVFILE of tex4ht and t4ht during compilation.
- At the directories of kpathsea, to be searched by that utility, if the tex4ht.c and t4ht.c programs are compiled with the ‘-DKPATHSEA’ switch on.

  For instance,

  gcc -o tex4ht tex4ht.c -DENVFILE=’"~/tex4ht.dir/texmf/tex4ht/base/unix/tex4ht.env"’ -DKPATHSEA -DHAVE_DIRENT_H -lkpathsea

  or

  gcc -O2 -DKPATHSEA -I/usr/local/teTeX/include -L/usr/local/teTeX/lib -o tex4ht tex4ht.c -DHAVE_DIRENT_H -lkpathsea

  When the address of tex4ht.env is not explicitly given, the texmf.cnf ﬁle might need records similar to the following ones.

  TEX4HTFONTSET=alias,iso8859
  TEX4HTINPUTS=.;$TEXMF/tex4ht/base//;$TEXMF/tex4ht/ht-fonts/{$TEX4HTFONTSET}//
  T4HTINPUTS=.;$TEXMF/tex4ht/base//

A given address may start with the character ‘~’. This character is interpreted to be the directory address of the root (as provided in an environment variable named HOME).

The ﬁle tex4ht.env may be renamed to ‘.tex4ht’, if your system allows names consisting only of the extension part.