Re: [tex4ht] serious bug with \PauseCutAt
On 4/3/2020 2:42 PM, Michal Hoftich wrote: Hi Nasser, On Fri, Apr 3, 2020 at 9:01 PM Nasser M. Abbasi wrote: 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 I didn't even know about existence of this command :D Too many tex4ht commands, too little time :) I use \TocAt a lot. It automatically makes TOC at top of each section or top of each chapter and so on. I just have to keep watching the split level when I use it. Here is an example page with toc at top of a section (split level is 2 here) https://www.12000.org/my_notes/CAS_integration_tests/reports/rubi_4_16_1_graded/inse1.htm#x2-10001 I do not know how else in tex4ht to make local TOC like this otherwise. For lualatex, I use instead this code (to make toc at first of section) (from etoc package) \etocsetnexttocdepth{1} \etocsettocstyle{\section*{Local contents}}{} \cftsecindent 0pt \localtableofcontents It is used only on three places in the TeX4ht sources - one is it's definition, second is a comment and third is in the info file, where it is mentioned without any description what it is supposed to do. I will take a look at this soon. Best, Michal Thank you --Nasser
Re: [tex4ht] serious bug with \PauseCutAt
Hi Nasser, On Fri, Apr 3, 2020 at 9:01 PM Nasser M. Abbasi wrote: > > 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 I didn't even know about existence of this command :D It is used only on three places in the TeX4ht sources - one is it's definition, second is a comment and third is in the info file, where it is mentioned without any description what it is supposed to do. I will take a look at this soon. Best, Michal
[tex4ht] serious bug with \PauseCutAt
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. \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