bugtex4ht - Bugs: bug #228, tex4ht does not accept...

Show feedback again

You are not allowed to post comments on this tracker with your current authentification level.

bug #228: tex4ht does not accept \setcounter{tocdepth} in report class

Submitted by:  Nasser M. Abbasi <nma123>
Submitted on:  Sat 09 Aug 2014 10:31:39 PM EEST  
Category: NonePriority: 5 - Normal
Severity: 5 - NormalStatus: None
Privacy: PublicAssigned to: None
Open/Closed: Open

Sat 09 Aug 2014 10:31:39 PM EEST, original submission:



When setting \setcounter{tocdepth}{0} in report class, then the PDF file shows only the chapters as expected in toc, but the HTML shows both chapter and sections in toc.

When setting \setcounter{tocdepth}{1} in artice class, then the PDF file shows only the sections as expected in toc, and now the HTML shows only the sections in toc as expected as well.

So, the question is: Why tex4ht agrees with pdf toc for article and not for report?

When compiling this file


\chapter{This is chapter 1}
some text in chapter 1
some text in chapter, section

\chapter{This is chapter 2}
some text in chapter 2
some text in chapter, section

\chapter{This is chapter 3}
some text in chapter 3
some text in chapter, section


The section is added to the TOC in html. This is wrong. Only chapter should show up in TOC.

This was on TexLive 2014

Nasser M. Abbasi <nma123>


No files currently attached


Depends on the following items: None found

Items that depend on this one: None found


Carbon-Copy List
  • -unavailable- added by nma123 (Submitted the item)

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.


    Please enter the title of George Orwell's famous dystopian book (it's a date):



    No Changes Have Been Made to This Item
    Show feedback again

    Back to the top

    Powered by Savane 3.1-cleanup+gray