[latex3-commits] [git/LaTeX3-latex3-latex3] master: xbox: "internal" not "tmp" (5534b780c)
Joseph Wright
joseph.wright at morningstar2.co.uk
Mon Aug 24 10:37:42 CEST 2020
Repository : https://github.com/latex3/latex3
On branch : master
Link : https://github.com/latex3/latex3/commit/5534b780c0964c7bc669fa625cc8bb81c870c4d1
>---------------------------------------------------------------
commit 5534b780c0964c7bc669fa625cc8bb81c870c4d1
Author: Joseph Wright <joseph.wright at morningstar2.co.uk>
Date: Fri Aug 21 22:41:01 2020 +0100
xbox: "internal" not "tmp"
>---------------------------------------------------------------
5534b780c0964c7bc669fa625cc8bb81c870c4d1
l3trial/xbox/testfiles/xbox000.tlg | 2 +-
l3trial/xbox/xbox.dtx | 40 +++++++++++++++++++-------------------
2 files changed, 21 insertions(+), 21 deletions(-)
diff --git a/l3trial/xbox/testfiles/xbox000.tlg b/l3trial/xbox/testfiles/xbox000.tlg
index 4d7335401..8430179bd 100644
--- a/l3trial/xbox/testfiles/xbox000.tlg
+++ b/l3trial/xbox/testfiles/xbox000.tlg
@@ -3,7 +3,7 @@ Don't change this file in any respect.
Author: Bruno Le Floch
(xbox.sty
Package: xbox ....-..-.. L3 Experimental document level boxes
-\l__xbox_tmp_box=\box...
+\l__xbox_internal_box=\box...
\l__xbox_height_dim=\dimen...
\l__xbox_depth_dim=\dimen...
\l__xbox_width_dim=\dimen...
diff --git a/l3trial/xbox/xbox.dtx b/l3trial/xbox/xbox.dtx
index 670e2f21b..0a76855e4 100644
--- a/l3trial/xbox/xbox.dtx
+++ b/l3trial/xbox/xbox.dtx
@@ -435,23 +435,23 @@
%
% \subsection{Setting up to measure natural width}
%
-% \begin{variable}{\l_@@_tmp_box}
+% \begin{variable}{\l_@@_internal_box}
% Internal box used to typeset material for measuring up.
% \begin{macrocode}
-\box_new:N \l_@@_tmp_box
+\box_new:N \l_@@_internal_box
% \end{macrocode}
% \end{variable}
%
-% \begin{macro}{\@@_via_tmp_box:nn}
-% Boxes up |#1| to its natural width in \cs{l_@@_tmp_box}.
+% \begin{macro}{\@@_via_internal_box:nn}
+% Boxes up |#1| to its natural width in \cs{l_@@_internal_box}.
% The document-level names for dimensions (\cs{height}, \emph{etc}.) are
% then set up, before carrying out whatever \enquote{payload} operation is
% supplied as |#2|.
% \begin{macrocode}
-\cs_new_protected:Npn \@@_via_tmp_box:nn #1#2
+\cs_new_protected:Npn \@@_via_internal_box:nn #1#2
{
\group_begin:
- \hbox_set:Nn \l_@@_tmp_box {#1}
+ \hbox_set:Nn \l_@@_internal_box {#1}
\@@_document_names:
#2
\group_end:
@@ -470,9 +470,9 @@
% \begin{macrocode}
\cs_new_protected:Npn \@@_document_names:
{
- \dim_set:Nn \l_@@_height_dim { \box_ht:N \l_@@_tmp_box }
- \dim_set:Nn \l_@@_depth_dim { \box_dp:N \l_@@_tmp_box }
- \dim_set:Nn \l_@@_width_dim { \box_wd:N \l_@@_tmp_box }
+ \dim_set:Nn \l_@@_height_dim { \box_ht:N \l_@@_internal_box }
+ \dim_set:Nn \l_@@_depth_dim { \box_dp:N \l_@@_internal_box }
+ \dim_set:Nn \l_@@_width_dim { \box_wd:N \l_@@_internal_box }
\dim_set:Nn \l_@@_totalheight_dim
{ \l_@@_height_dim + \l_@@_depth_dim }
\cs_set_eq:NN \height \l_@@_height_dim
@@ -547,10 +547,10 @@
% \begin{macrocode}
\cs_new_protected:Npn \xbox_to_wd:nnn #1#2#3
{
- \@@_via_tmp_box:nn {#3}
+ \@@_via_internal_box:nn {#3}
{
\hbox_to_wd:nn {#1}
- { \@@_hposition:nn {#2} { \hbox_unpack:N \l_@@_tmp_box } }
+ { \@@_hposition:nn {#2} { \hbox_unpack:N \l_@@_internal_box } }
}
}
% \end{macrocode}
@@ -576,22 +576,22 @@
% \begin{macrocode}
\cs_new_protected:Npn \xbox_raise:nn #1#2
{
- \xbox_raise_with_ht_and_dp:nnnn {#1} { \box_ht:N \l_@@_tmp_box }
- { \box_dp:N \l_@@_tmp_box } {#2}
+ \xbox_raise_with_ht_and_dp:nnnn {#1} { \box_ht:N \l_@@_internal_box }
+ { \box_dp:N \l_@@_internal_box } {#2}
}
\cs_new_protected:Npn \xbox_raise_with_ht:nnn #1#2#3
{
- \xbox_raise_with_ht_and_dp:nnnn {#1} {#2} { \box_dp:N \l_@@_tmp_box } {#3}
+ \xbox_raise_with_ht_and_dp:nnnn {#1} {#2} { \box_dp:N \l_@@_internal_box } {#3}
}
\cs_new_protected:Npn \xbox_raise_with_ht_and_dp:nnnn #1#2#3#4
{
- \@@_via_tmp_box:nn {#4}
+ \@@_via_internal_box:nn {#4}
{
- \hbox_set:Nn \l_@@_tmp_box
- { \box_move_up:nn {#1} { \box_use:N \l_@@_tmp_box } }
- \box_set_ht:Nn \l_@@_tmp_box {#2}
- \box_set_dp:Nn \l_@@_tmp_box {#3}
- \box_use:N \l_@@_tmp_box
+ \hbox_set:Nn \l_@@_internal_box
+ { \box_move_up:nn {#1} { \box_use:N \l_@@_internal_box } }
+ \box_set_ht:Nn \l_@@_internal_box {#2}
+ \box_set_dp:Nn \l_@@_internal_box {#3}
+ \box_use:N \l_@@_internal_box
}
}
% \end{macrocode}
More information about the latex3-commits
mailing list.