ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Henri Menke <henrimenke@gmail.com>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: mathalignment and grid
Date: Sun, 28 Aug 2016 15:27:32 +0200	[thread overview]
Message-ID: <4f11ee3e-e8f1-a25d-d02b-92365506afa0@gmail.com> (raw)

Dear list,

when I typeset multi line equations using mathalignment and grid the descenders of the last line of equation run into the first line of text after that equation.  The problem is particularly bad with the Lucida fonts (I think the large operators are relatively larger than for Latin Modern).

I could just increase the spacing after equation (commented out in the MWE below), but that would introduce an imbalance between space before and space after for all equations without descenders.  Furthermore the problem does not arise for single line equations with descenders.  Without grid there is also no problem.

How do I fix mathalignment to prevent this?

Cheers, Henri

---

\setuplayout[grid=yes]
\setupbodyfont[lucidaot,9pt]
%\setupformulas[spaceafter={back,nowhite,2*line}]

\showgrid
\starttext

\input ward
\startformula
  \startmathalignment
  \NC \sum_{i,\alpha,\beta} c_{i,\alpha}^\dagger c_{i,\beta} \NR
  \NC \sum_{i,\alpha,\beta} c_{i,\alpha}^\dagger c_{i,\beta} \NR
  \stopmathalignment
\stopformula
%\blank[2*line]
\input ward
\startformula
  \sum_{i,\alpha,\beta} c_{i,\alpha}^\dagger c_{i,\beta}
\stopformula
\input ward
\startformula
  \text{no descenders}
\stopformula
\input ward

\stoptext
___________________________________________________________________________________
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:[~2016-08-28 13:27 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-08-28 13:27 Henri Menke [this message]
2016-08-28 15:26 ` Henri Menke
2017-07-03  6:37 Henri Menke
2017-07-03  7:24 ` Hans Hagen

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=4f11ee3e-e8f1-a25d-d02b-92365506afa0@gmail.com \
    --to=henrimenke@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).