[latex3-commits] [git/LaTeX3-latex3-latex3] master: Missing variants of \vbox_set_split_to_ht:NNn (01dad45)

Joseph Wright joseph.wright at morningstar2.co.uk
Sat Dec 29 10:52:58 CET 2018


Repository : https://github.com/latex3/latex3
On branch  : master
Link       : https://github.com/latex3/latex3/commit/01dad45066287d7c33dea0c29d60581acba003be

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

commit 01dad45066287d7c33dea0c29d60581acba003be
Author: Joseph Wright <joseph.wright at morningstar2.co.uk>
Date:   Sat Dec 29 09:52:58 2018 +0000

    Missing variants of \vbox_set_split_to_ht:NNn


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

01dad45066287d7c33dea0c29d60581acba003be
 l3kernel/l3box.dtx                      |   27 ++++++++++++++++++++++-----
 l3kernel/testfiles/m3expl001.luatex.tlg |    7 +++++++
 l3kernel/testfiles/m3expl001.ptex.tlg   |    7 +++++++
 l3kernel/testfiles/m3expl001.tlg        |    7 +++++++
 l3kernel/testfiles/m3expl001.uptex.tlg  |    7 +++++++
 l3kernel/testfiles/m3expl001.xetex.tlg  |    7 +++++++
 l3kernel/testfiles/m3expl003.luatex.tlg |    7 +++++++
 l3kernel/testfiles/m3expl003.ptex.tlg   |    7 +++++++
 l3kernel/testfiles/m3expl003.tlg        |    7 +++++++
 l3kernel/testfiles/m3expl003.uptex.tlg  |    7 +++++++
 l3kernel/testfiles/m3expl003.xetex.tlg  |    7 +++++++
 11 files changed, 92 insertions(+), 5 deletions(-)

diff --git a/l3kernel/l3box.dtx b/l3kernel/l3box.dtx
index 1360af3..5d912cd 100644
--- a/l3kernel/l3box.dtx
+++ b/l3kernel/l3box.dtx
@@ -593,16 +593,19 @@
 % \end{function}
 %
 %
-% \begin{function}[updated = 2011-10-22]{\vbox_set_split_to_ht:NNn}
+% \begin{function}[updated = 2018-12-29]
+%   {
+%     \vbox_set_split_to_ht:NNn, \vbox_set_split_to_ht:cNn,
+%     \vbox_set_split_to_ht:Ncn, \vbox_set_split_to_ht:ccn,
+%     \vbox_gset_split_to_ht:NNn, \vbox_gset_split_to_ht:cNn,
+%     \vbox_gset_split_to_ht:Ncn, \vbox_gset_split_to_ht:ccn
+%   }
 %   \begin{syntax}
 %      \cs{vbox_set_split_to_ht:NNn} \meta{box_1} \meta{box_2} \Arg{dimexpr}
 %   \end{syntax}
 %   Sets \meta{box_1} to contain material to the height given by the
 %   \meta{dimexpr} by removing content from the top of \meta{box_2}
 %   (which must be a vertical box).
-%   \begin{texnote}
-%     This is the \TeX{} primitive \tn{vsplit}.
-%   \end{texnote}
 % \end{function}
 %
 % \begin{function}{\vbox_unpack:N, \vbox_unpack:c}
@@ -1542,13 +1545,27 @@
 % \end{macro}
 % \end{macro}
 %
