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

Radhakrishnan CV cvr at river-valley.org
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;
>
> I have always been very confused about how the main table of contents
> 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
-- 
Radhakrishnan
River Valley<https://maps.google.com/maps?q=River%20Valley,%20Thiruvananthapuram%20Neyyardam%20Road,%20Kerala,%20India&vector=1>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://tug.org/pipermail/tex4ht/attachments/20130810/35451f9c/attachment-0001.html>


More information about the tex4ht mailing list