I want to create a latex document that can be compiled as a single pdf file and also converted to a bunch of small html files for a web site.
How to automate the task of converting a latex document to many html files?
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It only takes a minute to sign up.
Sign up to join this communityI want to create a latex document that can be compiled as a single pdf file and also converted to a bunch of small html files for a web site.
How to automate the task of converting a latex document to many html files?
It is possible to generate separate files for chapters, sections, subsections. Try to use
htlatex filename "xhtml, 2"
this will break the html file at sectioning command on highest level, ie. \section
when article class is used, or \chapter
with book document class. Options 3
and 4
also exists, they will break document at second, resp. third sectioning level. Breaked files are hyperlinked, so it is easy to navigate amongst them.