[latex3-commits] [git/LaTeX3-latex3-latex2e] gh239: Reduce information clutter in ltnews entry (92b6c3e9)

PhelypeOleinik tex.phelype at gmail.com
Sun May 10 05:56:55 CEST 2020


Repository : https://github.com/latex3/latex2e
On branch  : gh239
Link       : https://github.com/latex3/latex2e/commit/92b6c3e9045a3641aac21790a51d833e9313e3f9

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

commit 92b6c3e9045a3641aac21790a51d833e9313e3f9
Author: PhelypeOleinik <tex.phelype at gmail.com>
Date:   Sun May 10 00:56:55 2020 -0300

    Reduce information clutter in ltnews entry


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

92b6c3e9045a3641aac21790a51d833e9313e3f9
 base/doc/ltnews32.tex | 26 +++++---------------------
 1 file changed, 5 insertions(+), 21 deletions(-)

diff --git a/base/doc/ltnews32.tex b/base/doc/ltnews32.tex
index 505f8f9d..ef35c7bc 100644
--- a/base/doc/ltnews32.tex
+++ b/base/doc/ltnews32.tex
@@ -403,27 +403,11 @@ From this release onwards, the \LaTeXe{} kernel provides
 and one shouldn't need to worry about the definition of the command:
 \cs{NewCommandCopy} should do the hard work.
 
-For developers, lower level macros \cs{CopyKernelRobustCommand} and
-\cs{CopyKernelCmdWithOptArg} are provided to copy commands defined with
-\cs{DeclareRobustCommand} and commands defined with an optional
-argument, respectively.  Conditionals \cs{IfKernelRobustCommand} and
-\cs{IfKernelCmdWithOptArg} are provided to check these cases if
-necessary.  These macros are faster than the generic \cs{NewCommandCopy}
-because they don't have to test for all possibilities.
-
-Also, at an even lower level, developers can add their own types of
-macros to the list of tests done by \cs{NewCommandCopy}.  A hook
-\cs{@declarecommandcopylisthook} whose items are pair of control
-sequences which test if a macro is of a given type, and copy that type
-of macro.  For instance, \pkg{etoolbox} provides a different type of
-robust command defined with \cs{newrobustcmd}.  This can be added to the
-list of tests with:
-\begin{verbatim}
-\g at addto@macro\@declarecommandcopylisthook
-  {{\ifrobustcmd\letrobustcmd}}
-\end{verbatim}
-then \cs{NewCommandCopy} will support macros defined with
-\cs{newrobustcmd}.
+\cs{NewCommandCopy} knows about the different types of definitions from
+the \LaTeXe{} kernel, and also from other packages, such as
+\pkg{xparse}'s command declarations like \cs{NewDocumentCommand}, and
+\pkg{etoolbox}'s \cs{newrobustcmd}, and it can be extended to cover
+further packages.
 
 \githubissue{239}
 





More information about the latex3-commits mailing list.