exit partial port for PC-DOS

A Partial Setup for PC-DOS Environments

  1. Establish a directory `C:/tex4ht.dir'.

  2. Download the following files to `~/tex4ht.dir'.

    1. TeX4ht.sty
    2. tex4ht.exe
    3. tex4ht.env
    4. ht.bat
    5. cmcsc.htf
    6. cmex.htf
    7. cmmi.htf
    8. cmr.htf
    9. cmsy.htf
    10. cmti.htf
    11. cmtt.htf
    12. lasy.htf
    13. lcircle.htf
    14. line.htf
    15. manfnt.htf
    16. logo.htf

  3. Add `C:\tex4ht.dir' to your path variable in `C:\AUTOEXEC.BAT'.

  4. Replace the substring `c:\emtex\tfm' of `tc:\emtex\tfm!' in `tex4ht.env' with the path to the directory where the `tfm' fonts of Tex and LaTeX reside, if it differs from `c:\emtex\tfm'.

  5. As it stands now, your environment will not produce the pictures needed for the html files. Once you establish an utility named, say `dvitogif.bat', for translating the i'th page (`%%2') of a `.dvi' file (`%%1.ivd') to a figure (`%%3'), all you'll need to do to get the pictures is just replace the line `sECHO Missing conversion: page %%2 of %%1.ivd to %%3' with a line similar to `sdvitogif %%1.ivd %%2 %%3'.

  6. If `ht.bat' ' has been downloaded in binary mode, manually restore the line breaks there (for instance, with notepad).

  7. Download test.tex to your work directory.

  8. Insert the definition `\let\DOS=Y' at the start of `test.tex'.

  9. Compile `test.tex' with the command `ht tex test' or `ht latex test'. In consecutive compilations, you might need to first call with the command `clean' a batch file `clean.bat' created during the first compilation of `test.tex', for removing intrusive files from your work directory.

    The test file produces TeX or LaTeX files, batch (.bat) files, and other files with uncommon names. Yet, to ensure that files with sensitive data are not lost, remove from the work directory all the files you want to protect.

    If you want to invoke TeX or LaTeX with a command `mytex' or `mylatex' that differs from `tex' and `latex', respectively, then insert at the start of `test.tex' the code `\def\CALL{{mytex}{mylatex}}'.

  10. You might want to compare your output with the sample output provided here for TeX and LaTeX.