[latex3-commits] [latex3/latex3] main: explicitly document .default:n for unknown (88fa87f6f)
github at latex-project.org
github at latex-project.org
Wed Jan 3 14:52:42 CET 2024
Repository : https://github.com/latex3/latex3
On branch : main
Link : https://github.com/latex3/latex3/commit/88fa87f6fa4c48b934bf2cf7507d9970a725e393
>---------------------------------------------------------------
commit 88fa87f6fa4c48b934bf2cf7507d9970a725e393
Author: Jonathan Spratte <jspratte at yahoo.de>
Date: Tue Jan 2 20:24:06 2024 +0100
explicitly document .default:n for unknown
>---------------------------------------------------------------
88fa87f6fa4c48b934bf2cf7507d9970a725e393
l3kernel/l3keys.dtx | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/l3kernel/l3keys.dtx b/l3kernel/l3keys.dtx
index 9f5e644dd..bcc47280d 100644
--- a/l3kernel/l3keys.dtx
+++ b/l3kernel/l3keys.dtx
@@ -775,12 +775,14 @@
% If a key has not previously been defined (is unknown), \cs{keys_set:nn}
% looks for a special \texttt{unknown} key for the same module, and if this is
% not defined raises an error indicating that the key name was unknown. This
-% mechanism can be used for example to issue custom error texts.
+% mechanism can be used for example to issue custom error texts. The
+% \texttt{unknown} key also supports the \texttt{.default:n} property.
% \begin{verbatim}
% \keys_define:nn { mymodule }
% {
% unknown .code:n =
-% You~tried~to~set~key~'\l_keys_key_str'~to~'#1'.
+% You~tried~to~set~key~'\l_keys_key_str'~to~'#1'. ,
+% unknown .default:V = \c_novalue_tl
% }
% \end{verbatim}
%
More information about the latex3-commits
mailing list.