On Sun, Aug 11, 2013 at 7:29 AM, Nasser M. Abbasi <span dir="ltr"><<a href="mailto:nma@12000.org" target="_blank">nma@12000.org</a>></span> wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
A little bit of progress, but no solution yet. I thought I update<br>
in case someone can help with this last part.<br>
<br>
I found a way to remove the section entry from the main tableofcontents<br>
(on first page) so that only chapters show up, like this:<br>
<br>
1. chapter 1<br>
2. chapter 2<br>
<br>
Before it was like this:<br>
<br>
1. chapter 1<br>
1.1 section 1<br>
2. chapter 2<br>
2.1 section 1<br>
<br>
This is good, which is what I wanted. The problem is that this<br>
solution now removed section and anything above it entries from<br>
the local table(s) of contents that I had in each chapter later on.<br>
<br>
I am not able to figure how to get that back.<br></blockquote><div><br>I think, the following might help you:<br><br>%----------------------------------<br>\documentclass{report}%<br>\usepackage{lipsum}<br>%\setcounter{tocdepth}{0} %this causes only chapters to show up<br>
%but only in PDF. In html, it shows<br> %section as well in the TOC, why?<br>\begin{document}<br><br>\title{test TOC with tex4ht 2}<br>\author{me}<br>\date{\today}<br>\maketitle<br>
<br>\Configure{tableofcontents*}{chapter}<br>\tableofcontents<br><br>\TocAt{chapter,section,subsection}<br>%-----------<br>\chapter{Heading chapter 1}<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><br>%----------------<br>\chapter{Heading chapter 2}<br>\lipsum{1}<br>\section{section 1 under chapter 2}<br>\end{document}<br>%----------------------------------<br><br><br>htlatex <filename> 'html,2'<br>
<br><br>Best regards<br>-- <br></div></div>Radhakrishnan<br><a href="https://maps.google.com/maps?q=River%20Valley,%20Thiruvananthapuram%20Neyyardam%20Road,%20Kerala,%20India&vector=1" target="_blank">River Valley</a><br>
<br>