On Sun, Aug 11, 2013 at 1:45 PM, 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">

<div class="im">On 8/11/2013 1:36 AM, Radhakrishnan CV wrote:<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
I think, the following might help you:<br>
</blockquote>
<br></div>
Thanks you very much. Yes, that worked very well.<br>
<br>
For completion, I  have a MWE below which generates a local TOC<br>
for one chapter which is larger than the second local TOC for<br>
the second chapter, both for pdflatex and htlatex.  The main<br>
page TOC only shows the chapters in its TOC.<br>
<br>
ps. If you would have any hints or insight for the splitting problem<br>
<a href="http://tug.org/pipermail/tex4ht/2013q3/000860.html" target="_blank">http://tug.org/pipermail/<u></u>tex4ht/2013q3/000860.html</a><br></blockquote><div><br><br>Here is one of the solutions:<br><br><br>%---------------------------------------------------------------------------------<br>

<br>\documentclass{report}<br>\setcounter{tocdepth}{0}<br>\setcounter{secnumdepth}{4}<br>\usepackage{lipsum}<br><br>\begin{document}<br><br>\title{test cutat}<br>\author{me}<br>\date{\small\today}<br>\maketitle<br>\Configure{tableofcontents*}{chapter}<br>

<br>\tableofcontents<br><br>%---------------------<br>\ifx\HCode\undefined \else<br>\TocAt{chapter,section,subsection,subsubsection}<br>\fi<br>\chapter{chapter 1}<br>\section{section 1 in chapter 1}<br>\lipsum[2]<br>\subsection{subsection 1 in section 1 in chapter 1}<br>

\subsection{subsection 2 in section 1 in chapter 1}<br>\subsubsection{subsubsection 1 subsection 2 in section 1 in chapter 1}<br>\section{section 2 in chapter 1}<br>\lipsum[3]<br>\subsection{subsection 1 in section 2 in chapter 1}<br>

\subsection{subsection 2 in section 2 in chapter 1}<br>\subsubsection{subsubsection 1 subsection 2 in section 1 in chapter 1}<br>%----------------<br><br>\ifx\HCode\undefined \else<br>\TocAt{chapter,section}<br>\PauseCutAt{section}<br>

\fi<br><br>\chapter{chapter 2}<br>\section{section 1 in chapter 2}<br>\lipsum[1]<br>\subsection{subsection 1 in section 1 in chapter 2}<br>\subsection{subsection 2 in section 1 in chapter 2}<br><br>\end{document}<br><br>
%---------------------------------------------------------------------------------<br>
<br>htlatex <filename> 'html,3'<br><br></div></div>-- <br>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>