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.
3.9 making local TOC at some units but not in others<br />
tex4ht does not support minitoc. And could not make it to work with titletoc either.<br />
One way to simulate it, is to use \TocAt{} inside the document, like this:<br />
pdflatex foo.tex<br />
htlatex foo.tex "htm"<br />
htlatex foo.tex "htm,2"<br />
\documentclass{report}%<br />
\usepackage{ifpdf}<br />
\usepackage{lipsum}<br />
\usepackage{minitoc}<br />
\begin{document}<br />
\title{test minTOC with tex4ht}<br />
\author{me}<br />
\date{\today}<br />
\maketitle<br />
\ifdefined\HCode<br />
\else<br />
\dominitoc %only for pdf<br />
\fi<br />
\tableofcontents<br />
\ifdefined\HCode<br />
\TocAt{chapter,section,subsection}<br />
\fi<br />
%do it before chapter<br />
\chapter{chapter 1}<br />
\ifdefined\HCode<br />
\else<br />
\minitoc<br />
\fi<br />
\lipsum{1}<br />
\section{section 1 under chapter 1}<br />
text<br />
\subsection{subsection 1 under section 1 under chapter 1}<br />
text<br />
\subsubsection{subsubsection 1}<br />
\ifdefined\HCode<br />
\TocAt{chapter}<br />
\fi<br />
%RESET it to NO TOC before chapter<br />
\chapter{chapter 2}<br />
\lipsum{1}<br />
\section{section 1 under chapter 2}<br />
\end{document}<br />
62