To change how deep the TOC is on the main page in HTML, do the following. Suppose we want to show chapter, section, subsection, and subsubsection in the TOC, then here is an example
\begin{document} \title{my dynamics cheat sheet} \author{{\small Nasser M. Abbasi}} \date{{\small \today}} \maketitle \ifdefined\HCode \Configure{tableofcontents*}{chapter,section,subsection,subsubsection} \fi \tableofcontents
Splitting the document (html) based on section is different. This is handled as follows. Suppose we want to split by 2, then compile as
make4ht foo.tex "htm,2,charset=utf-8,pic-align,notoc*" " -cunihtf -utf8"
If you are using a htlatex .cfg file, say my.cfg, then change the above to be
make4ht foo.tex "my,htm,2,charset=utf-8,pic-align,notoc*" " -cunihtf -utf8"
Notice the use of notoc*