diff options
Diffstat (limited to 'Master/texmf-dist/source/latex/l3kernel/l3box.dtx')
-rw-r--r-- | Master/texmf-dist/source/latex/l3kernel/l3box.dtx | 69 |
1 files changed, 16 insertions, 53 deletions
diff --git a/Master/texmf-dist/source/latex/l3kernel/l3box.dtx b/Master/texmf-dist/source/latex/l3kernel/l3box.dtx index 539d04ed4b9..6dc66cd9c85 100644 --- a/Master/texmf-dist/source/latex/l3kernel/l3box.dtx +++ b/Master/texmf-dist/source/latex/l3kernel/l3box.dtx @@ -35,7 +35,7 @@ % %<*driver|package> \RequirePackage{l3names} -\GetIdInfo$Id: l3box.dtx 2799 2011-09-10 15:46:33Z will $ +\GetIdInfo$Id: l3box.dtx 2896 2011-10-09 20:36:50Z joseph $ {L3 Experimental boxes} %</driver|package> %<*driver> @@ -389,6 +389,20 @@ % \end{function} % % \section{The last box inserted} +% +% \begin{function} +% { +% \box_set_to_last:N, \box_set_to_last:c, +% \box_gset_to_last:N, \box_gset_to_last:c +% } +% \begin{syntax} +% \cs{box_set_to_last:N} \meta{box} +% \end{syntax} +% Sets the \meta{box} equal to the last item (box) added to the current +% partial list, removing the item from the list at the same time. When +% applied to the main vertical list, the \meta{box} will always be void as +% it is not possible to recover the last added item. +% \end{function} % % \begin{variable}{\l_last_box} % This is a box containing the last item added to the current partial @@ -1116,7 +1130,7 @@ \cs_new_protected_nopar:Npn \hbox_gset_to_wd:Nnn { \tex_global:D \hbox_set_to_wd:Nnn } \cs_generate_variant:Nn \hbox_set_to_wd:Nnn { c } -\cs_generate_variant:Nn \hbox_gset_to_wd:Nnn {cnn} +\cs_generate_variant:Nn \hbox_gset_to_wd:Nnn { c } % \end{macrocode} % \end{macro} % \end{macro} @@ -1515,14 +1529,6 @@ \box_use:N \l_box_tmp_box } % \end{macrocode} -% When loaded on top of \LaTeXe{} the \tn{rotatebox} function can be -% used. There is just a slight adjustment in the syntax. -% \begin{macrocode} -%<*package> -\cs_set_protected_nopar:Npn \box_rotate:Nn #1#2 - { \hbox_set:Nn #1 { \rotatebox {#2} { \box_use:N #1 } } } -%</package> -% \end{macrocode} % \end{macro} % \end{macro} % A simple conversion from degrees to radians followed by calculation @@ -1709,22 +1715,6 @@ \box_resize_common:N #1 } % \end{macrocode} -% When loaded on top of \LaTeXe{} the \tn{resizebox} function can be -% used. There is just a slight adjustment in the syntax. -% \begin{macrocode} -%<*package> -\cs_set_protected_nopar:Npn \box_resize:Nnn #1#2#3 - { - \hbox_set:Nn #1 - { - \resizebox * - { \etex_dimexpr:D #2 \scan_stop: } - { \etex_dimexpr:D #3 \scan_stop: } - { \box_use:N #1 } - } - } -%</package> -% \end{macrocode} % \end{macro} % \end{macro} % @@ -1778,25 +1768,6 @@ } \cs_generate_variant:Nn \box_resize_to_wd:Nn { c } % \end{macrocode} -% Again, in package mode the scaling can be handled by \tn{resizebox}. -% \begin{macrocode} -%<*package> -\cs_set_protected_nopar:Npn \box_resize_to_ht_plus_dp:Nn #1#2 - { - \hbox_set:Nn #1 - { - \resizebox * { ! } { \etex_dimexpr:D #2 \scan_stop: } { \box_use:N #1 } - } - } -\cs_set_protected_nopar:Npn \box_resize_to_wd:Nn #1#2 - { - \hbox_set:Nn #1 - { - \resizebox * { \etex_dimexpr:D #2 \scan_stop: } { ! } { \box_use:N #1 } - } - } -%</package> -% \end{macrocode} % \end{macro} % \end{macro} % @@ -1849,14 +1820,6 @@ \box_resize_common:N #1 } % \end{macrocode} -% When loaded on top of \LaTeXe{} the \tn{scalebox} function can be -% used. There is just a slight adjustment in the syntax. -% \begin{macrocode} -%<*package> -\cs_set_protected_nopar:Npn \box_scale:Nnn #1#2#3 - { \hbox_set:Nn #1 { \scalebox {#2} [#3] { \box_use:N #1 } } } -%</package> -% \end{macrocode} % \end{macro} % \end{macro} % |