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

Nasser M. Abbasi puszcza-hackers at gnu.org.ua
Sat Aug 9 21:31:39 CEST 2014


URL:
  <http://puszcza.gnu.org.ua/bugs/?228>

                 Summary: tex4ht does not accept \setcounter{tocdepth} in
report class
                 Project: tex4ht
            Submitted by: nma123
            Submitted on: Sat 09 Aug 2014 10:31:39 PM EEST
                Category: None
                Priority: 5 - Normal
                Severity: 5 - Normal
                  Status: None
                 Privacy: Public
             Assigned to: None
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any

    _______________________________________________________

Details:

Reference:

http://tex.stackexchange.com/questions/195608/why-tex4ht-does-not-accept-setcountertocdepth-in-report-class-but-it-does-in

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

\documentclass{report}%
\setcounter{tocdepth}{0}
\begin{document}
\tableofcontents
\clearpage

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

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


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

\end{document}

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

This was on TexLive 2014




    _______________________________________________________

Reply to this item at:

  <http://puszcza.gnu.org.ua/bugs/?228>

_______________________________________________
  Message sent via/by Puszcza
  http://puszcza.gnu.org.ua/



More information about the tex4ht mailing list