summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/source/generic/tex4ht/tex4ht-4ht.tex
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/source/generic/tex4ht/tex4ht-4ht.tex')
-rw-r--r--Master/texmf-dist/source/generic/tex4ht/tex4ht-4ht.tex9
1 files changed, 8 insertions, 1 deletions
diff --git a/Master/texmf-dist/source/generic/tex4ht/tex4ht-4ht.tex b/Master/texmf-dist/source/generic/tex4ht/tex4ht-4ht.tex
index 6ac26a7046a..c76a160f677 100644
--- a/Master/texmf-dist/source/generic/tex4ht/tex4ht-4ht.tex
+++ b/Master/texmf-dist/source/generic/tex4ht/tex4ht-4ht.tex
@@ -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 @@ TeX4ht hooks.
\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.