From: Aditya Mahajan <adityam@umich.edu>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: Division symbol \div does not work
Date: Tue, 15 Dec 2009 05:15:57 -0500 (EST) [thread overview]
Message-ID: <alpine.LNX.2.01.0912150511190.19167@ybpnyubfg.ybpnyqbznva> (raw)
In-Reply-To: <3b4b12310912111748q6a022949x70af9076d35f46a2@mail.gmail.com>
[-- 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
___________________________________________________________________________________
prev parent reply other threads:[~2009-12-15 10:15 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-12-12 1:48 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 message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=alpine.LNX.2.01.0912150511190.19167@ybpnyubfg.ybpnyqbznva \
--to=adityam@umich.edu \
--cc=ntg-context@ntg.nl \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).