[latex3-commits] [git/LaTeX3-latex3-latex2e] keyval-detect: Add code documentation (cc699f6d)

PhelypeOleinik phelype.oleinik at latex-project.org
Wed Aug 31 02:18:33 CEST 2022


Repository : https://github.com/latex3/latex2e
On branch  : keyval-detect
Link       : https://github.com/latex3/latex2e/commit/cc699f6d7a1cef932fc70d64c0b0579096d1ab88

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

commit cc699f6d7a1cef932fc70d64c0b0579096d1ab88
Author: PhelypeOleinik <phelype.oleinik at latex-project.org>
Date:   Tue Aug 30 21:18:33 2022 -0300

    Add code documentation


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

cc699f6d7a1cef932fc70d64c0b0579096d1ab88
 base/ltcmd.dtx | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/base/ltcmd.dtx b/base/ltcmd.dtx
index 1ca9329a..e1944af7 100644
--- a/base/ltcmd.dtx
+++ b/base/ltcmd.dtx
@@ -4040,7 +4040,12 @@
 %   with a search for |=| signs. We need an \enquote{action} loop here
 %   so we do not get mislead by for example |{=}|. As the code here is for
 %   very much predictable types of input, we hard-code what constitutes
-%   math mode opening and closing.
+%   math mode opening and closing.  At the very beginning, the default
+%   key (|#1|) and the argument as given by the user (|#2|) are placed
+%   right after the \cs{q_recursion_stop}, so that when the recursion
+%   ends, the macros \cs{@@_arg_to_keyvalue_set_default:nn} or
+%   \cs{@@_arg_to_keyvalue_set_keyvalue:nn} can be used to grab these
+%   two items and set the \cs{ProcessedArgument} accordingly.
 %    \begin{macrocode}
 \cs_new_protected:Npn \@@_arg_to_keyvalue_auxv:nn #1#2
   {





More information about the latex3-commits mailing list.