On Fri, 11 Dec 2009, Curiouslearn wrote:

How to obtain the division symbol? Command \div does not work.

\setuppapersize[letter][letter]

\starttext

$  a \div b $

\stoptext

gives output

a div b

math-def.mkiv contains

\definemathcommand [div]     [limop] {\mfunction{div}}

which overrides the definition of \div from char-def.lua. The same line is also present in mkii, but gets overwritten by the correct definition due to different order in which files are loaded.

Hans: \div should be mapped to divided sign, so I suggest that we remove the corresponding \definemathcommand lines from math-def.mkiv and math-tex.mkii (see the attached patch).

Aditya
diff --git a/math-def.mkiv b/math-def.mkiv
index e929189..63f5a0e 100644
--- a/math-def.mkiv
+++ b/math-def.mkiv
@@ -87,7 +87,7 @@
 \definemathcommand [max]     [limop] {\mfunction{max}}
 \definemathcommand [min]     [limop] {\mfunction{min}}
 \definemathcommand [mod]     [limop] {\mfunction{mod}}
-\definemathcommand [div]     [limop] {\mfunction{div}}
+%definemathcommand [div]     [limop] {\mfunction{div}}
 \definemathcommand [projlim] [limop] {\mfunction{proj\,lim}}
 \definemathcommand [Pr]      [limop] {\mfunction{Pr}}
 \definemathcommand [sec]     [nolop] {\mfunction{sec}}
diff --git a/math-tex.mkii b/math-tex.mkii
index c833db9..07fd89f 100644
--- a/math-tex.mkii
+++ b/math-tex.mkii
@@ -168,7 +168,7 @@
 \definemathcommand [max]     [limop] {\mfunction{max}}
 \definemathcommand [min]     [limop] {\mfunction{min}}
 \definemathcommand [mod]     [limop] {\mfunction{mod}}
-\definemathcommand [div]     [limop] {\mfunction{div}}
+%definemathcommand [div]     [limop] {\mfunction{div}}
 \definemathcommand [projlim] [limop] {\mfunction{proj\,lim}}
 \definemathcommand [Pr]      [limop] {\mfunction{Pr}}
 \definemathcommand [sec]     [nolop] {\mfunction{sec}}
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

Reply via email to