[latex3-commits] [git/LaTeX3-latex3-latex2e] picture-lengths: picture mode commands in ltboxes (74495499)

David Carlisle d.p.carlisle at gmail.com
Sat Aug 15 19:04:11 CEST 2020


Repository : https://github.com/latex3/latex2e
On branch  : picture-lengths
Link       : https://github.com/latex3/latex2e/commit/7449549915998a4b32dc1bddeb19efeb625c203b

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

commit 7449549915998a4b32dc1bddeb19efeb625c203b
Author: David Carlisle <d.p.carlisle at gmail.com>
Date:   Sat Aug 15 18:04:11 2020 +0100

    picture mode commands in ltboxes


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

7449549915998a4b32dc1bddeb19efeb625c203b
 base/ltboxes.dtx | 38 +++++++++++++++++++++++++++++++++-----
 1 file changed, 33 insertions(+), 5 deletions(-)

diff --git a/base/ltboxes.dtx b/base/ltboxes.dtx
index 051922b6..91e90c40 100644
--- a/base/ltboxes.dtx
+++ b/base/ltboxes.dtx
@@ -33,7 +33,7 @@
 %<*driver>
 % \fi
 \ProvidesFile{ltboxes.dtx}
-             [2020/03/06 v1.3c LaTeX Kernel (Box Commands)]
+             [2020/10/01 v1.4a LaTeX Kernel (Box Commands)]
 % \iffalse
 \documentclass{ltxdoc}
 \GetFileInfo{ltboxes.dtx}
@@ -365,8 +365,13 @@
 % \begin{macro}{\@imakepicbox}
 % picture mode version
 %    \begin{macrocode}
+%</2ekernel>
+%<*2ekernel|latexrelease>
+%<latexrelease>\IncludeInRelease{2020/10/01}%
+%<latexrelease>                 {\@imakepicbox}{default units}%
 \long\def\@imakepicbox(#1,#2)[#3]#4{%
-  \vbox to#2\unitlength
+  \@defaultunitsset\@tempdimc{#1}\unitlength
+  \vbox to\@tempdimc
    {\let\mb at b\vss \let\mb at l\hss\let\mb at r\hss
     \let\mb at t\vss
     \@tfor\reserved at a :=#3\do{%
@@ -376,15 +381,38 @@
         \expandafter\let\csname mb@\reserved at a\endcsname\relax
       \fi}%
     \mb at t
-    \hb at xt@ #1\unitlength{\mb at l #4\mb at r}%
+    \@defaultunitsset\@tempdimc{#1}\unitlength
+    \hb at xt@\@tempdimc{\mb at l #4\mb at r}%
     \mb at b
+    \kern\z@}}
+%</2ekernel|latexrelease>
+%    \end{macrocode}
+%    
+%    \begin{macrocode}
+%<latexrelease>\EndIncludeInRelease
+%<latexrelease>\IncludeInRelease{0000/00/00}%
+%<latexrelease>                 {\@imakepicbox}{default units}%
+%<latexrelease>\long\def\@imakepicbox(#1,#2)[#3]#4{%
+%<latexrelease>  \vbox to#2\unitlength
+%<latexrelease>   {\let\mb at b\vss \let\mb at l\hss\let\mb at r\hss
+%<latexrelease>    \let\mb at t\vss
+%<latexrelease>    \@tfor\reserved at a :=#3\do{%
+%<latexrelease>      \if s\reserved at a
+%<latexrelease>        \let\mb at l\relax\let\mb at r\relax
+%<latexrelease>      \else
+%<latexrelease>        \expandafter\let\csname mb@\reserved at a\endcsname\relax
+%<latexrelease>      \fi}%
+%<latexrelease>    \mb at t
+%<latexrelease>    \hb at xt@ #1\unitlength{\mb at l #4\mb at r}%
+%<latexrelease>    \mb at b
+%<latexrelease>    \kern\z@}}
+%<latexrelease>\EndIncludeInRelease
+%<*2ekernel>
 %    \end{macrocode}
 % This kern ensures that a |b| option aligns on the bottom of the
 % text rather than the baseline. this is the documented behaviour in
 % the \LaTeX Book. The kern is removed in compatibility mode.
 %    \begin{macrocode}
-    \kern\z@}}
-%    \end{macrocode}
 % \end{macro}
 %
 %





More information about the latex3-commits mailing list.