Synopsis:
dvi2bitmap [-b(h|w) size] [-bp a4|a4l|usletter...] [-[Cc][lrtb] size] [-fp PKpath ] [-fm mfmode] [-fg] [-fG] [-g[dpribmg]] [-l num] [-m magmag ] [-n[n]] [-o outfile-pattern] [-p num] [-pp ranges] [-P[bBtTcC]] [-q[q]] [-Q[FfGgtbp]] [-r resolution] [-R[fb] int,int,int] [-s scale-factor] [-t xbm|gif|png] [-V] dvi-file
This program is intended to conform to the DVI processing standard.
The motivation for this program was the need for a helper program to produce small bitmaps for inclusion in web pages. Accordingly, the program's underlying usage model is that one would generate a file ofTEX or LaTEX material, convert it to a DVI file using TEX, and convert the result to a collection of bitmap files. The input text will typically be equations, but any other TEX material will work as well. For example, the processor which generates the HTML could spit out a file such as
and then this program can scoot through it turning each page into a bitmap. I had thought about some complicated scheme to delimit areas on the page, but realised that since the file being processed would typically be generated on the fly specifically for processing by a tool like this, this wasn't really necessary. See Section 4 for a script which can help with this.\documentclass{article} \pagestyle{empty} \begin{document} $E=mc^2$ \newpage % etc... \end{document}
I hope that the program is (or can be made to be) flexible enough to support other modes of use.