Re: [NTG-context] Division symbol \div does not work
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). Adityadiff --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 ___
Re: [NTG-context] Division symbol \div does not work
Curiouslearn curiousle...@gmail.com writes: How to obtain the division symbol? Command \div does not work. \setuppapersize[letter][letter] \starttext $ a \div b $ \stoptext gives output a div b I am using an older version of Context, but running texexec on your example gets me the correct output. a ÷ b Jason ___ 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 ___
Re: [NTG-context] Division symbol \div does not work
Thanks Jason. You are right, it works well with MKII. The problem seems to be with MKIV. On Fri, Dec 11, 2009 at 10:33 PM, Jason Earl je...@notengoamigos.org wrote: Curiouslearn curiousle...@gmail.com writes: How to obtain the division symbol? Command \div does not work. \setuppapersize[letter][letter] \starttext $ a \div b $ \stoptext gives output a div b I am using an older version of Context, but running texexec on your example gets me the correct output. a ÷ b Jason ___ 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 ___ ___ 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 ___
Re: [NTG-context] Division symbol \div does not work
On Sat, Dec 12, 2009 at 5:16 AM, Curiouslearn curiousle...@gmail.com wrote: gives output a div b true What about \setuppapersize[letter][letter] \starttext $ a ÷ b $ \stoptext -- luigi ___ 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 ___