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: Mon, 03 Jul 2017 18:37:42 +1200	[thread overview]
Message-ID: <1499063862.14796.73.camel@gmail.com> (raw)

Dear Hans,

In a previous email I complained that with mathalignment large formulas crash into the paragraph
below when using grid typesetting.  This has been fixed in the latest beta but now the space above
and below is asymmetric.  For this particular case I could fix it by setting the gird snapping mode
to "top" rather than "math", but this does not apply universally.  Any chance there is an easy fix?

Cheers, Henri

---

\setuplayout[grid=both]
\showgrid

\startmode[fix]
\unprotect
\def\math_alignment_snap_start
  {\ifgridsnapping
     \snaptogrid[top]\vbox\bgroup
   \fi}
\protect
\stopmode

\starttext
\input knuth
\startformula
  \startmathalignment
    \NC i\hbar\frac{\diff}{\diff t}\psi \NC= \left( - \frac{\hbar^2}{2 m} \nabla^2 + V(r) \right)
\psi \NR
    \NC F(x) \NC= \int f(x) \diff x \NR
  \stopmathalignment
\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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

             reply	other threads:[~2017-07-03  6:37 UTC|newest]

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

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=1499063862.14796.73.camel@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).