[latex3-commits] [latex3/latex2e] add-theHcount: remove theH-patches from latex-lab (273c35ba)

github at latex-project.org github at latex-project.org
Thu Jun 15 20:11:25 CEST 2023


Repository : https://github.com/latex3/latex2e
On branch  : add-theHcount
Link       : https://github.com/latex3/latex2e/commit/273c35badeec51eb875d1ee6f2ee4f91bee9667b

>---------------------------------------------------------------

commit 273c35badeec51eb875d1ee6f2ee4f91bee9667b
Author: Ulrike Fischer <fischer at troubleshooting-tex.de>
Date:   Thu Jun 15 20:11:25 2023 +0200

    remove theH-patches from latex-lab


>---------------------------------------------------------------

273c35badeec51eb875d1ee6f2ee4f91bee9667b
 .../latex-lab/latex-lab-toc-kernel-changes.dtx     | 59 ++--------------------
 1 file changed, 3 insertions(+), 56 deletions(-)

diff --git a/required/latex-lab/latex-lab-toc-kernel-changes.dtx b/required/latex-lab/latex-lab-toc-kernel-changes.dtx
index 1c1ce7f4..5364b017 100644
--- a/required/latex-lab/latex-lab-toc-kernel-changes.dtx
+++ b/required/latex-lab/latex-lab-toc-kernel-changes.dtx
@@ -57,68 +57,15 @@
 % if a non-standard class is used.
 %
 % \subsection{Providing the counter representation \cs{theHxx} generally}
-% [kernel?]
 % 
-% The \cs{theHxx} representation allows to create a unique representation of a counter
-% that is for example used to create destination names. It will also be needed
-% to add |/Ref| keys to various tagging structures. It makes therefore sense
-% to provide it by default as soon as a counter is created. The |\@addtoreset| change
-% (taken also from hyperref) tries to ensure the counter stays unique if it is reset.
+% This has been moved to base.
 % 
-% At first we suppress the patches from hyperref:
+% We still suppress the patches from hyperref:
 %    \begin{macrocode}
 %<*kernelchange>
 \def\hyper at nopatch@counter{}
 %    \end{macrocode}
-%
-%    \begin{macrocode}
-\def\@definecounter#1{\expandafter\newcount\csname c@#1\endcsname
-     \setcounter{#1}\z@
-     \global\expandafter\let\csname cl@#1\endcsname\@empty
-     \@addtoreset{#1}{@ckpt}%
-     \global\expandafter\let\csname p@#1\endcsname\@empty
-     \expandafter\gdef\csname theH#1\endcsname{\the\value{#1}}%new
-     \expandafter
-     \gdef\csname the#1\expandafter\endcsname\expandafter
-          {\expandafter\@arabic\csname c@#1\endcsname}}
-\def\@addtoreset#1#2{\expandafter\@cons\csname cl@#2\endcsname {{#1}}%
-  \expandafter\gdef\csname theH#1\endcsname{\csname theH#2\endcsname.\the\value{#1}}%
-}
-%    \end{macrocode}
-% The following counters are defined in the kernel
-%    \begin{macrocode}
-\gdef\theHenumi{\the\value{enumi}}
-\gdef\theHenumii{\the\value{enumii}}
-\gdef\theHenumiii{\the\value{enumiii}}
-\gdef\theHenumiv{\the\value{enumiv}}
-\gdef\theHequation{\the\value{equation}}
-\gdef\theHfootnote{\the\value{footnote}}
-\gdef\theHmpfootnote{\the\value{mpfootnote}}
-%    \end{macrocode}
-%
-% \subsection{Providing and updating \cs{@currentHref}}
-% [kernel?]
-%
-%  \cs{@currentHref} contains the current unique representation of a counter.
-%  It is useful also without hyperref as it allows to connect with a |/Ref|
-%  key a toc entry with the heading it refers too. So \cs{refstepcounter}
-%  is extended to update the command. This is done at the begin so that the
-%  hyperref code can still adapt it later (using the cmd/refstepcounter/after hook
-%  would be too late, and could also break with cleverref.)
-%
-%  We also provide a kernel version that hyperref doesn't touch and so will never
-%  set a target.
-%    \begin{macrocode}
-\def\@currentHref{}
-\def\refstepcounter#1{\stepcounter{#1}%
-    \edef\@currentcounter{#1}%
-    \xdef\@currentHref {#1.\csname theH#1\endcsname}%
-    \protected at edef\@currentlabel
-       {\csname p@#1\expandafter\endcsname\csname the#1\endcsname}%
-}
-\let\@kernel at refstepcounter\refstepcounter
-%    \end{macrocode}
-%
+
 % \subsection{Assigning the headings level numbers}
 % [kernel?]
 %





More information about the latex3-commits mailing list.