[latex3-commits] [latex3/latex2e] lab-review-01: correct arguments, WIP (6788a79b)

github at latex-project.org github at latex-project.org
Thu May 25 00:53:17 CEST 2023


Repository : https://github.com/latex3/latex2e
On branch  : lab-review-01
Link       : https://github.com/latex3/latex2e/commit/6788a79b21c6e7fa08b37e664308405013c698b2

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

commit 6788a79b21c6e7fa08b37e664308405013c698b2
Author: Ulrike Fischer <fischer at troubleshooting-tex.de>
Date:   Thu May 25 00:53:17 2023 +0200

    correct arguments, WIP


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

6788a79b21c6e7fa08b37e664308405013c698b2
 required/latex-lab/latex-lab-toc-hyperref-changes.dtx |  2 +-
 required/latex-lab/latex-lab-toc-kernel-changes.dtx   | 18 +++++++++---------
 2 files changed, 10 insertions(+), 10 deletions(-)

diff --git a/required/latex-lab/latex-lab-toc-hyperref-changes.dtx b/required/latex-lab/latex-lab-toc-hyperref-changes.dtx
index 90c70102..cdd8a7d0 100644
--- a/required/latex-lab/latex-lab-toc-hyperref-changes.dtx
+++ b/required/latex-lab/latex-lab-toc-hyperref-changes.dtx
@@ -108,7 +108,7 @@
       {
         \tl_if_blank:nF {#3}
          {
-           \tl_if_blank:nF {#4} %????????? #4?
+           \tl_if_blank:nF {#4} %
              {
                \int_case:nnF {\Hy at linktoc}
                  {
diff --git a/required/latex-lab/latex-lab-toc-kernel-changes.dtx b/required/latex-lab/latex-lab-toc-kernel-changes.dtx
index f819fc8e..d9e1ed84 100644
--- a/required/latex-lab/latex-lab-toc-kernel-changes.dtx
+++ b/required/latex-lab/latex-lab-toc-kernel-changes.dtx
@@ -232,7 +232,7 @@
 %  \item[\#3] target  (the fourth argument of a \cs{contentsline}
 %  \end{itemize}
 %    \begin{macrocode}
-\NewMirroredHookPairWithArguments{contentsline/number/before}{contentsline/number/after}{4}%
+\NewMirroredHookPairWithArguments{contentsline/number/before}{contentsline/number/after}{1}%
 \NewMirroredHookPairWithArguments{contentsline/text/before}{contentsline/text/after}{4}%
 \NewMirroredHookPairWithArguments{contentsline/page/before}{contentsline/page/after}{4}%
 %    \end{macrocode}
@@ -278,9 +278,9 @@
 % Inside or outside the box?
 %    \begin{macrocode}
 \def\numberline#1{\hb at xt@\@tempdima{%
-  \UseHook{contentsline/number/before}%
+  \UseHookWithArguments{contentsline/number/before}{1}{#1}%
   #1\hfil
-  \UseHook{contentsline/number/after}%
+  \UseHookWithArguments{contentsline/number/after}{1}{#1}%
   }}
 %    \end{macrocode}
 %
@@ -314,7 +314,7 @@
        \nobreak
     \endgroup
   \fi}
-\renewcommand*\l at section[2]{%
+\renewcommand*\l at section[3]{%
   \ifnum \c at tocdepth >\z@
     \addpenalty\@secpenalty
     \addvspace{1.0em \@plus\p@}%
@@ -339,7 +339,7 @@
  }
 \AddToHook{class/report/after}
  {
-    \renewcommand*\l at part[2]{%
+    \renewcommand*\l at part[3]{%
      \ifnum \c at tocdepth >-2\relax
        \addpenalty{-\@highpenalty}%
        \addvspace{2.25em \@plus\p@}%
@@ -361,7 +361,7 @@
           \nobreak
        \endgroup
      \fi}
-   \renewcommand*\l at chapter[2]{%
+   \renewcommand*\l at chapter[3]{%
      \ifnum \c at tocdepth >\m at ne
        \addpenalty{-\@highpenalty}%
        \vskip 1.0em \@plus\p@
@@ -388,7 +388,7 @@
  }
 \AddToHook{class/book/after}
  {
-    \renewcommand*\l at part[2]{%
+    \renewcommand*\l at part[3]{%
      \ifnum \c at tocdepth >-2\relax
        \addpenalty{-\@highpenalty}%
        \addvspace{2.25em \@plus\p@}%
@@ -400,7 +400,7 @@
           \large \bfseries
           \UseHookWithArguments{contentsline/text/before}{4}{\toclevel at part}{#1}{#2}{#3}%%
           \csname contentsline at text@-1 at format\endcsname{#1}%
-          \UseHookWithArguments\UseHook{contentsline/text/after}{4}{\toclevel at part}{#1}{#2}{#3}%%
+          \UseHookWithArguments{contentsline/text/after}{4}{\toclevel at part}{#1}{#2}{#3}%%
           \hfil
           \hb at xt@\@pnumwidth{\hss
           \UseHookWithArguments{contentsline/page/before}{4}{\toclevel at part}{#1}{#2}{#3}%%
@@ -410,7 +410,7 @@
           \nobreak
        \endgroup
      \fi}
-   \renewcommand*\l at chapter[2]{%
+   \renewcommand*\l at chapter[3]{%
      \ifnum \c at tocdepth >\m at ne
        \addpenalty{-\@highpenalty}%
        \vskip 1.0em \@plus\p@





More information about the latex3-commits mailing list.