[tex4ht] [bug #454] Problem using \PauseCutAt with high split level

Nasser M. Abbasi nma at 12000.org
Sat Apr 4 19:50:04 CEST 2020


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

                 Summary: Problem using \PauseCutAt with high split level
                 Project: tex4ht
            Submitted by: nma123
            Submitted on: Sat 04 Apr 2020 08:49:38 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:

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
?

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).

C) Do not use \PauseCutAt at all.

TL 2019 on Linux.

Thnaks
--Nasser






    _______________________________________________________

Reply to this item at:

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

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


More information about the tex4ht mailing list.