-% \begin{macro}{\vbox_set_split_to_ht:NNn}
+% \begin{macro}
+%   {
+%     \vbox_set_split_to_ht:NNn, \vbox_set_split_to_ht:cNn,
+%     \vbox_set_split_to_ht:Ncn, \vbox_set_split_to_ht:ccn,
+%     \vbox_gset_split_to_ht:NNn, \vbox_gset_split_to_ht:cNn,
+%     \vbox_gset_split_to_ht:Ncn, \vbox_gset_split_to_ht:ccn,
+%   }
 % \testfile*
 %   Splitting a vertical box in two.
 %    \begin{macrocode}
 \__kernel_patch:nnNNpn { \__kernel_chk_var_local:N #1 } { }
 \cs_new_protected:Npn \vbox_set_split_to_ht:NNn #1#2#3
   { \tex_setbox:D #1 \tex_vsplit:D #2 to \@@_dim_eval:n {#3} }
+\cs_generate_variant:Nn \vbox_set_split_to_ht:NNn { c , Nc , cc }
+\__kernel_patch:nnNNpn { \__kernel_chk_var_global:N #1 } { }
+\cs_new_protected:Npn \vbox_gset_split_to_ht:NNn #1#2#3
+  {
+    \tex_global:D \tex_setbox:D #1
+      \tex_vsplit:D #2 to \@@_dim_eval:n {#3}
+  }
+\cs_generate_variant:Nn \vbox_gset_split_to_ht:NNn { c , Nc , cc }
 %    \end{macrocode}
 % \end{macro}
 %
diff --git a/l3kernel/testfiles/m3expl001.luatex.tlg b/l3kernel/testfiles/m3expl001.luatex.tlg
index 2fb0810..dcd4f4e 100644
--- a/l3kernel/testfiles/m3expl001.luatex.tlg
+++ b/l3kernel/testfiles/m3expl001.luatex.tlg
@@ -5178,6 +5178,13 @@ Defining \vbox_unpack_clear:N on line ...
 Defining \vbox_unpack:c on line ...
 Defining \vbox_unpack_clear:c on line ...
 Defining \vbox_set_split_to_ht:NNn on line ...
+Defining \vbox_set_split_to_ht:cNn on line ...
+Defining \vbox_set_split_to_ht:Ncn on line ...
+Defining \vbox_set_split_to_ht:ccn on line ...
+Defining \vbox_gset_split_to_ht:NNn on line ...
+Defining \vbox_gset_split_to_ht:cNn on line ...
+Defining \vbox_gset_split_to_ht:Ncn on line ...
+Defining \vbox_gset_split_to_ht:ccn on line ...
 Defining \l__box_angle_fp on line ...
 Defining \l__box_cos_fp on line ...
 Defining \l__box_sin_fp on line ...
diff --git a/l3kernel/testfiles/m3expl001.ptex.tlg b/l3kernel/testfiles/m3expl001.ptex.tlg
index 02d8c9c..c5b8e6b 100644
--- a/l3kernel/testfiles/m3expl001.ptex.tlg
+++ b/l3kernel/testfiles/m3expl001.ptex.tlg
@@ -5474,6 +5474,13 @@ Defining \vbox_unpack_clear:N on line ...
 Defining \vbox_unpack:c on line ...
 Defining \vbox_unpack_clear:c on line ...
 Defining \vbox_set_split_to_ht:NNn on line ...
+Defining \vbox_set_split_to_ht:cNn on line ...
+Defining \vbox_set_split_to_ht:Ncn on line ...
+Defining \vbox_set_split_to_ht:ccn on line ...
+Defining \vbox_gset_split_to_ht:NNn on line ...
+Defining \vbox_gset_split_to_ht:cNn on line ...
+Defining \vbox_gset_split_to_ht:Ncn on line ...
+Defining \vbox_gset_split_to_ht:ccn on line ...
 Defining \l__box_angle_fp on line ...
 Defining \l__box_cos_fp on line ...
 Defining \l__box_sin_fp on line ...
diff --git a/l3kernel/testfiles/m3expl001.tlg b/l3kernel/testfiles/m3expl001.tlg
index 058599e..2a73a4b 100644
--- a/l3kernel/testfiles/m3expl001.tlg
+++ b/l3kernel/testfiles/m3expl001.tlg
@@ -5474,6 +5474,13 @@ Defining \vbox_unpack_clear:N on line ...
 Defining \vbox_unpack:c on line ...
 Defining \vbox_unpack_clear:c on line ...
 Defining \vbox_set_split_to_ht:NNn on line ...
+Defining \vbox_set_split_to_ht:cNn on line ...
+Defining \vbox_set_split_to_ht:Ncn on line ...
+Defining \vbox_set_split_to_ht:ccn on line ...
+Defining \vbox_gset_split_to_ht:NNn on line ...
+Defining \vbox_gset_split_to_ht:cNn on line ...
+Defining \vbox_gset_split_to_ht:Ncn on line ...
+Defining \vbox_gset_split_to_ht:ccn on line ...
 Defining \l__box_angle_fp on line ...
 Defining \l__box_cos_fp on line ...
 Defining \l__box_sin_fp on line ...
diff --git a/l3kernel/testfiles/m3expl001.uptex.tlg b/l3kernel/testfiles/m3expl001.uptex.tlg
index 9359847..bc5ff6f 100644
--- a/l3kernel/testfiles/m3expl001.uptex.tlg
+++ b/l3kernel/testfiles/m3expl001.uptex.tlg
@@ -5471,6 +5471,13 @@ Defining \vbox_unpack_clear:N on line ...
 Defining \vbox_unpack:c on line ...
 Defining \vbox_unpack_clear:c on line ...
 Defining \vbox_set_split_to_ht:NNn on line ...
+Defining \vbox_set_split_to_ht:cNn on line ...
+Defining \vbox_set_split_to_ht:Ncn on line ...
+Defining \vbox_set_split_to_ht:ccn on line ...
+Defining \vbox_gset_split_to_ht:NNn on line ...
+Defining \vbox_gset_split_to_ht:cNn on line ...
+Defining \vbox_gset_split_to_ht:Ncn on line ...
+Defining \vbox_gset_split_to_ht:ccn on line ...
 Defining \l__box_angle_fp on line ...
 Defining \l__box_cos_fp on line ...
 Defining \l__box_sin_fp on line ...
diff --git a/l3kernel/testfiles/m3expl001.xetex.tlg b/l3kernel/testfiles/m3expl001.xetex.tlg
index eefc2d1..e530435 100644
--- a/l3kernel/testfiles/m3expl001.xetex.tlg
+++ b/l3kernel/testfiles/m3expl001.xetex.tlg
@@ -5189,6 +5189,13 @@ Defining \vbox_unpack_clear:N on line ...
 Defining \vbox_unpack:c on line ...
 Defining \vbox_unpack_clear:c on line ...
 Defining \vbox_set_split_to_ht:NNn on line ...
+Defining \vbox_set_split_to_ht:cNn on line ...
+Defining \vbox_set_split_to_ht:Ncn on line ...
+Defining \vbox_set_split_to_ht:ccn on line ...
+Defining \vbox_gset_split_to_ht:NNn on line ...
+Defining \vbox_gset_split_to_ht:cNn on line ...
+Defining \vbox_gset_split_to_ht:Ncn on line ...
+Defining \vbox_gset_split_to_ht:ccn on line ...
 Defining \l__box_angle_fp on line ...
 Defining \l__box_cos_fp on line ...
 Defining \l__box_sin_fp on line ...
diff --git a/l3kernel/testfiles/m3expl003.luatex.tlg b/l3kernel/testfiles/m3expl003.luatex.tlg
index 2fb0810..dcd4f4e 100644
--- a/l3kernel/testfiles/m3expl003.luatex.tlg
+++ b/l3kernel/testfiles/m3expl003.luatex.tlg
@@ -5178,6 +5178,13 @@ Defining \vbox_unpack_clear:N on line ...
 Defining \vbox_unpack:c on line ...
 Defining \vbox_unpack_clear:c on line ...
 Defining \vbox_set_split_to_ht:NNn on line ...
+Defining \vbox_set_split_to_ht:cNn on line ...
+Defining \vbox_set_split_to_ht:Ncn on line ...
+Defining \vbox_set_split_to_ht:ccn on line ...
+Defining \vbox_gset_split_to_ht:NNn on line ...
+Defining \vbox_gset_split_to_ht:cNn on line ...
+Defining \vbox_gset_split_to_ht:Ncn on line ...
+Defining \vbox_gset_split_to_ht:ccn on line ...
 Defining \l__box_angle_fp on line ...
 Defining \l__box_cos_fp on line ...
 Defining \l__box_sin_fp on line ...
diff --git a/l3kernel/testfiles/m3expl003.ptex.tlg b/l3kernel/testfiles/m3expl003.ptex.tlg
index 02d8c9c..c5b8e6b 100644
--- a/l3kernel/testfiles/m3expl003.ptex.tlg
+++ b/l3kernel/testfiles/m3expl003.ptex.tlg
@@ -5474,6 +5474,13 @@ Defining \vbox_unpack_clear:N on line ...
 Defining \vbox_unpack:c on line ...
 Defining \vbox_unpack_clear:c on line ...
 Defining \vbox_set_split_to_ht:NNn on line ...
+Defining \vbox_set_split_to_ht:cNn on line ...
+Defining \vbox_set_split_to_ht:Ncn on line ...
+Defining \vbox_set_split_to_ht:ccn on line ...
+Defining \vbox_gset_split_to_ht:NNn on line ...
+Defining \vbox_gset_split_to_ht:cNn on line ...
+Defining \vbox_gset_split_to_ht:Ncn on line ...
+Defining \vbox_gset_split_to_ht:ccn on line ...
 Defining \l__box_angle_fp on line ...
 Defining \l__box_cos_fp on line ...
 Defining \l__box_sin_fp on line ...
diff --git a/l3kernel/testfiles/m3expl003.tlg b/l3kernel/testfiles/m3expl003.tlg
index 058599e..2a73a4b 100644
--- a/l3kernel/testfiles/m3expl003.tlg
+++ b/l3kernel/testfiles/m3expl003.tlg
@@ -5474,6 +5474,13 @@ Defining \vbox_unpack_clear:N on line ...
 Defining \vbox_unpack:c on line ...
 Defining \vbox_unpack_clear:c on line ...
 Defining \vbox_set_split_to_ht:NNn on line ...
+Defining \vbox_set_split_to_ht:cNn on line ...
+Defining \vbox_set_split_to_ht:Ncn on line ...
+Defining \vbox_set_split_to_ht:ccn on line ...
+Defining \vbox_gset_split_to_ht:NNn on line ...
+Defining \vbox_gset_split_to_ht:cNn on line ...
+Defining \vbox_gset_split_to_ht:Ncn on line ...
+Defining \vbox_gset_split_to_ht:ccn on line ...
 Defining \l__box_angle_fp on line ...
 Defining \l__box_cos_fp on line ...
 Defining \l__box_sin_fp on line ...
diff --git a/l3kernel/testfiles/m3expl003.uptex.tlg b/l3kernel/testfiles/m3expl003.uptex.tlg
index 9359847..bc5ff6f 100644
--- a/l3kernel/testfiles/m3expl003.uptex.tlg
+++ b/l3kernel/testfiles/m3expl003.uptex.tlg
@@ -5471,6 +5471,13 @@ Defining \vbox_unpack_clear:N on line ...
 Defining \vbox_unpack:c on line ...
 Defining \vbox_unpack_clear:c on line ...
 Defining \vbox_set_split_to_ht:NNn on line ...
+Defining \vbox_set_split_to_ht:cNn on line ...
+Defining \vbox_set_split_to_ht:Ncn on line ...
+Defining \vbox_set_split_to_ht:ccn on line ...
+Defining \vbox_gset_split_to_ht:NNn on line ...
+Defining \vbox_gset_split_to_ht:cNn on line ...
+Defining \vbox_gset_split_to_ht:Ncn on line ...
+Defining \vbox_gset_split_to_ht:ccn on line ...
 Defining \l__box_angle_fp on line ...
 Defining \l__box_cos_fp on line ...
 Defining \l__box_sin_fp on line ...
diff --git a/l3kernel/testfiles/m3expl003.xetex.tlg b/l3kernel/testfiles/m3expl003.xetex.tlg
index eefc2d1..e530435 100644
--- a/l3kernel/testfiles/m3expl003.xetex.tlg
+++ b/l3kernel/testfiles/m3expl003.xetex.tlg
@@ -5189,6 +5189,13 @@ Defining \vbox_unpack_clear:N on line ...
 Defining \vbox_unpack:c on line ...
 Defining \vbox_unpack_clear:c on line ...
 Defining \vbox_set_split_to_ht:NNn on line ...
+Defining \vbox_set_split_to_ht:cNn on line ...
+Defining \vbox_set_split_to_ht:Ncn on line ...
+Defining \vbox_set_split_to_ht:ccn on line ...
+Defining \vbox_gset_split_to_ht:NNn on line ...
+Defining \vbox_gset_split_to_ht:cNn on line ...
+Defining \vbox_gset_split_to_ht:Ncn on line ...
+Defining \vbox_gset_split_to_ht:ccn on line ...
 Defining \l__box_angle_fp on line ...
 Defining \l__box_cos_fp on line ...
 Defining \l__box_sin_fp on line ...





More information about the latex3-commits mailing list