next up previous
Next: Latex for presentations Up: Creating various file formats Previous: Convert from Lyx to

latex2html: creating html from Latex

I've had good experience with creating html from Latex files with this tool. In particular you can create tree structures such as the structure you're viewing right now. All of the Latex sections/subsections/subsubsections/paragraphs become a separate node in the tree. The only downside to this is that if you change the tree structure, the individual numbered html files get renamed and Google needs time to correct the links (almost two weeks in my experience).

You can create links to within your own document and to general URLs.

If you're including ps graphics in the file, you may want to have \usepackage{graphics} in your preamble rather than \usepackage{psfig} (I read this somewhere but don't remember the reason).

Also, you will probably want to compile the Latex file with the -local_icons option, so that the icons are actually saved within the html; otherwise, I've found that the navigation icons are missing from the html when viewed through a browser: >latex2html file.tex -local_icons

Also, if you are posting on the web, I suggest using the -long_titles 5 option so that file names are named sensically and not called node10.html, which, when you add a node, causes a renumbering that then makes it harder for a google user to refind the page.

Finally, in moving to a new Linux system (Redhat 9), when I use Lyx to create the Latex file and export to Latex from within Lyx, I have had to change the \providecommand{\tabularnewline}{\\} inserted automatically in the preamble by Lyx to be \newcommand{\tabularnewline}{\\}, before running latex2html.


next up previous
Next: Latex for presentations Up: Creating various file formats Previous: Convert from Lyx to
Chris Paciorek 2012-01-21