[tex4ht] serious bug with \PauseCutAt

Nasser M. Abbasi nma at 12000.org
Fri Apr 3 21:01:04 CEST 2020

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

\TocAt{chapter,section} %show subsection only in sections TOC
\TocAt{section,subsection} %show subsection only in sections TOC

\subsection{more stuff}

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>
l.3 ...k\endcsname{2}{x2-20001.1}{QQ2-2-2}{test}}{3}

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

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

B) use split 3, but comment out the line
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.


More information about the tex4ht mailing list.