## Getting Started

Up: tohtml Next: Command Line Arguments Previous: tohtml

Using tohtml is easy. For example, if you wish to convert a LaTeX file named mypaper.tex into an HTML document, you can do


tohtml -default mypaper.tex
tohtml -default mypaper.tex

Note that, just as you normally need to run LaTeX twice to get all of the references correct, you also need to run tohtml twice. The command-line option -default provides good basic choice of the many options provided by tohtml. The first run will also generate a number of error messages (such as Could not find Introduction in topicctx and \ref{fig:upshot1} unknown (mypaper.tex line 792)); the second run should generate no error messages if all goes well.

The output will be left in a subdirectory with name mypaper; you can view the result with xmosaic mypaper/mypaper.html.

One important note: for tohtml to handle bibliography entries correctly, you should keep the files that LaTeX and BibTeX generate (e.g., the mypaper.bbl file).

Up: tohtml Next: Command Line Arguments Previous: tohtml