[latex3-commits] [git/LaTeX3-latex3-latex2e] develop: Add .code property (8a206c36)
Joseph Wright
joseph.wright at morningstar2.co.uk
Fri Feb 4 15:37:32 CET 2022
Repository : https://github.com/latex3/latex2e
On branch : develop
Link : https://github.com/latex3/latex2e/commit/8a206c36838a3f9ba97878b9ac4220ed3f84f644
>---------------------------------------------------------------
commit 8a206c36838a3f9ba97878b9ac4220ed3f84f644
Author: Joseph Wright <joseph.wright at morningstar2.co.uk>
Date: Fri Feb 4 14:33:36 2022 +0000
Add .code property
>---------------------------------------------------------------
8a206c36838a3f9ba97878b9ac4220ed3f84f644
base/changes.txt | 1 +
base/ltkeys.dtx | 4 +++-
2 files changed, 4 insertions(+), 1 deletion(-)
diff --git a/base/changes.txt b/base/changes.txt
index a1acf7f5..0768de67 100644
--- a/base/changes.txt
+++ b/base/changes.txt
@@ -11,6 +11,7 @@ are not part of the distribution.
* ltkeys.dtx (section{Plain \TeX}):
Create key properties at the 2e layer
+ Add .code property
2022-01-25 Frank Mittelbach <Frank.Mittelbach at latex-project.org>
diff --git a/base/ltkeys.dtx b/base/ltkeys.dtx
index 429be4ce..0ff3d9cf 100644
--- a/base/ltkeys.dtx
+++ b/base/ltkeys.dtx
@@ -70,6 +70,7 @@
%
% The basic properties provided here are
% \begin{itemize}
+% \item \texttt{.code} --- execute arbitrary code
% \item \texttt{.if} --- sets a \TeX{} \cs{if...} switch
% \item \texttt{.store} --- stores a value in a macro
% \item \texttt{.usage} -- defines whether the option can be given only
@@ -151,7 +152,7 @@
%
% \subsection{Key properties}
%
-% \begin{macro}{.if, .store, .usage}
+% \begin{macro}{.code, .if, .store, .usage}
% \begin{macrocode}
\group_begin:
\cs_set_protected:Npn \@@_tmp:nn #1#2
@@ -163,6 +164,7 @@
\@@_tmp:nn
}
\@@_tmp:nn
+ { code } { code }
{ legacy_if_set:n } { if }
{ tl_set:N } { store }
{ usage:n } { usage }
More information about the latex3-commits
mailing list.