[latex3-commits] [git/LaTeX3-latex3-latex2e] develop: updateded \refstepcounter (6d2555bd)
Frank Mittelbach
frank.mittelbach at latex-project.org
Thu Aug 22 22:58:05 CEST 2019
Repository : https://github.com/latex3/latex2e
On branch : develop
Link : https://github.com/latex3/latex2e/commit/6d2555bdfbb3534f61cbac2d56b247c62b852afe
>---------------------------------------------------------------
commit 6d2555bdfbb3534f61cbac2d56b247c62b852afe
Author: Frank Mittelbach <frank.mittelbach at latex-project.org>
Date: Thu Aug 22 22:58:05 2019 +0200
updateded \refstepcounter
>---------------------------------------------------------------
6d2555bdfbb3534f61cbac2d56b247c62b852afe
base/changes.txt | 7 +++++++
base/ltxref.dtx | 10 ++++++++--
2 files changed, 15 insertions(+), 2 deletions(-)
diff --git a/base/changes.txt b/base/changes.txt
index 11ad40cf..9fcc430d 100644
--- a/base/changes.txt
+++ b/base/changes.txt
@@ -4,6 +4,13 @@ completeness or accuracy and it contains some references to files that
are not part of the distribution.
=======================================================================
+2019-08-22 Frank Mittelbach <Frank.Mittelbach at latex-project.org>
+
+ * ltxref.dtx (subsection{Cross Referencing}):
+ Allow \p at ... commands in \refstepcounter definition to have an
+ argument (receiving the \the...). This was previously only the
+ case when varioref was loaded.
+
2019-07-11 Frank Mittelbach <Frank.Mittelbach at latex-project.org>
* utf8ienc.dtx (subsection{The mapping table}):
diff --git a/base/ltxref.dtx b/base/ltxref.dtx
index 366d2c9f..af626617 100644
--- a/base/ltxref.dtx
+++ b/base/ltxref.dtx
@@ -33,7 +33,7 @@
%<*driver>
% \fi
\ProvidesFile{ltxref.dtx}
- [2014/09/29 v1.1k LaTeX Kernel (Cross Referencing)]
+ [2019/08/22 v1.1l LaTeX Kernel (Cross Referencing)]
% \iffalse
\documentclass{ltxdoc}
\GetFileInfo{ltxref.dtx}
@@ -267,7 +267,13 @@
% \begin{macrocode}
\def\refstepcounter#1{\stepcounter{#1}%
\protected at edef\@currentlabel
- {\csname p@#1\endcsname\csname the#1\endcsname}%
+% \end{macrocode}
+% By generating the second csname first the |\p at ...| command can
+% grab it as an argument which can be helpful for more complicated
+% typesetting arrangements.
+% \changes{v1.1l}{2019/08/22}{Allow \cs{p at ...} to have an argument}
+% \begin{macrocode}
+ {\csname p@#1\expandafter\endcsname\csname the#1\endcsname}%
}
% \end{macrocode}
% \end{macro}
More information about the latex3-commits
mailing list