5.17 tex4ht and table of content issues

see http://tex.stackexchange.com/questions/44541/tex4ht-limit-toc

I use this command to get table of content to be full in tex4ht

htlatex index.tex "html,7" "" "" "\def\directbuild{}"
 

To make table of contents in HTML have more spaces and look better, use this in the .cfg file:

\begin{document} 
  \ConfigureToc{section} 
      {\tocNesting{1}\HCode{<li>}}{ }{}{ } 
   \ConfigureToc{subsection} 
      {\tocNesting{2}\HCode{<li>}}{ }{}{ } 
   \ConfigureToc{subsubsection} 
      {\tocNesting{3}\HCode{<li>}}{ }{}{ } 
   \Configure{tableofcontents} 
      {} {\tocNesting{0}} {} {} {} 
 
   \newcount\c 
   \def\tocNesting#1{% 
      \expandafter\ifx \csname level#1\endcsname\relax 
          \ifnum #1>0 \HCode{<ul>}\fi 
          \expandafter\def \csname level#1\endcsname{\HCode{</ul>}} 
      \fi 
      \c=#1 \advance\c by 1 
      \loop 
        \csname level\the\c\endcsname 
        \expandafter\let \csname level\the\c\endcsname\relax 
        \advance\c by 1 
      \ifnum \c<10   \repeat 
   }
 

The above will go in the cfg file. This makes the HTML table of content much nicer.