# [tex4ht] Is this a bug in cutAt for tex4ht?

Nasser M. Abbasi nma at 12000.org
Sun Jun 12 00:14:26 CEST 2016

I have large document, book style, and I want to split
it to 3 levels in HTML, but and I want to prevent splitting
at one chapter (becuase I want this specific chapter content
to be all on one web page). So I used the commands

\PauseCutAt{chapter}

just before the start of the chapter I do _not_ want to be
split and add \ContCutAt{chapter}  just after chapter is done.

But I get an error. I am not sure if I am doing something
wrong or this is a bug. Could some tex4ht expert please
verify?  Here is MWE

--------------------------------------
\documentclass[11pt]{scrbook}%
\begin{document}

\ifdefined\HCode
\Configure{tableofcontents*}{chapter,section}
\else
\tableofcontents
\fi

\ifdefined\HCode
\TocAt{section,subsection}
\fi

\ifdefined\HCode
\PauseCutAt{chapter} % do not SPLIT this chapter
\fi
\chapter{Introduction}
etc....
\section{Syllabus}
etc....
\subsection{Text book}
etc....

\ifdefined\HCode
\ContCutAt{chapter} % resume normal operations
\fi

\chapter{exams}
etc....
\end{document}
----------------------------

Compiled using

make4ht foo.tex "htm,3"

Error is
---------------------------------------------
...
(/usr/local/texlive/2015/texmf-dist/tex/generic/tex4ht/html4.4ht)
(/usr/local/texlive/2015/texmf-dist/tex/generic/tex4ht/html4-math.4ht))
(./foo.aux) [1] [2]
chapter 1.
(./foo.4ct)
l.18 --- TeX4ht warning --- \Link{tailfoch1.htm}? ---
(./foo.4ct) (./foo.4ct
! Missing number, treated as zero.
\TitleCount
l.3 ...sname{2}{x2-20001.1}{QQ2-2-2}{Syllabus}}{3}
\relax
?
----------------------------------------

Compiling with "htm,1"  or "htm,2" does _not_ give an error.

And just in case I am confused about if I should use
I also tried it both way. Still gives an error.

I also tried report class and tried standard book style,
still get an error.

Am I doing something wrong?  TL 2015 on Linux mint. I rememebr
this used to work.

thank you,
--Nasser