[latex3-commits] [git/LaTeX3-latex3-latex2e] develop: Create 2e key properties (b93da59d)

Joseph Wright joseph.wright at morningstar2.co.uk
Fri Feb 4 15:37:27 CET 2022


Repository : https://github.com/latex3/latex2e
On branch  : develop
Link       : https://github.com/latex3/latex2e/commit/b93da59d25f2bc9a4b7c26af5f23a813fb07aaf3

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

commit b93da59d25f2bc9a4b7c26af5f23a813fb07aaf3
Author: Joseph Wright <joseph.wright at morningstar2.co.uk>
Date:   Fri Feb 4 14:32:32 2022 +0000

    Create 2e key properties


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

b93da59d25f2bc9a4b7c26af5f23a813fb07aaf3
 base/changes.txt |  5 +++++
 base/ltkeys.dtx  | 27 ++++++++++++++++++++++++++-
 2 files changed, 31 insertions(+), 1 deletion(-)

diff --git a/base/changes.txt b/base/changes.txt
index 91411f55..a1acf7f5 100644
--- a/base/changes.txt
+++ b/base/changes.txt
@@ -7,6 +7,11 @@ completeness or accuracy and it contains some references to files that
 are not part of the distribution.
 ================================================================================
 
+2022-02-05  Joseph Wright  <Joseph.Wright at latex-project.org>
+
+	* ltkeys.dtx (section{Plain \TeX}):
+	  Create key properties at the 2e layer
+
 2022-01-25  Frank Mittelbach  <Frank.Mittelbach at latex-project.org>
 
 	* ltplain.dtx (section{Plain \TeX}):
diff --git a/base/ltkeys.dtx b/base/ltkeys.dtx
index a77d587c..429be4ce 100644
--- a/base/ltkeys.dtx
+++ b/base/ltkeys.dtx
@@ -33,7 +33,7 @@
 %<*driver>
 % \fi
 \ProvidesFile{ltkeys.dtx}
-             [2021/11/30 v1.0a LaTeX Kernel (Kevyal options)]
+             [2022/02/04 v1.0b LaTeX Kernel (Kevyal options)]
 % \iffalse
 \documentclass{l3doc}
 \GetFileInfo{ltkeys.dtx}
@@ -149,6 +149,31 @@
 \ExplSyntaxOn
 %    \end{macrocode}
 %
+% \subsection{Key properties}
+%
+% \begin{macro}{.if, .store, .usage}
+%    \begin{macrocode}
+\group_begin:
+  \cs_set_protected:Npn \@@_tmp:nn #1#2
+    {
+      \quark_if_recursion_tail_stop:n {#1}
+      \cs_new_eq:cc
+        { \c_@@_props_root_str . #2 }
+        { \c_@@_props_root_str . #1 }
+      \@@_tmp:nn
+    }
+  \@@_tmp:nn
+    { legacy_if_set:n } { if }
+    { tl_set:N }        { store }
+    { usage:n }         { usage }
+    { \q_recursion_tail } { }
+    \q_recursion_stop
+\group_end:
+%    \end{macrocode}
+% \end{macro}
+%
+% \subsection{Main mechanism}
+% 
 %    \begin{macrocode}
 \cs_generate_variant:Nn \clist_put_right:Nn { Nv }
 %    \end{macrocode}





More information about the latex3-commits mailing list.