(See also: More (in Czech))

dvi2html

dvi2html is simply utility to convert TeX's dvi-files to gifs and to include them in html files. It can be useful for those who want to put TeX-files (but not LaTeX) on Web. (For LaTeX files I advise latex2html, which uses graphics only when needed).

By now, dvi2html is installed on 2 (two) machines. It is written in perl and uses ppm-utilities dvips, dviout, dviselect. If you have installed latex2html, it should be easy to get it working. I assume you work at Unix and you have perl. (I have also ancient version which was written in csh). You need two files from me: dvi2html and pstogif.margin (last one is modified pstogif). If you have problems, or if you want to improve something, you may tell me. I will be happy to help you to install this on some other masine. My e-mail is kolar@karlin.mff.cuni.cz.
Copyright: You have to let me know that you use that (and check copyright of used parts yourself :-)

Examples:

  dvi2html file.dvi            (creates  file.1.gif, file.1.html etc. for each page and file.html as index file)
  dvi2html -ang 200 file.dvi   (text 'page' instead of 'strana', 200 dpi instead of 100dpi)
  dvi2html -nopage -title 'Some article'  file.dvi 
                               (no text as 'page', given title instead of 'file')
  dvi2html -uplink 'http://..../homepage.html' -giflink -dvilink -ang file.dvi
                               (adds 'UP' with link to homepage.html, includes links to gif-files and to dvi-file)
  dvi2html -oneline -allinone -nogifs file.dvi   
                               (puts links to pages in one line and creates file with all-pages file.all.html,
                               creates no gifs, assumes that they already exists and you are just rebuilding style of html-hull)
  dvi2html -bpp8 file.dvi      creates color gifs. (use -bpp24 for fullcolor)
			       usefull with \input colordvi.tex.

Remark: With some versions of utilites,a lot of error messages is during work of script generated, such as following ones (these two are not of any importance)

       pnmcrop: a file read or write error occurred at some point
       pnmcrop: cropping 35 rows off the top


Questions/Suggestions/Bugs mail please to kolar@karlin.mff.cuni.cz.
You may look at some examples by users Zeleny (here), or Holicky (here), or at some simple sample.


New features:

Beginigs of chapters etc. can be shown by inserting \special{dvi2html-page-desc: Introduction}or similar in TeX-file. In future much more can be done specials.


You may be informed about changes of this page, if you do URL-minder Registration


See also: dvi2html by L.Pryadko, webmath, TeX to GIF, HTeX, LaTeX2HTML,