texlive[68245] Master/texmf-dist: undefined \@chapter with nameref,
commits+karl at tug.org
commits+karl at tug.org
Mon Sep 11 23:52:00 CEST 2023
Revision: 68245
http://tug.org/svn/texlive?view=revision&revision=68245
Author: karl
Date: 2023-09-11 23:52:00 +0200 (Mon, 11 Sep 2023)
Log Message:
-----------
undefined \@chapter with nameref, tex4ht r1368
Revision Links:
--------------
http://tug.org/svn/texlive?view=revision&revision=1368
Modified Paths:
--------------
trunk/Master/texmf-dist/source/generic/tex4ht/ChangeLog
trunk/Master/texmf-dist/source/generic/tex4ht/tex4ht-4ht.tex
trunk/Master/texmf-dist/source/generic/tex4ht/tex4ht-mkht.tex
trunk/Master/texmf-dist/tex/generic/tex4ht/hyperref-hooks.4ht
trunk/Master/texmf-dist/tex/generic/tex4ht/mkht.4ht
Modified: trunk/Master/texmf-dist/source/generic/tex4ht/ChangeLog
===================================================================
--- trunk/Master/texmf-dist/source/generic/tex4ht/ChangeLog 2023-09-11 21:18:50 UTC (rev 68244)
+++ trunk/Master/texmf-dist/source/generic/tex4ht/ChangeLog 2023-09-11 21:52:00 UTC (rev 68245)
@@ -1,3 +1,13 @@
+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.
+
2023-09-07 Michal Hoftich <michal.h21 at gmail.com>
* tex4ht-mathml.tex (mathml.4ht): fixed handling of inline math
Modified: trunk/Master/texmf-dist/source/generic/tex4ht/tex4ht-4ht.tex
===================================================================
--- trunk/Master/texmf-dist/source/generic/tex4ht/tex4ht-4ht.tex 2023-09-11 21:18:50 UTC (rev 68244)
+++ trunk/Master/texmf-dist/source/generic/tex4ht/tex4ht-4ht.tex 2023-09-11 21:52:00 UTC (rev 68245)
@@ -1,4 +1,4 @@
-% $Id: tex4ht-4ht.tex 1362 2023-08-27 15:01:41Z karl $
+% $Id: tex4ht-4ht.tex 1368 2023-09-11 09:02:15Z michal_h21 $
% tex tex4ht-4ht or ht tex tex4ht-4ht
%
% Copyright 2009-2023 TeX Users Group
@@ -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.
Modified: trunk/Master/texmf-dist/source/generic/tex4ht/tex4ht-mkht.tex
===================================================================
--- trunk/Master/texmf-dist/source/generic/tex4ht/tex4ht-mkht.tex 2023-09-11 21:18:50 UTC (rev 68244)
+++ trunk/Master/texmf-dist/source/generic/tex4ht/tex4ht-mkht.tex 2023-09-11 21:52:00 UTC (rev 68245)
@@ -1,9 +1,9 @@
-% $Id: tex4ht-mkht.tex 1361 2023-08-20 15:23:27Z karl $
+% $Id: tex4ht-mkht.tex 1367 2023-09-10 15:49:40Z karl $
% (1) latex tex4ht-mkht
% (2) perl -c mk4ht.perl (checking correctness)
% (3) latex mkht-scripts.4ht
%
-% Copyright 2009-2021 TeX Users Group
+% Copyright 2009-2023 TeX Users Group
% Copyright 1997-2009 Eitan M. Gurari
% Released under LPPL 1.3c+.
% See tex4ht-cpright.tex for license text.
@@ -923,7 +923,7 @@
\<mkht\><<<-
% mkht.4ht (?version), generated from ?jobname.tex
-% Copyright 2009-2020 TeX Users Group
+% Copyright 2009-2023 TeX Users Group
% Copyright ?CopyYear.1997. Eitan M. Gurari
?<TeX4ht copyright?>
\immediate\write-1{version ?version}
@@ -1181,7 +1181,7 @@
\<mkht-scripts\><<<-
% mkht-scripts.4ht (?version), generated from ?jobname.tex
-% Copyright 2009-2020 TeX Users Group
+% Copyright 2009-2023 TeX Users Group
% Copyright ?CopyYear.2000. Eitan M. Gurari
?<TeX4ht copyright?>
Modified: trunk/Master/texmf-dist/tex/generic/tex4ht/hyperref-hooks.4ht
===================================================================
--- trunk/Master/texmf-dist/tex/generic/tex4ht/hyperref-hooks.4ht 2023-09-11 21:18:50 UTC (rev 68244)
+++ trunk/Master/texmf-dist/tex/generic/tex4ht/hyperref-hooks.4ht 2023-09-11 21:52:00 UTC (rev 68245)
@@ -1,4 +1,4 @@
-% hyperref-hooks.4ht (2022-06-20-14:19), generated from tex4ht-4ht.tex
+% hyperref-hooks.4ht (2023-09-11-14:37), generated from tex4ht-4ht.tex
% Copyright 2022 TeX Users Group
%
% This work may be distributed and/or modified under the
@@ -16,7 +16,7 @@
%
% If you modify this program, changing the
% version identification would be appreciated.
-\immediate\write-1{version 2022-06-20-14:19}
+\immediate\write-1{version 2023-09-11-14:37}
\:AtEndOfPackage{%
\@ifpackageloaded{nameref}{}
@@ -27,6 +27,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
\providecommand*\AMSautorefname{\equationautorefname}
\providecommand*\Hfootnoteautorefname{\footnoteautorefname}
Modified: trunk/Master/texmf-dist/tex/generic/tex4ht/mkht.4ht
===================================================================
--- trunk/Master/texmf-dist/tex/generic/tex4ht/mkht.4ht 2023-09-11 21:18:50 UTC (rev 68244)
+++ trunk/Master/texmf-dist/tex/generic/tex4ht/mkht.4ht 2023-09-11 21:52:00 UTC (rev 68245)
@@ -1,5 +1,5 @@
-% mkht.4ht (2023-08-27-00:00), generated from tex4ht-mkht.tex
-% Copyright 2009-2020 TeX Users Group
+% mkht.4ht (2023-09-10-08:49), generated from tex4ht-mkht.tex
+% Copyright 2009-2023 TeX Users Group
% Copyright 1997-2009 Eitan M. Gurari
%
% This work may be distributed and/or modified under the
@@ -18,9 +18,9 @@
% If you modify this program, changing the
% version identification would be appreciated.
%
-\immediate\write-1{version \ifx \JOBNAME\UnDefined 2023-08-27-00:00\else |version\fi}
+\immediate\write-1{version \ifx \JOBNAME\UnDefined 2023-09-10-08:49\else |version\fi}
-\immediate\write-1{version 2023-08-27-00:00}
+\immediate\write-1{version 2023-09-10-08:49}
\def\exit{\documentclass{article}\begin{document}\end{document}\endinput}
\bgroup
@@ -378,7 +378,7 @@
\<windows line\><<<
|<echo off|>
-|Rem |ScriptFileName|AddExtn (2023-08-27-00:00), generated from tex4ht-mkht.tex
+|Rem |ScriptFileName|AddExtn (2023-09-10-08:49), generated from tex4ht-mkht.tex
|Rem Copyright 2009-2020 TeX Users Group
|Rem Copyright 2003-2009 Eitan M. Gurari
|Rem
More information about the tex-live-commits
mailing list.