[latex3-commits] [latex3/latex2e] newlabel: adapt doku (5ecc1811)

github at latex-project.org github at latex-project.org
Thu May 11 15:27:53 CEST 2023


Repository : https://github.com/latex3/latex2e
On branch  : newlabel
Link       : https://github.com/latex3/latex2e/commit/5ecc1811853e302d9560fd1fc0e10a7bb6e01b19

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

commit 5ecc1811853e302d9560fd1fc0e10a7bb6e01b19
Author: Ulrike Fischer <fischer at troubleshooting-tex.de>
Date:   Thu May 11 15:27:53 2023 +0200

    adapt doku


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

5ecc1811853e302d9560fd1fc0e10a7bb6e01b19
 base/doc/ltnews37.tex | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/base/doc/ltnews37.tex b/base/doc/ltnews37.tex
index e12dfbc4..666a60eb 100644
--- a/base/doc/ltnews37.tex
+++ b/base/doc/ltnews37.tex
@@ -373,7 +373,7 @@ second argument of the \cs{newlabel} command in the \texttt{.aux} file two value
 counter, and \cs{thepage} for the current page number.  \pkg{hyperref} and 
 \pkg{nameref} patched the \cs{label} command to store five values: 
 Additionally they save \cs{@currentlabelname}, which normally contains the 
-current title text and can be retrieved with \cs{nameref} and 
+current title text and can be retrieved with \cs{nameref}, and 
 \cs{@currentHref} which is the name of the destination needed to create an 
 active link. The fifth argument was only used if external 
 references were loaded with the \pkg{xr-hyper} package. 
@@ -384,8 +384,9 @@ Starting with this release, the number of values have been unified.
 \cs{@currentlabel}, \cs{thepage}, \cs{@currentlabelname}, 
 \cs{@currentHref}. The fifth value is reserved for the kernel.
 
-Additionally a hook with argument with the name \texttt{label} has been 
-added. It is executed before the writing to the \texttt{.aux} file. Code 
+Additionally a hook with one argument with the name \texttt{cmd/label/before} has been 
+added. It is executed before the label writes to the \texttt{.aux} file
+but \emph{after} the \cs{@bsphack} command and \emph{inside} a group. Code 
 using the hook can refer to the label argument with \verb+#1+. 
 
 \section{Code improvements}





More information about the latex3-commits mailing list.