[latex3-commits] [latex3/latex3] main: Add \fparray_if_exist:N(TF) (c102d67ea)
github at latex-project.org
github at latex-project.org
Mon Apr 1 08:51:40 CEST 2024
Repository : https://github.com/latex3/latex3
On branch : main
Link : https://github.com/latex3/latex3/commit/c102d67eaaf0939dd2e847caa9b3fcbf94941124
>---------------------------------------------------------------
commit c102d67eaaf0939dd2e847caa9b3fcbf94941124
Author: Yukai Chou <muzimuzhi at gmail.com>
Date: Mon Apr 1 07:00:48 2024 +0800
Add \fparray_if_exist:N(TF)
>---------------------------------------------------------------
c102d67eaaf0939dd2e847caa9b3fcbf94941124
l3kernel/CHANGELOG.md | 1 +
l3kernel/l3fparray.dtx | 23 +++++++++++++++++++++++
2 files changed, 24 insertions(+)
diff --git a/l3kernel/CHANGELOG.md b/l3kernel/CHANGELOG.md
index 8adc810a7..acc77b579 100644
--- a/l3kernel/CHANGELOG.md
+++ b/l3kernel/CHANGELOG.md
@@ -10,6 +10,7 @@ this project uses date-based 'snapshot' version identifiers.
### Added
- `\prop_(g)put_if_not_in:Nnn` (renamed from `\prop_(g)put_if_new:Nnn`)
- `\intarray_if_exist:N(TF)`
+- `\fparray_if_exist:N(TF)`
### Changed
- Expand object names in `\pdf_object_...` functions (issue \#1521)
diff --git a/l3kernel/l3fparray.dtx b/l3kernel/l3fparray.dtx
index 3feb5d3f7..fe9cc0df6 100644
--- a/l3kernel/l3fparray.dtx
+++ b/l3kernel/l3fparray.dtx
@@ -116,6 +116,19 @@
% \cs{fparray_count:N} \meta{fparray~var}, an error occurs.
% \end{function}
%
+% \section{Floating point array conditional}
+%
+% \begin{function}[pTF, added = 2024-03-31]
+% {\fparray_if_exist:N, \fparray_if_exist:c}
+% \begin{syntax}
+% \cs{fparray_if_exist_p:N} \meta{fparray~var}
+% \cs{fparray_if_exist:NTF} \meta{fparray~var} \Arg{true code} \Arg{false code}
+% \end{syntax}
+% Tests whether the \meta{fparray~var} is currently defined. This
+% does not check that the \meta{fparray~var} really is a floating
+% point array variable.
+% \end{function}
+%
% \end{documentation}
%
% \begin{implementation}
@@ -395,6 +408,16 @@
% \end{macro}
% \end{macro}
%
+% \begin{macro}[pTF]{\fparray_if_exist:N, \fparray_if_exist:c}
+% Copies of the \texttt{cs} functions defined in \pkg{l3basics}.
+% \begin{macrocode}
+\prg_new_eq_conditional:NNn \fparray_if_exist:N \cs_if_exist:N
+ { TF , T , F , p }
+\prg_new_eq_conditional:NNn \fparray_if_exist:c \cs_if_exist:c
+ { TF , T , F , p }
+% \end{macrocode}
+% \end{macro}
+%
% \begin{macrocode}
%</package>
% \end{macrocode}
More information about the latex3-commits
mailing list.