[latex3-commits] [git/LaTeX3-latex3-latex2e] gh962-et-al-dev: also alter vspace handling for calc (fa5ee9d3)

Frank Mittelbach frank.mittelbach at latex-project.org
Wed Nov 30 10:37:07 CET 2022


Repository : https://github.com/latex3/latex2e
On branch  : gh962-et-al-dev
Link       : https://github.com/latex3/latex2e/commit/fa5ee9d3362f07839f94dc4ff1756c1d4fd8436b

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

commit fa5ee9d3362f07839f94dc4ff1756c1d4fd8436b
Author: Frank Mittelbach <frank.mittelbach at latex-project.org>
Date:   Wed Nov 30 10:37:07 2022 +0100

    also alter vspace handling for calc


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

fa5ee9d3362f07839f94dc4ff1756c1d4fd8436b
 base/ltspace.dtx | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/base/ltspace.dtx b/base/ltspace.dtx
index 6147bea6..30bda278 100644
--- a/base/ltspace.dtx
+++ b/base/ltspace.dtx
@@ -438,12 +438,13 @@
 %    \cs{setlength}. This way the \texttt{calc} package can operate on
 %    the argument value.
 % \changes{v1.3m}{2020/04/21}{Support calc syntax (gh/152)}
+% \changes{v1.3o}{2022/11/28}{Support calc syntax without a group (gh/967)}
 %    \begin{macrocode}
 %</2ekernel>
 %<*2ekernel|latexrelease>
 %<latexrelease>\IncludeInRelease{2020/10/01}%
 %<latexrelease>                 {\@vspace at calcify}{Add calc support}%
-\def\@vspace at calcify#1{\begingroup\setlength\skip@{#1}\vskip\skip@\endgroup}
+\def\@vspace at calcify#1{\setlength\sp at ce@skip{#1}\vskip\sp at ce@skip}
 %</2ekernel|latexrelease>
 %<latexrelease>\EndIncludeInRelease
 %    \end{macrocode}
@@ -1274,8 +1275,8 @@
 %    This is a bug fix so
 %    we do not provide rollback to the incorrect intermediate version.
 %    \begin{macrocode}
-\newskip\hsp at ce@skip
-\def\@hspace#1{\setlength\hsp at ce@skip{#1}\hskip\hsp at ce@skip}
+\newskip\sp at ce@skip
+\def\@hspace#1{\setlength\sp at ce@skip{#1}\hskip\sp at ce@skip}
 %</2ekernel|latexrelease>
 %<latexrelease>\EndIncludeInRelease
 %    \end{macrocode}





More information about the latex3-commits mailing list.