[latex3-commits] [latex3/latex2e] gh1189: Use truncation for division in calc. of arg. spec. (fd45a282)
github at latex-project.org
github at latex-project.org
Wed Nov 29 10:29:06 CET 2023
Repository : https://github.com/latex3/latex2e
On branch : gh1189
Link : https://github.com/latex3/latex2e/commit/fd45a282bce569b10ff932ed637563f7e5e252d5
>---------------------------------------------------------------
commit fd45a282bce569b10ff932ed637563f7e5e252d5
Author: Joseph Wright <joseph.wright at morningstar2.co.uk>
Date: Wed Nov 29 07:40:25 2023 +0000
Use truncation for division in calc. of arg. spec.
>---------------------------------------------------------------
fd45a282bce569b10ff932ed637563f7e5e252d5
base/ltcmd.dtx | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/base/ltcmd.dtx b/base/ltcmd.dtx
index f9281cd1..9c9dbc97 100644
--- a/base/ltcmd.dtx
+++ b/base/ltcmd.dtx
@@ -2611,7 +2611,11 @@
\token_if_protected_macro:NF #1 { expandable ~ } document~command:
\iow_newline:
\int_step_function:nN
- { \tl_count:n { \cs_parameter_spec:N #1 } / 2 }
+ {
+ \int_div_truncate:nn
+ { \tl_count:n { \cs_parameter_spec:N #1 } }
+ { 2 }
+ }
\@@_show_optimised_aux:N
->
\use:e
More information about the latex3-commits
mailing list.