Is this a known bug? If not, I can enter official report on it.

When using \TocAt with \PauseCutAt, tex4ht gives error.

Please see the following MWE

==================
\documentclass[11pt,notitlepage]{book}
\begin{document}
\ifdefined\HCode
\TocAt{chapter,section} %show subsection only in sections TOC
\TocAt{section,subsection} %show subsection only in sections TOC
\fi

\ifdefined\HCode
\PauseCutAt{section}
\fi
\chapter{Introduction}
chapter
\section{test}
stuff
\subsection{more stuff}
stuff
\end{document}
===================================

Compiled using

make4ht -ulm default -a debug t.tex "htm,3,notoc*,p-width"

./t.aux) (/usr/local/texlive/2019/texmf-dist/tex/latex/base/ts1cmr.fd)
[1] [2]
Chapter 1.
(./t.4ct) (/usr/local/texlive/2019/texmf-dist/tex/latex/lm/ot1lmtt.fd) (./t.4ct
) (./t.4ct
! Missing number, treated as zero.
<to be read again>
\TitleCount
l.3 ...k\endcsname{2}{x2-20001.1}{QQ2-2-2}{test}}{3}
                                                  \relax
?

2 ways to make the error goes away:
======================================
A) use split level 2 instead of 3 (but I want to use 3). So this
works

make4ht -ulm default -a debug t.tex "htm,2,notoc*,p-width"

B) use split 3, but comment out the line
      %\TocAt{section,subsection}
In the above tex file.  (But I want to have toc at section level).

Is this known? And why it happens and is there a workaround
other than these two above?

TL 2019 on Linux.

Thnaks
--Nasser





Reply via email to