Skip to content

Commit

Permalink
reword new lablel item
Browse files Browse the repository at this point in the history
  • Loading branch information
davidcarlisle committed Dec 4, 2022
1 parent ebf1330 commit 411c3c1
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions base/doc/ltnews37.tex
Expand Up @@ -151,23 +151,23 @@ \section{New or improved commands}

\subsection{Extension of the \cs{label} command}

Up to now the \cs{label} command stored in standard \LaTeX{} into the
\cs{newlabel} command in the \texttt{.aux} file two data:
Prevously, in standard \LaTeX{}, the \cs{label} command stored into the
\cs{newlabel} command in the \texttt{.aux} file two values:
\cs{@currentlabel}, which normally contains the state of the current
counter, and \cs{thepage} for the current page number. \pkg{hyperref} and
\pkg{nameref} patch the \cs{label} command to store five data:
\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
\cs{@currentHref} which is the name of the destination needed to create an
active link. The fifth data container is currently only used if external
references are loaded with the \pkg{xr-hyper} package.
active link. The fifth argument was only used if external
references were loaded with the \pkg{xr-hyper} package.

Starting with this release the number of arguments have be unified.
Starting with this release, the number of arguments have been unified.
\cs{label} now writes a
\cs{newlabel} command containing five data: \cs{@currentlabel},
\cs{newlabel} command containing five values: \cs{@currentlabel},
\cs{thepage}, \cs{@currentlabelname}, \cs{@currentHref}. The fifth
container is reserved for the kernel and contains data needed for the
tagged PDF project.
tagged PDF project.

Additionally a hook with the name \texttt{label} has been added. It is
executed before the writing to the \texttt{.aux} file. Code using
Expand Down

0 comments on commit 411c3c1

Please sign in to comment.