From 31fb4eaa80541c1712ab15e876410783c897ece7 Mon Sep 17 00:00:00 2001 From: Karl Berry Date: Mon, 11 Sep 2023 21:52:00 +0000 Subject: undefined \@chapter with nameref, tex4ht r1368 git-svn-id: svn://tug.org/texlive/trunk@68245 c570f23f-e606-0410-a88d-b1316a301751 --- Master/texmf-dist/tex/generic/tex4ht/hyperref-hooks.4ht | 11 +++++++++-- Master/texmf-dist/tex/generic/tex4ht/mkht.4ht | 10 +++++----- 2 files changed, 14 insertions(+), 7 deletions(-) (limited to 'Master/texmf-dist/tex') diff --git a/Master/texmf-dist/tex/generic/tex4ht/hyperref-hooks.4ht b/Master/texmf-dist/tex/generic/tex4ht/hyperref-hooks.4ht index f0de8936168..b3c7d96eb51 100644 --- a/Master/texmf-dist/tex/generic/tex4ht/hyperref-hooks.4ht +++ b/Master/texmf-dist/tex/generic/tex4ht/hyperref-hooks.4ht @@ -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} diff --git a/Master/texmf-dist/tex/generic/tex4ht/mkht.4ht b/Master/texmf-dist/tex/generic/tex4ht/mkht.4ht index 65b0635e54c..858a8e872a8 100644 --- a/Master/texmf-dist/tex/generic/tex4ht/mkht.4ht +++ b/Master/texmf-dist/tex/generic/tex4ht/mkht.4ht @@ -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 @@ to insert the at-echo off only for Windows. \<<< | -|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 -- cgit v1.2.3