From: Manuel Blanco <manuelbl@ucm.es>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: Math literal colon
Date: Mon, 20 Jul 2015 21:34:19 +0200 [thread overview]
Message-ID: <CAMVYejAgim6Jb_t=6iWsv27Z07T9AXPQCVgG7ccROhsSwCnrHA@mail.gmail.com> (raw)
In-Reply-To: <78814D00-790A-4992-837E-6B3DEB3234D9@telia.com>
I'm not sure I understand what you mean. It's true that the colon used
in \colon differs from the one used if you input : directly by default
(it's smaller). In any case, I don't see where your discussion is
going, so I will write here a few definitions.
This is the definition of amsmath in LaTeX. (Used like $f\amscolon A \to B$)
\def\amscolon{\nobreak\mskip2mu\mathpunct{}\nonscript\mkern-\thinmuskip
\mathord{\mathchar`\:}\mskip6muplus1mu\relax}
The definition of a coordinate separator should be with \mathpunct,
although it doesn't look particularly good, so may be better to use no
space at all (as commented in other mails). (Used like $(x\projsep
y\projsep z)$)
\def\projsep{\mathpunct{\mathchar`\:}}
% if no space is wanted, the definition should be
% {\mathpunct{\mathchar`\:}\nonscript\mkern-\thinmuskip}
In the case of \ratio, since it's a binary operator, it should be
\mathbin; but may be that's too much space and tighter spacing would
be better. (Used like $A \ratio B \quad 3\ratio2\ratio1$)
\def\ratio{\mathbin{\mathchar`\∶}} % may be tighter spacing
playing with other atom types and \mkern
And also the relation : which is the spacing that comes by default and
is the same as if a macro contained \mathrel{\mathchar`\:}.
That said, if you want to define the normal : character in _input_ to
give you one of the above in _output_, just change the definition (in
this case I define : to give \amscolon)
\begingroup\lccode`\~=`\:\lowercase{\endgroup
\unexpanded\def~}{\amscolon}
\mathcode`\:="8000 %
In any case, if this message is out of place, sorry, but I really
didn't understand where your question/discussion was going.
___________________________________________________________________________________
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
___________________________________________________________________________________
next prev parent reply other threads:[~2015-07-20 19:34 UTC|newest]
Thread overview: 36+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-07-20 12:30 Hans Aberg
2015-07-20 14:40 ` Aditya Mahajan
2015-07-20 15:43 ` Manuel Blanco
2015-07-20 15:50 ` Manuel Blanco
2015-07-20 16:09 ` Hans Aberg
2015-07-24 9:40 ` Hans Hagen
2015-07-24 12:40 ` Hans Aberg
2015-07-24 13:34 ` Hans Hagen
2015-07-24 14:13 ` Hans Aberg
2015-07-24 14:28 ` Hans Hagen
2015-07-24 16:18 ` Hans Aberg
2015-07-24 16:34 ` Hans Hagen
2015-07-24 16:57 ` Hans Aberg
2015-07-24 19:58 ` Hans Hagen
2015-07-24 20:45 ` Hans Aberg
2015-07-20 16:22 ` Hans Aberg
2015-07-20 19:34 ` Manuel Blanco [this message]
2015-07-20 20:06 ` Hans Aberg
2015-07-20 20:13 ` Hans Aberg
2015-07-24 9:43 ` Hans Hagen
2015-07-24 13:00 ` Hans Aberg
2015-07-24 13:48 ` Hans Hagen
2015-07-24 14:19 ` Hans Aberg
2015-07-24 14:29 ` Hans Hagen
2015-07-24 16:20 ` Hans Aberg
2015-07-20 16:06 ` Hans Aberg
2015-07-20 16:37 ` Aditya Mahajan
2015-07-20 17:08 ` Hans Aberg
2015-07-20 17:18 ` Hans Aberg
2015-07-20 21:29 ` Hans Aberg
2015-07-24 8:30 ` Hans Hagen
2015-07-24 12:32 ` Hans Aberg
2015-07-24 13:29 ` Hans Hagen
2015-07-24 14:08 ` Hans Aberg
2015-07-24 14:26 ` Hans Hagen
2015-07-24 16:11 ` Hans Aberg
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='CAMVYejAgim6Jb_t=6iWsv27Z07T9AXPQCVgG7ccROhsSwCnrHA@mail.gmail.com' \
--to=manuelbl@ucm.es \
--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).