[latex3-commits] [git/LaTeX3-latex3-latex2e] marks: handled \enlargethispage stuff (e8b4a5c4)

Frank Mittelbach frank.mittelbach at latex-project.org
Sun Apr 3 19:48:44 CEST 2022


Repository : https://github.com/latex3/latex2e
On branch  : marks
Link       : https://github.com/latex3/latex2e/commit/e8b4a5c42d5071b00aaad3d5c875db70467bc7e7

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

commit e8b4a5c42d5071b00aaad3d5c875db70467bc7e7
Author: Frank Mittelbach <frank.mittelbach at latex-project.org>
Date:   Sun Apr 3 19:48:44 2022 +0200

    handled \enlargethispage stuff


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

e8b4a5c42d5071b00aaad3d5c875db70467bc7e7
 base/ltmarks.dtx | 9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)

diff --git a/base/ltmarks.dtx b/base/ltmarks.dtx
index 8bc57d5c..9282141b 100644
--- a/base/ltmarks.dtx
+++ b/base/ltmarks.dtx
@@ -766,7 +766,14 @@
   \group_begin:
     \dim_set:Nn \tex_splitmaxdepth:D \c_max_dim
     \int_set:Nn \tex_vbadness:D      \c_max_int
-    \vbox_set:Nn \l_@@_box {#2}
+    \vbox_set:Nn \l_@@_box
+       {
+         #2
+         \tex_unskip:D
+         \box_set_to_last:N \l_@@_box
+         \box_if_vertical:NT \l_@@_box
+             { \vbox_unpack:N \l_@@_box }
+       }
     \vbox_set_split_to_ht:NNn \l_@@_box \l_@@_box \c_max_dim
 %    \end{macrocode}
 %    After this action we can get first and last marks of the various





More information about the latex3-commits mailing list.