[latex3-commits] [git/LaTeX3-latex3-latex3] master: xbox: Mark up internal hbox commands correctly (3d2fc1e4f)

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/3d2fc1e4f884b7e687b7bd7a5c5f4dd9262f38b2

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

commit 3d2fc1e4f884b7e687b7bd7a5c5f4dd9262f38b2
Author: Joseph Wright <joseph.wright at morningstar2.co.uk>
Date:   Fri Aug 21 22:40:23 2020 +0100

    xbox: Mark up internal hbox commands correctly


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

3d2fc1e4f884b7e687b7bd7a5c5f4dd9262f38b2
 l3trial/xbox/xbox.dtx | 20 ++++++++++++--------
 1 file changed, 12 insertions(+), 8 deletions(-)

diff --git a/l3trial/xbox/xbox.dtx b/l3trial/xbox/xbox.dtx
index 8be9b9e04..670e2f21b 100644
--- a/l3trial/xbox/xbox.dtx
+++ b/l3trial/xbox/xbox.dtx
@@ -601,16 +601,20 @@
 %
 % \subsection{Additions to \pkg{l3box}}
 %
+%    \begin{macrocode}
+%<@@=hbox>
+%    \end{macrocode}
+%
 % \begin{macro}{\hbox_frame:nnn}
-% \begin{macro}{\__hbox_frame:nnn, \__hbox_frame:ffn}
+% \begin{macro}{\@@_frame:nnn, \@@_frame:ffn}
 %   Framing a box requires the depth is known, so there has to be an
 %   assignment step first to allow this measurement. The evaluation step is
 %   \enquote{front loaded} as the expressions are used a few times, so it
 %   is easier to do them only once then have a clearer logic internally.
 %    \begin{macrocode}
 \cs_new_protected:Npn \hbox_frame:nnn #1#2#3
-  { \__hbox_frame:ffn { \dim_eval:n {#2} } { \dim_eval:n {#3} } {#1} }
-\cs_new_protected:Npn \__hbox_frame:nnn #1#2#3
+  { \@@_frame:ffn { \dim_eval:n {#2} } { \dim_eval:n {#3} } {#1} }
+\cs_new_protected:Npn \@@_frame:nnn #1#2#3
   {
     \group_begin:
       \hbox_set:Nn \l__box_internal_box {#3}
@@ -652,21 +656,21 @@
         }
     \group_end:
   }
-\cs_generate_variant:Nn \__hbox_frame:nnn { ff }
+\cs_generate_variant:Nn \@@_frame:nnn { ff }
 %    \end{macrocode}
 % \end{macro}
 % \end{macro}
 %
 % \begin{macro}{\hbox_surround:nn}
-% \begin{macro}{\__hbox_surround:nn, \__hbox_surround:fn}
+% \begin{macro}{\@@_surround:nn, \@@_surround:fn}
 %    Similar to framing a box, but here the rules are around the outside of
 %    the bounding box. As such, there is a need to add skips to remove the
 %    width of the rules. As with the framing case, the rules here are inserted
 %    on top of the content.
 %    \begin{macrocode}
 \cs_new_protected:Npn \hbox_surround:nn #1#2
-  { \__hbox_surround:fn { \dim_eval:n {#2} } {#1} }
-\cs_new_protected:Npn \__hbox_surround:nn #1#2
+  { \@@_surround:fn { \dim_eval:n {#2} } {#1} }
+\cs_new_protected:Npn \@@_surround:nn #1#2
   {
     \group_begin:
       \hbox_set:Nn \l__box_internal_box {#2}
@@ -702,7 +706,7 @@
         }
     \group_end:
   }
-\cs_generate_variant:Nn \__hbox_surround:nn { f }
+\cs_generate_variant:Nn \@@_surround:nn { f }
 %    \end{macrocode}
 % \end{macro}
 % \end{macro}





More information about the latex3-commits mailing list.