ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Division symbol \div does not work
@ 2009-12-12  1:48 Curiouslearn
  2009-12-12  3:33 ` Jason Earl
  2009-12-15 10:15 ` Aditya Mahajan
  0 siblings, 2 replies; 5+ messages in thread
From: Curiouslearn @ 2009-12-12  1:48 UTC (permalink / raw)
  To: mailing list for ConTeXt users

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

\setuppapersize[letter][letter]

\starttext

$  a \div b $

\stoptext

gives output

a div b
___________________________________________________________________________________
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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Division symbol \div does not work
  2009-12-12  1:48 Division symbol \div does not work Curiouslearn
@ 2009-12-12  3:33 ` Jason Earl
  2009-12-12  4:16   ` Curiouslearn
  2009-12-15 10:15 ` Aditya Mahajan
  1 sibling, 1 reply; 5+ messages in thread
From: Jason Earl @ 2009-12-12  3:33 UTC (permalink / raw)
  To: mailing list for ConTeXt users


Curiouslearn <curiouslearn@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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Division symbol \div does not work
  2009-12-12  3:33 ` Jason Earl
@ 2009-12-12  4:16   ` Curiouslearn
  2009-12-12  6:14     ` luigi scarso
  0 siblings, 1 reply; 5+ messages in thread
From: Curiouslearn @ 2009-12-12  4:16 UTC (permalink / raw)
  To: mailing list for ConTeXt users

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 <jearl@notengoamigos.org> wrote:
>
> Curiouslearn <curiouslearn@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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Division symbol \div does not work
  2009-12-12  4:16   ` Curiouslearn
@ 2009-12-12  6:14     ` luigi scarso
  0 siblings, 0 replies; 5+ messages in thread
From: luigi scarso @ 2009-12-12  6:14 UTC (permalink / raw)
  To: mailing list for ConTeXt users

>On Sat, Dec 12, 2009 at 5:16 AM, Curiouslearn <curiouslearn@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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Division symbol \div does not work
  2009-12-12  1:48 Division symbol \div does not work Curiouslearn
  2009-12-12  3:33 ` Jason Earl
@ 2009-12-15 10:15 ` Aditya Mahajan
  1 sibling, 0 replies; 5+ messages in thread
From: Aditya Mahajan @ 2009-12-15 10:15 UTC (permalink / raw)
  To: mailing list for ConTeXt users

[-- Attachment #1: Type: TEXT/PLAIN, Size: 685 bytes --]

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

[-- Attachment #2: Type: TEXT/PLAIN, Size: 1196 bytes --]

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}}

[-- Attachment #3: Type: text/plain, Size: 486 bytes --]

___________________________________________________________________________________
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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2009-12-15 10:15 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-12-12  1:48 Division symbol \div does not work Curiouslearn
2009-12-12  3:33 ` Jason Earl
2009-12-12  4:16   ` Curiouslearn
2009-12-12  6:14     ` luigi scarso
2009-12-15 10:15 ` Aditya Mahajan

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).