[latex3-commits] [git/LaTeX3-latex3-latex3] master: Further \rule:nnn improvements (see #815) (de1aa9be2)
Joseph Wright
joseph.wright at morningstar2.co.uk
Fri Oct 9 11:53:17 CEST 2020
Repository : https://github.com/latex3/latex3
On branch : master
Link : https://github.com/latex3/latex3/commit/de1aa9be2570748b3eb081ce04ad0bf07274e4bc
>---------------------------------------------------------------
commit de1aa9be2570748b3eb081ce04ad0bf07274e4bc
Author: Joseph Wright <joseph.wright at morningstar2.co.uk>
Date: Fri Oct 9 10:53:17 2020 +0100
Further \rule:nnn improvements (see #815)
>---------------------------------------------------------------
de1aa9be2570748b3eb081ce04ad0bf07274e4bc
l3trial/xbox/xbox.dtx | 16 ++++++----------
1 file changed, 6 insertions(+), 10 deletions(-)
diff --git a/l3trial/xbox/xbox.dtx b/l3trial/xbox/xbox.dtx
index 238f28dd1..2dddbfa62 100644
--- a/l3trial/xbox/xbox.dtx
+++ b/l3trial/xbox/xbox.dtx
@@ -1281,15 +1281,11 @@
% \begin{macrocode}
\cs_new_protected:Npn \rule:nnn #1#2#3
{
- \mode_leave_vertical:
- \hbox:n
- {
- \tex_vrule:D
- height \dim_eval:n {#2} \exp_stop_f:
- depth \dim_eval:n {#3} \exp_stop_f:
- width \dim_eval:n {#1} \exp_stop_f:
- \scan_stop:
- }
+ \tex_vrule:D
+ height \dim_eval:n {#2} \exp_stop_f:
+ depth \dim_eval:n {#3} \exp_stop_f:
+ width \dim_eval:n {#1} \exp_stop_f:
+ \scan_stop:
}
\cs_new_protected:Npn \rule_horizontal:nn #1#2
{
@@ -1431,11 +1427,11 @@
% \end{macro}
%
% \begin{macro}{\rule}
-
% \begin{macrocode}
\RenewDocumentCommand \rule { O { 0pt } m m }
{
\mode_leave_vertical:
+ \hbox:n { \rule:nnn {#2} { #3 + #1 } { -#1 } }
}
% \end{macrocode}
% \end{macro}
More information about the latex3-commits
mailing list.