[tex4ht-commits] [SCM] tex4ht updated: r1368 - trunk/lit
Michal Hoftich
INVALID.NOREPLY at gnu.org.ua
Mon Sep 11 11:02:15 CEST 2023
Author: michal_h21
Date: 2023-09-11 09:02:15 +0000 (Mon, 11 Sep 2023)
New Revision: 1368
Modified:
trunk/lit/ChangeLog
trunk/lit/tex4ht-4ht.tex
Log:
undefine the \@chapter command with Nameref
Modified: trunk/lit/ChangeLog
===================================================================
--- trunk/lit/ChangeLog 2023-09-10 15:49:40 UTC (rev 1367)
+++ trunk/lit/ChangeLog 2023-09-11 09:02:15 UTC (rev 1368)
@@ -1,3 +1,9 @@
+2023-09-11 Michal Hoftich <michal.h21 at gmail.com>
+
+ * tex4ht-4ht.tex (hyperref-hooks.4ht): undefine the \@chapter
+ command to prevent wrong cutting of pages with numeric options.
+ https://puszcza.gnu.org.ua/bugs/?608
+
2023-09-10 Karl Berry <karl at freefriends.org>
* tex4ht-mkht.tex (mkht-scripts): copyright 2023.
Modified: trunk/lit/tex4ht-4ht.tex
===================================================================
--- trunk/lit/tex4ht-4ht.tex 2023-09-10 15:49:40 UTC (rev 1367)
+++ trunk/lit/tex4ht-4ht.tex 2023-09-11 09:02:15 UTC (rev 1368)
@@ -5655,6 +5655,13 @@
\let\label\sv:label
%\input nameref.4ht
}
+% Nameref defines the \@chapter command unconditionally,
+% but this breaks the page cutting functionality
+% of TeX4ht, so we need to undefine it.
+% See this post for more details https://tex.stackexchange.com/q/695624/2891
+\ifdefined\chapter\else
+ \global\let\@chapter\@relax
+\fi
>>>
Hyperref defines following captions at the end of the package.
More information about the tex4ht-commits
mailing list.