summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/source
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2023-09-22 21:20:14 +0000
committerKarl Berry <karl@freefriends.org>2023-09-22 21:20:14 +0000
commit5e7c64f3e7da182c61a84f26352e20920ff08284 (patch)
tree04c37c7d05bc761b986e89ad6828d07a42072447 /Master/texmf-dist/source
parent9db69640dad664bfa69013e8cd3ac3cf815dbde8 (diff)
\au:StartSec check, tex4ht r1372
git-svn-id: svn://tug.org/texlive/trunk@68346 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/source')
-rw-r--r--Master/texmf-dist/source/generic/tex4ht/ChangeLog5
-rw-r--r--Master/texmf-dist/source/generic/tex4ht/tex4ht-html4.tex9
2 files changed, 12 insertions, 2 deletions
diff --git a/Master/texmf-dist/source/generic/tex4ht/ChangeLog b/Master/texmf-dist/source/generic/tex4ht/ChangeLog
index 9f496a5156b..9ee489d97ee 100644
--- a/Master/texmf-dist/source/generic/tex4ht/ChangeLog
+++ b/Master/texmf-dist/source/generic/tex4ht/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/Master/texmf-dist/source/generic/tex4ht/tex4ht-html4.tex b/Master/texmf-dist/source/generic/tex4ht/tex4ht-html4.tex
index cd4571657a0..21e7ea166ea 100644
--- a/Master/texmf-dist/source/generic/tex4ht/tex4ht-html4.tex
+++ b/Master/texmf-dist/source/generic/tex4ht/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'}%