Bug with -show_section_numbers in v98p1

Hi,

I think I found a bug with the -show_section_numbers option:

My document (report style) contains everything from \chapter to \subparagraph,
and I \setcounter{secnumdepth}{3}, so that in LaTeX everything down to
\subsubsection, but not \paragraph and \subparagraph will be numbered.

Thus, the .toc file (produced by LaTeX) contains, e.g.,

\contentsline {subsection}{\numberline {1.1.20}February 4, 1998}{61}
\contentsline {subsubsection}{\numberline {1.1.20.1}Miscellaneous Logistics}{61}
\contentsline {paragraph}{Scheduling}{63}

I guess LaTeX2HTML reads either the .toc file or the .aux file which contains
similar information.

It turns out that, when I turn on -show_section_numbers, LaTeX2HTML gets thrown
off by the \contentsline statements that do not contain a \numberline: It
complains

*** no brace for \contentsline , before:

*** using "" as the argument instead; is this correct?  ***

I guess the workaround would be to \setcounter{secnumdepth}{5}....

Another problem I have is that I cannot get -toc_depth to work.  (Actually I am
setting $TOC_DEPTH = 5; in the .latex2html-init file.)  It seems to make no
difference what value I set, and whether or not I use -show_section_numbers.

In my mind the ideal strategy would be to have LaTeX2HTML honor the LaTeX
\setcounter{secnumdepth}{...} and \setcounter{tocdepth}{...}  declarations, and
only have -show_section_numbers as a command line option.  I guess, however,
that that will require quite a bit of code-rewriting.  But maybe the bugs can
be fixed along the way...

Thanks in advance for any comments/suggestions on this.

Regards,

Sven Heemeyer

Reply via email to