[latex3-commits] [latex3/latex2e] add-theHcount: update branch and extend refstepcounter command (5409b8a8)
github at latex-project.org
github at latex-project.org
Fri Sep 20 17:13:35 CEST 2024
Repository : https://github.com/latex3/latex2e
On branch : add-theHcount
Link : https://github.com/latex3/latex2e/commit/5409b8a8399c0fe5198557831ad9625b66f41353
>---------------------------------------------------------------
commit 5409b8a8399c0fe5198557831ad9625b66f41353
Author: Ulrike Fischer <fischer at troubleshooting-tex.de>
Date: Fri Sep 20 17:13:35 2024 +0200
update branch and extend refstepcounter command
>---------------------------------------------------------------
5409b8a8399c0fe5198557831ad9625b66f41353
base/ltcounts.dtx | 4 ++--
base/lttagging.dtx | 19 ++++++++++++-------
base/ltxref.dtx | 18 +++++++++++++-----
3 files changed, 27 insertions(+), 14 deletions(-)
diff --git a/base/ltcounts.dtx b/base/ltcounts.dtx
index 811987f7..6c0aebcc 100644
--- a/base/ltcounts.dtx
+++ b/base/ltcounts.dtx
@@ -311,7 +311,7 @@
% \changes{v1.1o}{2024/09/20}{define theHfoo (used for internal links)}
% \begin{macrocode}
%</2ekernel>
-%<latexrelease>\IncludeInRelease{2024/09/20}{\@definecounter}
+%<latexrelease>\IncludeInRelease{2024/11/01}{\@definecounter}
%<latexrelease> {provide theHfoo commands}%
%<*2ekernel|latexrelease>
\def\@definecounter#1{\expandafter\newcount\csname c@#1\endcsname
@@ -366,7 +366,7 @@
% representation of the parent.
% \begin{macrocode}
%</2ekernel>
-%<latexrelease>\IncludeInRelease{2024/09/20}{\@addtoreset}
+%<latexrelease>\IncludeInRelease{2024/11/01}{\@addtoreset}
%<latexrelease> {provide theHfoo commands}%
%<*2ekernel|latexrelease>
\def\@addtoreset#1#2{\expandafter\@cons\csname cl@#2\endcsname {{#1}}%
diff --git a/base/lttagging.dtx b/base/lttagging.dtx
index f4d23778..62ffe62f 100644
--- a/base/lttagging.dtx
+++ b/base/lttagging.dtx
@@ -33,7 +33,7 @@
%<*driver>
% \fi
\ProvidesFile{lttagging.dtx}
- [2024/08/10 v1.0g LaTeX Kernel (tagging support)]
+ [2024/09/20 v1.0h LaTeX Kernel (tagging support)]
% \iffalse
\documentclass{l3doc}
\GetFileInfo{lttagging.dtx}
@@ -262,6 +262,15 @@
% \end{macrocode}
% \end{plugdecl}
+% \subsubsection{Tagging socket for refstepcounter}
+
+% \begin{socketdecl}{tagsupport/refstepcounter}
+% When tagging is active we want to track the current structure number.
+% \begin{macrocode}
+\NewSocket{tagsupport/refstepcounter}
+% \end{macrocode}
+% \end{socketdecl}
+
% \subsubsection{Tagging sockets for toc}
% \begin{socketdecl}{tagsupport/toc/contentsline/before,
@@ -849,14 +858,10 @@
%<@@=>
% \end{macrocode}
%
+% \changes{v1.0h}{2024/09/20}{moved \cs{@kernel at refstepcounter} into ltxref}
% This is needed for \pkg{longtable} because \cs{refstepcounter} is
% setting up a target when \pkg{hyperref} is loaded and we don't
-% want that in \pkg{longtable}.
-%
-% TODO: move to right .dtx file
-% \begin{macrocode}
-\let\@kernel at refstepcounter\refstepcounter
-% \end{macrocode}
+% want that in \pkg{longtable}.%%
% Prevent longtable patching by hyperref until hyperref does so automatically:
% \begin{macrocode}
\def\hyper at nopatch@longtable{}
diff --git a/base/ltxref.dtx b/base/ltxref.dtx
index a2aecef3..ca13183a 100644
--- a/base/ltxref.dtx
+++ b/base/ltxref.dtx
@@ -33,7 +33,7 @@
%<*driver>
% \fi
\ProvidesFile{ltxref.dtx}
- [2023/06/15 v1.1r LaTeX Kernel (Cross Referencing)]
+ [2024/09/20 v1.1r LaTeX Kernel (Cross Referencing)]
% \iffalse
\documentclass{ltxdoc}
\GetFileInfo{ltxref.dtx}
@@ -418,16 +418,21 @@
% Step the counter and allow for labels to point to its current value.
% \changes{v1.1n}{2020/05/05}{record the counter name in \cs{@currentcounter}}
% \changes{v1.1o}{2020/08/23}{add default definition of \cs{@currentcounter}}
-% \changes{v1.1r}{2023/06/15}{set also \@currentHref}
-% \changes{v1.1r}{2023/06/15}{provide a kernel copy \@kernel at refstepcounter}
+% \changes{v1.1r}{2024/09/20}{set also \@currentHref}
+% \changes{v1.1r}{2024/09/20}{provide a kernel copy \@kernel at refstepcounter}
+% \changes{v1.1r}{2024/09/20}{add sockets}
% \begin{macrocode}
%<latexrelease>\IncludeInRelease{2022/06/01}%
%<latexrelease> {\Ref}{Add starred version}%
\def\@currentcounter{}
%<latexrelease>\EndIncludeInRelease
-%<latexrelease>\IncludeInRelease{2023/11/01}%
+%<latexrelease>\IncludeInRelease{2024/11/01}%
%<latexrelease> {\@currentHref}{set theHcounter representation}%
-\def\refstepcounter#1{\stepcounter{#1}%
+\NewSocket{refstepcounter}{1}
+\NewSocket{refstepcounter/target}{0}
+\def\refstepcounter#1{%
+ \UseSocket{refstepcounter}{%
+ \stepcounter{#1}%
\edef\@currentcounter{#1}%
\xdef\@currentHref {#1.\csname theH#1\endcsname}%
\protected at edef\@currentlabel
@@ -453,6 +458,9 @@
% argument}
% \begin{macrocode}
{\csname p@#1\expandafter\endcsname\csname the#1\endcsname}%
+ \UseTaggingSocket{refstepcounter}%
+ \UseSocket{refstepcounter/target}%
+ }%
}
\let\@kernel at refstepcounter\refstepcounter
%<latexrelease>\EndIncludeInRelease
More information about the latex3-commits
mailing list.