# [tex4ht] How to prevent 2 table of contents showing on the HTML page when splitting a document htlatex foo.tex "htm, 2" ?

Sat Aug 10 07:04:05 CEST 2013

On Fri, Aug 9, 2013 at 4:37 PM, Nasser M. Abbasi <nma at 12000.org> wrote:

> Hello;
>
> is generated when splitting a document vs. not splitting the document.
>
> For example, running this:
>
>    htatex foo.tex "htm"
>
> on the file
>
> ------------------------
> \begin{document}
> \tableofcontents
> ....
> \end{document}
> ------------------------
>
> produces ONE toc on the main page, which is what one expects. It has
> label on it called "Contents" but this is just text, not a link.
>
> Now on the same file, running this:
>
>   htatex foo.tex "htm,2"
>
> produces the same TOC as first example above, but now it makes "Contents"
> to be an actual link which clicking on it sends one to another copy of the
> TOC
> on a new html page, looking the same as the one on the main index.htm page.
>

Can you please try the command line option 'notoc*'?

htlatex foo.tex "html,2,notoc*"

I think, this is what you are searching for.

Best regards
--