[latex3-commits] [latex3/latex2e] develop: add missing variants, #1532 (57700bd11)
github at latex-project.org
github at latex-project.org
Tue Nov 5 16:07:08 CET 2024
Repository : https://github.com/latex3/latex2e
On branch : develop
Link : https://github.com/latex3/latex2e/commit/57700bd1175d76001c70fb254036004abf73e28c
>---------------------------------------------------------------
commit 57700bd1175d76001c70fb254036004abf73e28c
Author: Ulrike Fischer <fischer at troubleshooting-tex.de>
Date: Tue Nov 5 15:12:05 2024 +0100
add missing variants, #1532
>---------------------------------------------------------------
57700bd1175d76001c70fb254036004abf73e28c
base/changes.txt | 3 +++
base/ltproperties.dtx | 8 ++++----
base/testfiles/properties-005-test.lvt | 12 ++++++++++++
base/testfiles/properties-005-test.tlg | 6 ++++++
4 files changed, 25 insertions(+), 4 deletions(-)
diff --git a/base/changes.txt b/base/changes.txt
index 6321cf6fd..048ecfcaa 100644
--- a/base/changes.txt
+++ b/base/changes.txt
@@ -6,6 +6,9 @@ to completeness or accuracy and it contains some references to files that are
not part of the distribution.
================================================================================
+2024-11-05 Ulrike Fischer <Ulrike.Fischer at latex-project.org>
+ * ltproperties.dtx: add missing variants (gh/1532).
+
================================================================================
All changes above are only part of the development branch for the next release.
================================================================================
diff --git a/base/ltproperties.dtx b/base/ltproperties.dtx
index 77d36a43a..6351d08c8 100644
--- a/base/ltproperties.dtx
+++ b/base/ltproperties.dtx
@@ -30,7 +30,7 @@
%<*driver>
% \fi
\ProvidesFile{ltproperties.dtx}
- [2024/10/21 v1.0h LaTeX Kernel (Properties)]
+ [2024/11/05 v1.0i LaTeX Kernel (Properties)]
% \iffalse
%
\documentclass[full]{l3doc}
@@ -741,7 +741,7 @@
\prg_return_false:
}
}
-\prg_generate_conditional_variant:Nnn \property_if_exist:n {e} {TF}
+\prg_generate_conditional_variant:Nnn \property_if_exist:n {e} { p , T , F, TF }
% \end{macrocode}
% \end{macro}
%
@@ -770,7 +770,7 @@
\prg_return_false:
}
}
-\prg_generate_conditional_variant:Nnn \property_if_recorded:n {e} {TF}
+\prg_generate_conditional_variant:Nnn \property_if_recorded:n {e} { p , T , F, TF }
% \end{macrocode}
% \end{macro}
%
@@ -801,7 +801,7 @@
\prg_return_false:
}
}
-\prg_generate_conditional_variant:Nnn \property_if_recorded:nn {ee} {TF}
+\prg_generate_conditional_variant:Nnn \property_if_recorded:nn {ee} { p , T , F, TF }
% \end{macrocode}
% \end{macro}
%
diff --git a/base/testfiles/properties-005-test.lvt b/base/testfiles/properties-005-test.lvt
index 37be0effe..eeca92d84 100644
--- a/base/testfiles/properties-005-test.lvt
+++ b/base/testfiles/properties-005-test.lvt
@@ -84,6 +84,18 @@ xxxxx
\IfPropertyRecordedTF {label-known}{target} {true}{false}
}
}
+
+\TEST{variants}
+ {
+ \ASSERT{true}
+ {
+ \property_if_recorded:eT {label-known}{true}
+ }
+ \ASSERT{}
+ {
+ \property_if_exist:eF {name}{false}
+ }
+ }
\ExplSyntaxOff
\end{document}
diff --git a/base/testfiles/properties-005-test.tlg b/base/testfiles/properties-005-test.tlg
index 29c154a9e..87c232c7d 100644
--- a/base/testfiles/properties-005-test.tlg
+++ b/base/testfiles/properties-005-test.tlg
@@ -54,5 +54,11 @@ TEST 7: knownlabel,knownproperty
PASSED
PASSED
============================================================
+============================================================
+TEST 8: variants
+============================================================
+PASSED
+PASSED
+============================================================
[1
] (properties-005-test.aux)
More information about the latex3-commits
mailing list.