ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: "Mikael P. Sundqvist" <mickep@gmail.com>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: \pm set too low in MkIV?
Date: Wed, 7 May 2014 10:46:24 +0200	[thread overview]
Message-ID: <CAHy-LL_27+ad+rn2bxU6M9LPWQ8vY19oO4a2mLFvoQvBY4Rk8w@mail.gmail.com> (raw)
In-Reply-To: <87lhueqvdw.fsf@approx.mit.edu>

On Wed, May 7, 2014 at 2:34 AM, Sanjoy Mahajan <sanjoy@mit.edu> wrote:
>> the + aligns on the math axis so one can argue if the type-one variant
>> is ok ... so we would need a smaller (less height) + then which would
>> look visually weird
>
> Plain TeX doesn't align the plus/minus to the math axis.  Rather, the
> minus is aligned to the baseline, and the horizontal stroke of the plus
> is above the baseline.  I agree that it looks a bit strange with the
> horizontal stroke of the plus sign not aligned with the horizontal
> stroke of the plus/minus.  Bt it looks even more jarring to have the
> minus below the baseline, because the baseline is such a strong visual
> line.
>
> I don't think I've ever the minus below the baseline in a math book, and
> it looks very wrong to my eye.
>
> Pagella looks worse than the others, because it has a vertical gap
> between the minus and the plus sign, so the depth below the baseline is
> even larger.
>
>> (all can be achieved ... but the idea of lm/gyre fonts is to provide an
>> acceptable consistent set ... at some point we can think of variants -
>> or maybe the fonts have a variant already)
>
> I realize that it's not a ConTeXt problem, but is there a ConTeXt
> workaround?  Or better to go to the TeX guts and compute the depth of
> the box, then use \raise{}?
>
> -Sanjoy
> ___________________________________________________________________________________
> 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
> ___________________________________________________________________________________

Sanjoy,

the following borrows the \pm sign from Asana (which also should be
like palatino), which looks more "normal".

% Start example
\definefallbackfamily[mainface][math][Asana Math]
[range={00B1-00B1}]

\definefontfamily[mainface][serif][Tex Gyre Pagella]
\definefontfamily[mainface][math][Tex Gyre Pagella Math]


\starttext
    \switchtobodyfont[pagella] Hello $\int x \pm 2 + a $\par
    \switchtobodyfont[asana] Hello  $\int x \pm 2 + a $\par
    \switchtobodyfont[mainface] Hello  $\int x \pm 2 + a $\par
\stoptext
% Stop example

I guess one could do this for the other signs one don't like in TeX
Gyre Pagella Math...

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


  reply	other threads:[~2014-05-07  8:46 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-05-06 14:22 Sanjoy Mahajan
2014-05-06 14:41 ` Mikael P. Sundqvist
2014-05-06 14:56   ` Sanjoy Mahajan
2014-05-06 19:09     ` Hans Hagen
2014-05-06 18:14 ` Hans Hagen
2014-05-06 18:28   ` Otared Kavian
2014-05-06 19:08     ` Hans Hagen
2014-05-07  0:34       ` Sanjoy Mahajan
2014-05-07  8:46         ` Mikael P. Sundqvist [this message]
2014-05-07  9:38           ` Otared Kavian

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=CAHy-LL_27+ad+rn2bxU6M9LPWQ8vY19oO4a2mLFvoQvBY4Rk8w@mail.gmail.com \
    --to=mickep@gmail.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).