my Latex and Tex4ht cheat sheet
my Latex cheat sheet - 12000.org
my Latex cheat sheet - 12000.org
Create successful ePaper yourself
Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.
Chapter 3<br />
TeX4ht <strong>cheat</strong> <strong>sheet</strong><br />
3.1 <strong>my</strong> tex4ht setup<br />
description of <strong>my</strong> tex4ht setup<br />
3.2 Math fonts in tex4ht<br />
status of some math fonts in tex4ht<br />
3.3 tex4ht themes<br />
Before starting, here are rules of thumb to remember. Most of these rules will cover most of the common uses.<br />
1. If using the report class <strong>and</strong> if splitting is set to 2, then each chapter (<strong>and</strong> anything in it, such as sections<br />
<strong>and</strong> subsections) all go to separate one web page).<br />
2. If using the report class <strong>and</strong> if splitting is set to 3, then each section (<strong>and</strong> anything in it, such as subsections)<br />
all go to separate one web page).<br />
3. If using report class, to Force a table of content to show under each chapter add this \TocAt{chapter,section} %show<br />
4. To Force a table of content to show under each section add this \TocAt{section,subsection} %show subsections<br />
5. If using article class, then using split 2 then each section is put on its own page (including all its subsections).<br />
6. If using article class, then using split 3 will put each section on its page, <strong>and</strong> each subsection (<strong>and</strong> everything<br />
inside subsections) on its own page.<br />
The general outlines of the themes below are needed if one wants to do something more complicated than<br />
the above rules of thumb.<br />
These themes were done using the comm<strong>and</strong><br />
htlatex foo.tex "htm,3"<br />
And then adding the control of where to split pages to separate HTML pages or not, <strong>and</strong> controlling where<br />
table of contents show up right inside the latex file. This is needed since there is no other way to control which<br />
sections or chapters to split or not to split using global method, <strong>and</strong> so the logic has to be embedded inside the<br />
latex file.<br />
All logic for both pdf <strong>and</strong> htlatex is inside the same file <strong>and</strong> is controlled using \ifdefined\HCode to tell if<br />
one is running in pdf or htlatex, since only generation to HTML <strong>and</strong> PDF is done here.<br />
50