ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Hans Hagen <pragma@wxs.nl>
To: ntg-context@ntg.nl
Subject: Re: mathalignment and grid
Date: Mon, 3 Jul 2017 09:24:31 +0200	[thread overview]
Message-ID: <4c25c21c-e4d1-c118-950f-ec2c53457e5d@wxs.nl> (raw)
In-Reply-To: <1499063862.14796.73.camel@gmail.com>

On 7/3/2017 8:37 AM, Henri Menke wrote:
> 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?

you can experiment with other grid options to see what is the best 
average .. the problem is that in a symmetrical vcentered formula ht/dp 
is kind of unknown (we could add a grid key to formulas so that users 
can choose)

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


-- 

-----------------------------------------------------------------
                                           Hans Hagen | PRAGMA ADE
               Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
        tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
-----------------------------------------------------------------
___________________________________________________________________________________
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  7:24 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-07-03  6:37 Henri Menke
2017-07-03  7:24 ` Hans Hagen [this message]
  -- 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=4c25c21c-e4d1-c118-950f-ec2c53457e5d@wxs.nl \
    --to=pragma@wxs.nl \
    --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).