ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Wolfgang Schuster <schuster.wolfgang@gmail.com>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Cc: Hans Hagen <pragma@wxs.nl>
Subject: Re: mathmatrix and grid
Date: Mon, 10 Oct 2016 11:24:48 +0200	[thread overview]
Message-ID: <57FB5E60.8070402@gmail.com> (raw)
In-Reply-To: <4dd20719-70ae-e73f-65d8-abe09c3230c5@gmail.com>


[-- Attachment #1.1: Type: text/plain, Size: 1220 bytes --]

> Henri Menke <mailto:henrimenke@gmail.com>
> 30. September 2016 um 23:01
> Dear list,
>
> I noticed that when using grid=both then the height of a mathmatrix is 
> rounded down for no apparent reason whereas the depth is rounded up 
> correctly. Visually it appears to me that the height should be rounded 
> up here. In the MWE I added a \vrule to show that the determined 
> height of the line definitely does not coincide with what one would 
> expect.
>
> How can I fix that? MWE is below.
>
> Cheers, Henri
>
> ---
>
> \setuplayout[grid=both]
> \showgrid
>
> \starttext
>
> \input knuth
> \startformula
> \vrule % make lineheight and depth visible
> \startmathmatrix
> \NC A \NR
> \NC B \NR
> \NC C \NR
> \stopmathmatrix
> \stopformula
> \input tufte
>
> \stoptext
The default spacing modell (3) before and after formulas breaks grid 
alignment
because when you use another alternative (1 or 2) the alignment is correct.


%\setconstantvalue{c_strc_formulas_space_model}{1}
\setconstantvalue{c_strc_formulas_space_model}{2}
%\setconstantvalue{c_strc_formulas_space_model}{3}% default value

\setuplayout[grid=yes]

\showgrid

\starttext

\input knuth
\startformula
x
\stopformula
\input tufte

\stoptext

Wolfgang

[-- Attachment #1.2: Type: text/html, Size: 2329 bytes --]

[-- Attachment #2: Type: text/plain, Size: 485 bytes --]

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

  parent reply	other threads:[~2016-10-10  9:24 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-09-30 21:01 Henri Menke
2016-10-08 18:02 ` Henri Menke
2016-10-10  9:24 ` Wolfgang Schuster [this message]
2016-10-10  9:44   ` Henri Menke
2016-10-10 10:30     ` Wolfgang Schuster
2016-10-10 11:54       ` 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=57FB5E60.8070402@gmail.com \
    --to=schuster.wolfgang@gmail.com \
    --cc=ntg-context@ntg.nl \
    --cc=pragma@wxs.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).