lout-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH] Fix spacing around `mod' in address@hidden'


From: Ludovic Courtès
Subject: [PATCH] Fix spacing around `mod' in address@hidden'
Date: Fri, 24 Aug 2007 11:10:05 +0200
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.1 (gnu/linux)

Hi,

The attached patch fixes spacing around `mod' in address@hidden'.

I think the comment removed by the patch was erroneous since it implied
that `mod' is a relation, while I believe it's a binary operator (I
couldn't find it in "The TeXbook", though).

Thanks,
Ludovic.

diff --git a/include/mathf b/include/mathf
index 8c395fd..0e72172 100644
--- a/include/mathf
+++ b/include/mathf
@@ -825,6 +825,7 @@ def @Math
     macro @AdditionPrec                { 43 }
     macro @MultiplicationPrec  { 53 }
     macro @DivisionPrec         { 54 }
+    macro @ModulusPrec          { 55 }
     macro @ExponentPrec         { 63 }
     macro @FactorialPrec        { 73 }
 
@@ -1019,6 +1020,9 @@ def @Math
    #def bullet         { name used above                               }
     def div      precedence @DivisionPrec left l right r
     {  l bin op { divide } r           }
+    def mod      precedence @ModulusPrec left l right r
+    {  l bin op { @Base "mod" } r      }
+
     def cap      precedence @MultiplicationPrec left l right r
     {  l bin op { intersection } r     }
     def cup      precedence @MultiplicationPrec left l right r
@@ -1398,7 +1402,6 @@ def @Math
     ###################################################################
     #                                                                 #
     #   Common mathematical functions (from Knuth p. 162).            #
-    #   mod is included, since @Rel mod is easily typed if needed.    #
     #                                                                 #
     ###################################################################
 
@@ -1434,7 +1437,6 @@ def @Math
     def supr   { @Base "sup"           }
     def tan    { @Base "tan"           }
     def tanh   { @Base "tanh"          }
-    def mod    { @Base "mod"           }
 
 
     ###################################################################

reply via email to

[Prev in Thread] Current Thread [Next in Thread]