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

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


Repository : https://github.com/latex3/latex2e
On branch  : hotfix/gh962-et-al
Link       : https://github.com/latex3/latex2e/commit/2515deeb821cd62544c62f3c17b820df3b70fab2

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

commit 2515deeb821cd62544c62f3c17b820df3b70fab2
Author: Frank Mittelbach <frank.mittelbach at latex-project.org>
Date:   Wed Nov 30 10:33:03 2022 +0100

    also alter vspace handling for calc


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

2515deeb821cd62544c62f3c17b820df3b70fab2
 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.