[latex3-commits] [latex3/latex2e] gh1460: forgot one test; drop the redefinitions in lab code (no longer needed) (6f4e0998)

github at latex-project.org github at latex-project.org
Tue Sep 10 22:43:03 CEST 2024


Repository : https://github.com/latex3/latex2e
On branch  : gh1460
Link       : https://github.com/latex3/latex2e/commit/6f4e09988819ac8e04f6a996b3a507af95ad65bf

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

commit 6f4e09988819ac8e04f6a996b3a507af95ad65bf
Author: Frank Mittelbach <frank.mittelbach at latex-project.org>
Date:   Tue Sep 10 22:43:03 2024 +0200

    forgot one test; drop the redefinitions in lab code (no longer needed)


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

6f4e09988819ac8e04f6a996b3a507af95ad65bf
 required/latex-lab/latex-lab-block.dtx | 70 +---------------------------------
 1 file changed, 2 insertions(+), 68 deletions(-)

diff --git a/required/latex-lab/latex-lab-block.dtx b/required/latex-lab/latex-lab-block.dtx
index b13f0077..5e6bc2f7 100644
--- a/required/latex-lab/latex-lab-block.dtx
+++ b/required/latex-lab/latex-lab-block.dtx
@@ -9,8 +9,8 @@
 %
 %    https://www.latex-project.org/lppl.txt
 %
-\def\ltlabblockdate{2024-09-06}
-\def\ltlabblockversion{0.8q}
+\def\ltlabblockdate{2024-09-10}
+\def\ltlabblockversion{0.8r}
 %<*driver>
 \documentclass[kernel]{l3doc}
 \usepackage{amstext}
@@ -2105,72 +2105,6 @@
 % \end{template}
 %
 %
-%  \begin{macro}{\addpenalty}
-%    The 2e implementation of \cs{addpenalty} (and \cs{addvspace})
-%    have a strange \cs{@noitemerr} if they are called in
-%    hmode. Generating this error in this case is definitely not
-%    necessary and in fact wrong, so below it is commented
-%    out. However, one could consider changing the logic and simply
-%    issue a \cs{par} in that case rather than omitting the penalty
-%    (or the vspace).\fmi{Evaluate if that change makes sense.}
-%  \changes{v0.8q}{2024/09/02}{Drop \cs{@noitemerr}}
-%    \begin{macrocode}
-\def\addpenalty#1{%
-  \ifvmode
-    \if at minipage
-    \else
-      \if at nobreak
-      \else
-        \ifdim\lastskip=\z@
-          \penalty#1\relax
-        \else
-          \@tempskipb\lastskip
-          \begingroup
-            \@tempskipa\@tempskipb
-            \advance \@tempskipb
-              \ifdim\prevdepth>\maxdepth\maxdepth\else
-                 \ifdim \prevdepth = -\@m\p@ \z@ \else \prevdepth \fi
-               \fi
-             \vskip -\@tempskipb
-             \penalty#1%
-             \ifdim\@tempskipa=\@tempskipb
-             \else
-               \advance\@tempskipb -\@tempskipa
-               \vskip \@tempskipb
-             \fi
-             \vskip \@tempskipa
-          \endgroup
-        \fi
-      \fi
-    \fi
-%  \else
-%    \@noitemerr
-  \fi
-}%
-%    \end{macrocode}
-%  \end{macro}
-%
-%
-%  \begin{macro}{\addvspace}
-%    See \cs{addpenalty}
-%  \changes{v0.8q}{2024/09/02}{Drop \cs{@noitemerr}}
-%    \begin{macrocode}
-\def\addvspace#1{%
-  \ifvmode
-     \if at minipage\else
-       \ifdim \lastskip =\z@
-         \@vspace at calcify{#1}%
-       \else
-       \setlength\@tempskipb{#1}%
-         \@xaddvskip
-       \fi
-     \fi
-%  \else
-%    \@noitemerr
-  \fi}
-%    \end{macrocode}
-%  \end{macro}
-%
 %  \begin{macro}{\__kernel_displayblock_begin:,
 %                \__kernel_displayblock_beginpar_hmode:w,
 %                \__kernel_displayblock_beginpar_vmode:}





More information about the latex3-commits mailing list.