summaryrefslogtreecommitdiff
path: root/support/TeX4ht
diff options
context:
space:
mode:
Diffstat (limited to 'support/TeX4ht')
-rw-r--r--support/TeX4ht/source/ChangeLog5
-rw-r--r--support/TeX4ht/source/tex4ht-html4.tex9
2 files changed, 12 insertions, 2 deletions
diff --git a/support/TeX4ht/source/ChangeLog b/support/TeX4ht/source/ChangeLog
index 9f496a5156..9ee489d97e 100644
--- a/support/TeX4ht/source/ChangeLog
+++ b/support/TeX4ht/source/ChangeLog
@@ -1,3 +1,8 @@
+2023-09-22 Michal Hoftich <michal.h21@gmail.com>
+
+ * tex4ht-html4.tex (html4.4ht): test for the existence of
+ \au:StartSec command before we try to insert it to \tableofcontents.
+
2023-09-20 Michal Hoftich <michal.h21@gmail.com>
* tex4ht-mathml.tex (mathml.4ht): added support for the \mathvariant
diff --git a/support/TeX4ht/source/tex4ht-html4.tex b/support/TeX4ht/source/tex4ht-html4.tex
index cd4571657a..21e7ea166e 100644
--- a/support/TeX4ht/source/tex4ht-html4.tex
+++ b/support/TeX4ht/source/tex4ht-html4.tex
@@ -1,4 +1,4 @@
-% $Id: tex4ht-html4.tex 1369 2023-09-12 12:36:05Z michal_h21 $
+% $Id: tex4ht-html4.tex 1372 2023-09-22 15:05:09Z michal_h21 $
% Compile 4 times: latex tex4ht-html4
% Copy html4.4ht into the work directory before all but the last compilation.
%
@@ -1055,7 +1055,12 @@ is the default font size.
|<object tocs|>
\else
% This should prevent duplication of TOC when document is not split into subpages
- \pend:def\tableofcontents{\gdef\:StartSec{\au:StartSec}}%
+ \pend:def\tableofcontents{%
+ \ifx \au:StartSec\:UnDef\else%
+ \gdef\:StartSec{\au:StartSec}%
+ \fi%
+ }%
+
\Log:Note{for automatic sectioning
pagination, use the command line option
`1', `2', `3', '4', '5', '6', or '7'}%