From: Hans Aberg <haberg-1@telia.com>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: Math literal colon
Date: Fri, 24 Jul 2015 15:00:23 +0200 [thread overview]
Message-ID: <9E694039-1595-4B08-918B-801EED04D2DF@telia.com> (raw)
In-Reply-To: <55B208CD.1020402@wxs.nl>
> On 24 Jul 2015, at 11:43, Hans Hagen <pragma@wxs.nl> wrote:
>
> On 7/20/2015 6:22 PM, Hans Aberg wrote:
>>
>>> On 20 Jul 2015, at 17:43, Manuel Blanco <manuelbl@ucm.es> wrote:
>>>
>>> Well, you can make the colon active in math mode and then let it output \colon.
>>>
>>> This is a TeX way, I don't know if there's a ConTeXt way for this:
>>>
>>> \begingroup\lccode`\~=`\:\lowercase{\endgroup
>>> \let~}\colon
>>> \mathcode`\:="8000 %
>>
>> For some reason, the colon in ConTeXt is larger relative LuaTeX.
>
> you probably mean latex (macro package) here as luatex (engine) itself doesn't do anything
>
> keep in mind that context implements much of math in a complete different way, so solutions for problems or wishes are done differently too; in this case we try to use unicode and some lua magic instead of character juggling at the tex end
>
> we also need to keep in mind that characters have to behave well in tagged pdf and exports and so
In the examples I mentioned (below), running ‘context’ on the first produces large colons, whereas ‘luatex’ on the second does not. The latter looks right to me.
There is a similar issue with integral symbols, where somehow ConTeXt add additional spacing after it.
http://www.ntg.nl/pipermail/ntg-context/2015/082541.html
— context —
\setupbodyfont[xits,10pt]
\setupformulas[location=left]
\begingroup\lccode`\~=`\:\lowercase{\endgroup
\let~}\colon
\mathcode`\:="8000 %
\starttext
The function $f: A → B$, $g\colon A → B$.
\stoptext
—
— luatex —
\begingroup\lccode`\~=`\:\lowercase{\endgroup
\let~}\colon
\mathcode`\:="8000 %
The function $f: A \to B$.
\end
—
___________________________________________________________________________________
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-24 13:00 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
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 [this message]
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=9E694039-1595-4B08-918B-801EED04D2DF@telia.com \
--to=haberg-1@telia.com \
--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).