C:\tex4ht
'. C:\tex4ht
' to your path variable in `C:\AUTOEXEC.BAT
'. tex4ht
directory.
ht.tab
to ht.bat
. tex4ht.sty
' and `*.4ht
' within the LaTeX/TeX tree (either by moving the files to a directory which
already has sty files, or by modifying the TEXINPUTS parameter to point also to the directory of these
files).
tex4ht.env
the lines starting with the character `t
', with alternative lines which state what directories
should be searched for the tfm files of TeX and LaTeX. The directory names must be preceded with the character `t
'
at the first column. If their subdirectories are also to be searched, the names should be appended with the character
`!
'.
Hc:\tex4ht\
' in tex4ht.env
indicates the absolute address of the directory where the file htfcss.env
resides. Modify that entry to fit your platform.
dc:\tex4ht.dir\
' of tex4ht.env
indicates the directory where the file tex4ht.fls should reside. Modify that entry to fit your platform. The character `d
' should precede the address, and be
placed at the first column. If this entry is omitted, the work directory is assumed.
tex4ht.env
contains the following default script, of calls to system utilities for translating dvi pictures into
gif.
GDEL tex4ht.ps Gdvips32 -mode ibmvga -D 110 -f %%1 -pp %%2 -o tex4ht.ps GDEL %%3 Gconvert -crop 0x0 -density 110x110 -transparency #FFFFFF tex4ht.ps %%3
You may need to replace this script with an alternative sequence of system calls. In such a case, place one command per line, and mark each of these lines with the character `G
'
at the first column.
The %%1
is a parameter referring to a dvi file, the %%2
is a parameter indicating a page number, and the %%3
is a
parameter standing for an output file name.
The dvips32 utility translates dvi files into postscript. The convert
utility, provided within the distribution of
ImageMagick, translates postscript files into gif.
The script employs the Metafont mode `ibmvga
' of resolution `110
'; the available modes are listed in file
modes.mf
of Metafont.
Mmove /y %%1 %%2%%3
', and `Ccopy /y %%1 %%2%%3
' in tex4ht.env
with
alternative scripts for moving and copying files. The parameter %%1
stands for the source file(s), the
parameter %%2
provides the target directory name, and the parameter %%3
refers to the target file
name(s).
Achmod %%1 %%2%%3
' in tex4ht.env
with alternative script for changing access
mode of files. The parameter %%1
stands for access mode, the parameter %%2
refers to a directory name, and the
parameter %%3
refers to the file(s).
test.tex
to your work directory, uncomment the second line `% \let\PC=Y
' within test.tex
, and compile
the file with the command `ht tex test
' or `ht latex test
'.
If you use commands different than tex
or latex
for compiling source files, uncomment the first line `%
\def\CALL{{tex}{latex}}
' and place there the correct command names. For short extension names, uncomment
the third line `% \let\DOS=Y
'.
You might want to compare your output with the sample output provided in this document for TeX and LaTeX.