texlive[74452] branches/branch2024.final/Master/texmf-dist: branch
commits+karl at tug.org
commits+karl at tug.org
Wed Mar 5 00:26:10 CET 2025
Revision: 74452
https://tug.org/svn/texlive?view=revision&revision=74452
Author: karl
Date: 2025-03-05 00:26:10 +0100 (Wed, 05 Mar 2025)
Log Message:
-----------
branch sync, tex4ht r1656
Revision Links:
--------------
https://tug.org/svn/texlive?view=revision&revision=1656
Modified Paths:
--------------
branches/branch2024.final/Master/texmf-dist/source/generic/tex4ht/ChangeLog
branches/branch2024.final/Master/texmf-dist/source/generic/tex4ht/tex4ht-4ht.tex
branches/branch2024.final/Master/texmf-dist/tex/generic/tex4ht/nameref.4ht
Modified: branches/branch2024.final/Master/texmf-dist/source/generic/tex4ht/ChangeLog
===================================================================
--- branches/branch2024.final/Master/texmf-dist/source/generic/tex4ht/ChangeLog 2025-03-04 23:25:22 UTC (rev 74451)
+++ branches/branch2024.final/Master/texmf-dist/source/generic/tex4ht/ChangeLog 2025-03-04 23:26:10 UTC (rev 74452)
@@ -1,3 +1,9 @@
+2025-03-03 Michal Hoftich <michal.h21 at gmail.com>
+
+ * tex4ht-4ht.tex (nameref.4ht): fixed KOMA-Script \chapter support
+ in \nameref.
+ https://github.com/michal-h21/make4ht/issues/166
+
2025-02-28 Michal Hoftich <michal.h21 at gmail.com>
* tex4ht-oofice.tex (ooffice.4ht): added support for row colors with
Modified: branches/branch2024.final/Master/texmf-dist/source/generic/tex4ht/tex4ht-4ht.tex
===================================================================
--- branches/branch2024.final/Master/texmf-dist/source/generic/tex4ht/tex4ht-4ht.tex 2025-03-04 23:25:22 UTC (rev 74451)
+++ branches/branch2024.final/Master/texmf-dist/source/generic/tex4ht/tex4ht-4ht.tex 2025-03-04 23:26:10 UTC (rev 74452)
@@ -1,4 +1,4 @@
-% $Id: tex4ht-4ht.tex 1653 2025-02-27 14:02:06Z michal_h21 $
+% $Id: tex4ht-4ht.tex 1656 2025-03-03 20:50:00Z michal_h21 $
% tex tex4ht-4ht or ht tex tex4ht-4ht
%
% Copyright 2009-2025 TeX Users Group
@@ -3566,6 +3566,27 @@
}
\HLet\NR at schapter\:tempc
+\ifdefined\scr at makechapterhead
+% fixes for Koma-Script classes
+% declarations for \NR at chapter don'w work in Koma-Script classes,
+% so we need to redefine \@chapter and \@schapter
+\def\:tempa[#1]#2{%
+ \gdef\NR:Title{\a:newlabel{#1}}%
+ \gdef\NR:Type{chapter}%
+ \o:@chapter:[#1]{#2}%
+}
+\HLet\@chapter\:tempa
+
+\def\:tempa#1{%
+ \gdef\NR:Title{\a:newlabel{#1}}%
+ \gdef\NR:Type{chapter}%
+ \o:@schapter:{#1}%
+}
+\HLet\@schapter\:tempa
+% end of fixes for Koma-Script classes
+\fi
+
+
\let\o:NR@@caption\@caption
%
%
Modified: branches/branch2024.final/Master/texmf-dist/tex/generic/tex4ht/nameref.4ht
===================================================================
--- branches/branch2024.final/Master/texmf-dist/tex/generic/tex4ht/nameref.4ht 2025-03-04 23:25:22 UTC (rev 74451)
+++ branches/branch2024.final/Master/texmf-dist/tex/generic/tex4ht/nameref.4ht 2025-03-04 23:26:10 UTC (rev 74452)
@@ -1,12 +1,12 @@
-% nameref.4ht (2024-06-15-13:36), generated from tex4ht-4ht.tex
+% nameref.4ht (2025-03-03-13:56), generated from tex4ht-4ht.tex
% Copyright 2005-2009 Eitan M. Gurari
-% Copyright 2009-2024 TeX Users Group
+% Copyright 2009-2025 TeX Users Group
%
% This work may be distributed and/or modified under the
% conditions of the LaTeX Project Public License, either
% version 1.3c of this license or (at your option) any
% later version. The latest version of this license is in
-% http://www.latex-project.org/lppl.txt
+% https://www.latex-project.org/lppl.txt
% and version 1.3c or later is part of all distributions
% of LaTeX version 2005/12/01 or later.
%
@@ -13,11 +13,11 @@
% This work has the LPPL maintenance status "maintained".
%
% The Current Maintainer of this work
-% is the TeX4ht Project <http://tug.org/tex4ht>.
+% is the TeX4ht Project <https://tug.org/tex4ht>.
%
% If you modify this program, changing the
% version identification would be appreciated.
-\immediate\write-1{version 2024-06-15-13:36}
+\immediate\write-1{version 2025-03-03-13:56}
\let\NR:Type\relax
\let\ltx at label\label
@@ -82,6 +82,27 @@
}
\HLet\NR at schapter\:tempc
+\ifdefined\scr at makechapterhead
+% fixes for Koma-Script classes
+% declarations for \NR at chapter don'w work in Koma-Script classes,
+% so we need to redefine \@chapter and \@schapter
+\def\:tempa[#1]#2{%
+ \gdef\NR:Title{\a:newlabel{#1}}%
+ \gdef\NR:Type{chapter}%
+ \o:@chapter:[#1]{#2}%
+}
+\HLet\@chapter\:tempa
+
+\def\:tempa#1{%
+ \gdef\NR:Title{\a:newlabel{#1}}%
+ \gdef\NR:Type{chapter}%
+ \o:@schapter:{#1}%
+}
+\HLet\@schapter\:tempa
+% end of fixes for Koma-Script classes
+\fi
+
+
\let\o:NR@@caption\@caption
%
%
More information about the tex-live-commits
mailing list.