[latex3-commits] [git/LaTeX3-latex3-latex2e] gh709: add a sentence about starred form of counterwithin for #709 and some minor docu updates in lthooks (c6a94dc0)

Frank Mittelbach frank.mittelbach at latex-project.org
Fri Nov 26 14:13:49 CET 2021


Repository : https://github.com/latex3/latex2e
On branch  : gh709
Link       : https://github.com/latex3/latex2e/commit/c6a94dc08e453bb29b1574ed34b56ec3e4704e12

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

commit c6a94dc08e453bb29b1574ed34b56ec3e4704e12
Author: Frank Mittelbach <frank.mittelbach at latex-project.org>
Date:   Fri Nov 26 14:13:49 2021 +0100

    add a sentence about starred form of counterwithin for #709 and some minor docu updates in lthooks


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

c6a94dc08e453bb29b1574ed34b56ec3e4704e12
 base/doc/ltnews34.tex |  3 ++-
 base/lthooks.dtx      | 27 ++++++---------------------
 2 files changed, 8 insertions(+), 22 deletions(-)

diff --git a/base/doc/ltnews34.tex b/base/doc/ltnews34.tex
index 11f1ce2b..fe3f7b21 100644
--- a/base/doc/ltnews34.tex
+++ b/base/doc/ltnews34.tex
@@ -493,7 +493,8 @@ for which these are now the preferred replacements.
 This optional argument 
 specifies the format of the counter, such as \cs{roman};
 the default value is \cs{arabic}.
-
+Alternatively, you can use a starred form, in which case the format of the
+counter is not altered at all.
 
 \subsection{Tests for package and class loading}
 
diff --git a/base/lthooks.dtx b/base/lthooks.dtx
index 5b3d80e9..3cf33982 100644
--- a/base/lthooks.dtx
+++ b/base/lthooks.dtx
@@ -32,27 +32,12 @@
 %
 %    \begin{macrocode}
 \def\lthooksversion{v1.0s}
-\def\lthooksdate{2021/09/28}
+\def\lthooksdate{2021/11/26}
 %    \end{macrocode}
 %
 %<*driver>
 \documentclass{l3doc}
 
-% bug fix fo l3doc.cls
-\ExplSyntaxOn
-\cs_set_protected:Npn \__codedoc_macro_typeset_one:nN #1#2
-  {
-    \vbox_set:Nn \l__codedoc_macro_box
-      {
-        \vbox_unpack_drop:N \l__codedoc_macro_box
-        \hbox { \llap { \__codedoc_print_macroname:nN {#1} #2
-            \MacroFont       % <----- without it the \ is in lmr10 if a link is made
-            \
-        } }
-      }
-    \int_incr:N \l__codedoc_macro_int
-  }
-\ExplSyntaxOff
 
 \providecommand\InternalDetectionOff{}
 \providecommand\InternalDetectionOn{}
@@ -2219,7 +2204,7 @@
 %    A token list holding the relation between \meta{label1} and
 %    \meta{label2} in the \meta{hook}.  The \meta{labels} are lexically
 %    (reverse) sorted to ensure that two labels always point to the same
-%    token list.  For global rules, the \meta{hook} name is |??|.
+%    token list.  For global rules, the \meta{hook} name is \texttt{??}.
 %
 %    \item[\cs{@@\textvisiblespace\meta{hook}}] The code that is actually executed
 %    when the hook is called in the document is stored in this token
@@ -3589,7 +3574,7 @@
 %    expansion in the code later on.
 %
 %    \cs{@@\textvisiblespace??} isn't used, but it has to be defined to trick
-%    the code into thinking that \verb=??= is actually a hook.
+%    the code into thinking that \texttt{??} is actually a hook.
 %    \begin{macrocode}
 \prop_new:c {g_@@_??_code_prop}
 \prop_new:c {@@~??}
@@ -4169,7 +4154,7 @@
 %    \meta{hook-code-plist}.  We are about to apply the next rule and
 %    enter it into the data structure.  \cs{@@_apply_label_pair:nnn} will
 %    just call \cs{@@_label_if_exist_apply:nnnF} for the \meta{hook}, and
-%    if no rule is found, also try the \meta{hook} name \verb=??=
+%    if no rule is found, also try the \meta{hook} name \texttt{??}
 %    denoting a default hook rule.
 %
 %    \cs{@@_label_if_exist_apply:nnnF} will check if the rule exists for
@@ -4286,7 +4271,7 @@
 %    out to be a real issue, we can improve the code.
 %
 %    Here the code is removed from \cs{l_@@_cur_hook_tl} rather than
-%    \verb=#3= because the latter may be \verb=??=, and the default
+%    \verb=#3= because the latter may be \texttt{??}, and the default
 %    hook doesn't store any code.  Removing it instead from \cs{l_@@_cur_hook_tl}
 %    makes the default rules \verb=->= and  \verb=<-= work properly.
 %    \begin{macrocode}
@@ -4535,7 +4520,7 @@
 %   \meta{inline function} is executed with |#1|${}={}$\meta{relation},
 %   |#2|${}={}$\meta{label_1}\verb=|=\meta{label_2},
 %   and |#3|${}={}$\meta{hook} (the latter may be the argument |#1| to
-%   \cs{@@_list_rules:nn}, or |??| if it is a default rule).
+%   \cs{@@_list_rules:nn}, or \texttt{??} if it is a default rule).
 %    \begin{macrocode}
 \cs_new_protected:Npn \@@_list_rules:nn #1 #2
   {





More information about the latex3-commits mailing list.