Publish Latex As HTML

Recently, I looked for a solution to generate HTML code from Latex files. Finally, I found latex2html (apt-get it) to be the best solution. Here is the command with which I generated an HTML site from our Catastrophes as a Result of Bad Software Engineering paper (PDF is available here).

Latex2HTML

latex2html -dir html -split +2 -auto_prefix -local_icons -info 0 -address 0 MYTEXFILE.tex

Parameters

  • -dir html - Put everything into the sub directory “html”
  • -split +2 - Every subsection is put into a separate file
  • -auto_prefix - Adds to each filename the project name as prefix
  • -local_icons - Store the images used beneath the htmls and do not load it from external
  • -info 0 - Do not create an “about” page. Instead of 0 you could add an about text here
  • -address 0 - Do not put an author/date at the bottom of every page. Same as with info.

Rubber

By the way, compiling your Latex docs with rubber is much handier than using the standard Latex commands. You could use:

rm yourstuff
latex TEXPROJ
bibtex TEXPROJ
latex TEXPROJ
...
pdflatex TEXPROJ

or just:

rubber --pdf TEXPROJ.tex
devlog/blog/publish_latex_as_html.txt · Last modified: 2008/05/12 23:57 by x4
Creative Commons License Valid CSS Driven by DokuWiki do yourself a favour and use a real browser - get firefox!! DevLog Atom feed Valid XHTML 1.0