[latex3-commits] [git/LaTeX3-latex3-latex2e] develop: added \clap to the kernel (ac79dd7a)

Frank Mittelbach frank.mittelbach at latex-project.org
Fri Mar 6 17:01:35 CET 2020


Repository : https://github.com/latex3/latex2e
On branch  : develop
Link       : https://github.com/latex3/latex2e/commit/ac79dd7ac132a68532c2535d2edda35e6c648477

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

commit ac79dd7ac132a68532c2535d2edda35e6c648477
Author: Frank Mittelbach <frank.mittelbach at latex-project.org>
Date:   Fri Mar 6 17:01:35 2020 +0100

    added \clap to the kernel


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

ac79dd7ac132a68532c2535d2edda35e6c648477
 base/changes.txt      |  5 +++++
 base/doc/ltnews32.tex | 15 +++++++++++++++
 base/ltboxes.dtx      | 12 ++++++++++--
 3 files changed, 30 insertions(+), 2 deletions(-)

diff --git a/base/changes.txt b/base/changes.txt
index 96654ea5..6b44680c 100644
--- a/base/changes.txt
+++ b/base/changes.txt
@@ -6,6 +6,11 @@ completeness or accuracy and it contains some references to files that
 are not part of the distribution.
 ================================================================================
 
+2020-03-06  Frank Mittelbach  <Frank.Mittelbach at latex-project.org>
+
+	* ltboxes.dtx (subsection{Some low-level constructs}):
+	Macro \clap added (from mathtools)
+
 2020-03-05  Joseph Wright <joseph.wright at morningstar2.co.uk>
 
 	* ltexpl.dtx: Pre-load xparse where expl3 does not define \NewDocumentCommand
diff --git a/base/doc/ltnews32.tex b/base/doc/ltnews32.tex
index bd1ebffb..37e18210 100644
--- a/base/doc/ltnews32.tex
+++ b/base/doc/ltnews32.tex
@@ -141,6 +141,12 @@ This document is under construction \ldots
 
 
 
+\section{Providing \pkg{xparse} in the format}
+
+\emph{write section}
+
+
+
 \section{Other changes to the \LaTeX{} kernel}
 
 
@@ -201,6 +207,15 @@ equation number.
 \githubissue{252}
 
 
+\subsection{Provide \cs{clap}}
+
+\LaTeX{} has inherited \cs{llap} and \cs{rlap} from plain \TeX{}
+(zero-sized boxes whose content sticks out to the left or right,
+respecively) but there isn't a corresponding \cs{clap} commad that
+centers the material. This missing command has been added by several
+addon packages, e.g., \pkg{mathtools}, and has now been added to the
+kernel.
+
 
 \section{Changes to packages in the \pkg{graphics} category}
 
diff --git a/base/ltboxes.dtx b/base/ltboxes.dtx
index 61ea8723..051922b6 100644
--- a/base/ltboxes.dtx
+++ b/base/ltboxes.dtx
@@ -33,7 +33,7 @@
 %<*driver>
 % \fi
 \ProvidesFile{ltboxes.dtx}
-             [2019/08/27 v1.3b LaTeX Kernel (Box Commands)]
+             [2020/03/06 v1.3c LaTeX Kernel (Box Commands)]
 % \iffalse
 \documentclass{ltxdoc}
 \GetFileInfo{ltboxes.dtx}
@@ -1290,13 +1290,21 @@
 %
 %  \begin{macro}{\rlap}
 %  \begin{macro}{\llap}
+%  \begin{macro}{\clap}
 %    These macros place text to the left or right of the current
 %    reference point without taking up space.
-%  \end{macro}
 %    \begin{macrocode}
 \DeclareRobustCommand\rlap[1]{\hb at xt@\z@{#1\hss}}
 \DeclareRobustCommand\llap[1]{\hb at xt@\z@{\hss#1}}
 %    \end{macrocode}
+%    And here is the version that centers, it was initially introduced by
+%    \texttt{mathtools}.
+% \changes{v1.3c}{2020/03/06}{Macro \cs{clap} added}
+%    \begin{macrocode}
+\DeclareRobustCommand\clap[1]{\hb at xt@\z@{\hss#1\hss}}
+%    \end{macrocode}
+%  \end{macro}
+%  \end{macro}
 %  \end{macro}
 %
 %    \begin{macrocode}





More information about the latex3-commits mailing list.