summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/source/latex/l3kernel/l3box.dtx
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2021-02-07 21:58:12 +0000
committerKarl Berry <karl@freefriends.org>2021-02-07 21:58:12 +0000
commite8169884e77e6dcd54ccde7d4af1141f4a674dec (patch)
tree78ff3b25d33f9ab885d73b688e04494d76798ffc /Master/texmf-dist/source/latex/l3kernel/l3box.dtx
parent67a73c7ee6a22559735d4c4216e83cbc41b1f529 (diff)
l3 (7feb21)
git-svn-id: svn://tug.org/texlive/trunk@57669 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/source/latex/l3kernel/l3box.dtx')
-rw-r--r--Master/texmf-dist/source/latex/l3kernel/l3box.dtx18
1 files changed, 14 insertions, 4 deletions
diff --git a/Master/texmf-dist/source/latex/l3kernel/l3box.dtx b/Master/texmf-dist/source/latex/l3kernel/l3box.dtx
index 647f5b68dd7..0247deaf42e 100644
--- a/Master/texmf-dist/source/latex/l3kernel/l3box.dtx
+++ b/Master/texmf-dist/source/latex/l3kernel/l3box.dtx
@@ -43,7 +43,7 @@
% }^^A
% }
%
-% \date{Released 2021-02-02}
+% \date{Released 2021-02-06}
%
% \maketitle
%
@@ -917,6 +917,16 @@
% \end{macro}
% \end{macro}
%
+% \begin{macro}{'\__kernel_kern:n}
+% We need kerns in a few places. At present, we don't have a module for
+% this concept, so it goes in at first use: here. The idea is to avoid
+% repeated use of the bare primitive.
+% \begin{macrocode}
+\cs_new_protected:Npn \__kernel_kern:n #1
+ { \tex_kern:D \@@_dim_eval:n {#1} }
+% \end{macrocode}
+% \end{macro}
+%
% \subsection{Creating and initialising boxes}
%
% \TestFiles{m3box001.lvt}
@@ -1768,7 +1778,7 @@
\hbox_set:Nn \l_@@_internal_box { \box_use:N #1 }
\hbox_set:Nn \l_@@_internal_box
{
- \tex_kern:D -\l_@@_left_new_dim
+ \__kernel_kern:n { -\l_@@_left_new_dim }
\hbox:n
{
\@@_backend_rotate:Nn
@@ -2227,7 +2237,7 @@
{
\hbox_to_wd:nn { \l_@@_right_new_dim }
{
- \tex_kern:D \l_@@_right_new_dim
+ \__kernel_kern:n { \l_@@_right_new_dim }
\box_use_drop:N \l_@@_internal_box
\tex_hss:D
}
@@ -2236,7 +2246,7 @@
\box_set_wd:Nn \l_@@_internal_box { \l_@@_right_new_dim }
\hbox:n
{
- \tex_kern:D \c_zero_dim
+ \__kernel_kern:n { 0pt }
\box_use_drop:N \l_@@_internal_box
\tex_hss:D
}