[latex3-commits] [git/LaTeX3-latex3-latex3] latex2e/gh569: Define missing parts for \__cmd_copy:NN (61771d076)

PhelypeOleinik phelype.oleinik at latex-project.org
Mon Aug 9 05:04:47 CEST 2021


Repository : https://github.com/latex3/latex3
On branch  : latex2e/gh569
Link       : https://github.com/latex3/latex3/commit/61771d076040d976d5fb510ed18edc29bd3735c1

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

commit 61771d076040d976d5fb510ed18edc29bd3735c1
Author: PhelypeOleinik <phelype.oleinik at latex-project.org>
Date:   Mon Aug 9 00:04:47 2021 -0300

    Define missing parts for \__cmd_copy:NN


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

61771d076040d976d5fb510ed18edc29bd3735c1
 l3packages/xparse/xparse.dtx | 18 ++++++++++++++++++
 1 file changed, 18 insertions(+)

diff --git a/l3packages/xparse/xparse.dtx b/l3packages/xparse/xparse.dtx
index 78a73fddd..bfe7ceb9f 100644
--- a/l3packages/xparse/xparse.dtx
+++ b/l3packages/xparse/xparse.dtx
@@ -1249,6 +1249,24 @@
 %    \end{macrocode}
 % \end{macro}
 %
+% \subsection{Copying a command and its internal structure}
+%
+% The apparatus for copying commands is almost entirely in |ltcmd.dtx|,
+% preloaded in the \LaTeXe{} kernel.  The missing parts, regarding
+% copying the deprecated argument types |G|, |l| and |u| boil down to
+% copying the expandable grabber for |u|.
+%
+% \begin{macro}{\@@_copy_grabber_u:w}
+%   An expandable |u|-type uses a dedicated grabber just like a
+%   |D|-type, except that both its delimiter tokens are omitted, so to
+%   copy that we just copy a |D|-type and leave the last two arguments
+%   empty:
+%    \begin{macrocode}
+\cs_new_protected:Npn \@@_copy_grabber_u:w #1 #2 #3
+  { \@@_copy_grabber_D:w {#1} {#2} {#3} { } { } }
+%    \end{macrocode}
+% \end{macro}
+%
 % \subsection{Grabbing arguments}
 %
 % \begin{macro}{\@@_grab_G:w}





More information about the latex3-commits mailing list.