[latex3-commits] [latex3/latex3] main: Change the delimiter token in \int_div_truncate:nn (e6af8d96e)

github at latex-project.org github at latex-project.org
Mon Mar 25 17:35:20 CET 2024


Repository : https://github.com/latex3/latex3
On branch  : main
Link       : https://github.com/latex3/latex3/commit/e6af8d96e8ea40d02442901221b9130a22bd449e

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

commit e6af8d96e8ea40d02442901221b9130a22bd449e
Author: Joseph Wright <joseph at texdev.net>
Date:   Mon Mar 25 16:35:02 2024 +0000

    Change the delimiter token in \int_div_truncate:nn
    
    This is needed with LuaMetaTeX, which uses ";" for mod - undocumented.
    
    See #1518.


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

e6af8d96e8ea40d02442901221b9130a22bd449e
 l3kernel/l3int.dtx | 14 +++++++-------
 1 file changed, 7 insertions(+), 7 deletions(-)

diff --git a/l3kernel/l3int.dtx b/l3kernel/l3int.dtx
index 9fa2a547f..8bb3b4ad3 100644
--- a/l3kernel/l3int.dtx
+++ b/l3kernel/l3int.dtx
@@ -1271,11 +1271,11 @@
   {
     \int_value:w \@@_eval:w
       \exp_after:wN \@@_div_truncate:NwNw
-      \int_value:w \@@_eval:w #1 \exp_after:wN ;
-      \int_value:w \@@_eval:w #2 ;
+      \int_value:w \@@_eval:w #1 \exp_after:wN !
+      \int_value:w \@@_eval:w #2 !
     \@@_eval_end:
   }
-\cs_new:Npn \@@_div_truncate:NwNw #1#2; #3#4;
+\cs_new:Npn \@@_div_truncate:NwNw #1#2! #3#4!
   {
     \if_meaning:w 0 #1
       0
@@ -1299,12 +1299,12 @@
 \cs_new:Npn \int_mod:nn #1#2
   {
     \int_value:w \@@_eval:w \exp_after:wN \@@_mod:ww
-      \int_value:w \@@_eval:w #1 \exp_after:wN ;
-      \int_value:w \@@_eval:w #2 ;
+      \int_value:w \@@_eval:w #1 \exp_after:wN !
+      \int_value:w \@@_eval:w #2 !
     \@@_eval_end:
   }
-\cs_new:Npn \@@_mod:ww #1; #2;
-  { #1 - ( \@@_div_truncate:NwNw #1 ; #2 ; ) * #2 }
+\cs_new:Npn \@@_mod:ww #1! #2!
+  { #1 - ( \@@_div_truncate:NwNw #1 ! #2 ! ) * #2 }
 %    \end{macrocode}
 % \end{macro}
 % \end{macro}





More information about the latex3-commits mailing list.