<html><head>
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
</head><body bgcolor="#FFFFFF" text="#000000">
<blockquote style="border: 0px none;"
cite="mid:4dd20719-70ae-e73f-65d8-abe09c3230c5@gmail.com" type="cite">
<div style="margin:30px 25px 10px 25px;" class="__pbConvHr"><div
style="width:100%;border-top:2px solid #EDF1F4;padding-top:10px;"> <div
style="display:inline-block;white-space:nowrap;vertical-align:middle;width:49%;">
<a moz-do-not-send="true" href="mailto:henrimenke@gmail.com"
style="color:#485664
!important;padding-right:6px;font-weight:500;text-decoration:none
!important;">Henri Menke</a></div> <div
style="display:inline-block;white-space:nowrap;vertical-align:middle;width:48%;text-align:
right;"> <font color="#909AA4"><span style="padding-left:6px">30.
September 2016 um 23:01</span></font></div> </div></div>
<div style="color:#909AA4;margin-left:24px;margin-right:24px;"
__pbrmquotes="true" class="__pbConvBody"><div>Dear list,<br><br>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.<br><br>How
can I fix that? MWE is below.<br><br>Cheers, Henri<br><br>---<br><br>\setuplayout[grid=both]<br>\showgrid<br><br>\starttext<br><br>\input
knuth<br>\startformula<br> \vrule % make lineheight and depth visible<br>
\startmathmatrix<br> \NC A \NR<br> \NC B \NR<br> \NC C \NR<br>
\stopmathmatrix<br>\stopformula<br>\input tufte<br><br>\stoptext<br>
</div></div>
</blockquote>
The default spacing modell (3) before and after formulas breaks grid
alignment<br>
because when you use another alternative (1 or 2) the alignment is
correct.<br>
<br>
<br>
%\setconstantvalue{c_strc_formulas_space_model}{1}<br>
\setconstantvalue{c_strc_formulas_space_model}{2}<br>
%\setconstantvalue{c_strc_formulas_space_model}{3}% default value<br>
<br>
\setuplayout[grid=yes]<br>
<br>
\showgrid<br>
<br>
\starttext<br>
<br>
\input knuth<br>
\startformula<br>
x<br>
\stopformula<br>
\input tufte<br>
<br>
\stoptext<br>
<br>
Wolfgang<br>
</body></html>