From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/96407 Path: news.gmane.org!.POSTED!not-for-mail From: Wolfgang Schuster Newsgroups: gmane.comp.tex.context Subject: Re: mathmatrix and grid Date: Mon, 10 Oct 2016 11:24:48 +0200 Message-ID: <57FB5E60.8070402@gmail.com> References: <4dd20719-70ae-e73f-65d8-abe09c3230c5@gmail.com> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============4864644825063706011==" X-Trace: blaine.gmane.org 1476091528 7353 195.159.176.226 (10 Oct 2016 09:25:28 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Mon, 10 Oct 2016 09:25:28 +0000 (UTC) User-Agent: Postbox 5.0.4 (Macintosh/20161007) Cc: Hans Hagen To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Mon Oct 10 11:25:23 2016 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from zapf.boekplan.nl ([5.39.185.232] helo=zapf.ntg.nl) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1btWpn-0001Fm-KW for gctc-ntg-context-518@m.gmane.org; Mon, 10 Oct 2016 11:25:23 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 1BD831ACE7; Mon, 10 Oct 2016 11:25:05 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at zapf.boekplan.nl Original-Received: from zapf.ntg.nl ([127.0.0.1]) by localhost (zapf.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id grXs4BtEtmll; Mon, 10 Oct 2016 11:25:04 +0200 (CEST) Original-Received: from zapf.ntg.nl (localhost [IPv6:::1]) by zapf.ntg.nl (Postfix) with ESMTP id 6A7D81ACE5; Mon, 10 Oct 2016 11:25:04 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 415231ACE3 for ; Mon, 10 Oct 2016 11:25:03 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at zapf.boekplan.nl Original-Received: from zapf.ntg.nl ([127.0.0.1]) by localhost (zapf.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id pwlDrlijMUMS for ; Mon, 10 Oct 2016 11:25:02 +0200 (CEST) Original-Received: from mail-lf0-f44.google.com (mail-lf0-f44.google.com [209.85.215.44]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by zapf.ntg.nl (Postfix) with ESMTPS id ADF2E1ACE2 for ; Mon, 10 Oct 2016 11:24:52 +0200 (CEST) Original-Received: by mail-lf0-f44.google.com with SMTP id x79so116737458lff.0 for ; Mon, 10 Oct 2016 02:24:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to; bh=QC2Pxkers8cYFmZdlPCyZG/4tUdvAcZJKk6zNvoj+zg=; b=ECVUrMvgLbpEHCzMks/Alpz8QLpTpmyZJDlBayCKaY/6QHJERHZH6A08mvRMM1BKmV NzGzJmmZclNsQUaJ8TYR1Z+gZAPEnHP/5WPSrm/AM9v8sBVOhfYDVN4HFqxX5PxZLjrC vJmzU4/KX9WJXxPcMELb4FKGm/fNkqdPVg14nRSBpcu/drYB/cy9yIbt8et0R83rtCHn jJ6+6MPvxl+/MNCQTeADdVOtatWpP70Jn4ZwOo71/EXjrlLB+aR6oIXl82DWEXnVS7ch /hELWi2J5iBgemBCvJYxySRKZvFNJ+k6Z/tHBG/iZFEodJm2aysWC1PsuSUk8eyYVcZs kVtQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:message-id:date:from:user-agent:mime-version:to :cc:subject:references:in-reply-to; bh=QC2Pxkers8cYFmZdlPCyZG/4tUdvAcZJKk6zNvoj+zg=; b=TEiYK68T8z23n6slrYICJXdXg3WZlr+tRwbj5NN85dGCUNMkNzZAf+jIMLQ3+2WiHV rTYJGpFkN8svj/DL40Uex17HtKUwLO28rvRqipMM4yVTdMHIMqms9wJYekFxP2DZI0Xf uwNvTAjLwGh4mRUjIgTser85q5q75cDxNjjcmLAFGmN9uJwYpWisZLn8DiVv47zrToLq QNfB4T6slGVpO93iR8Cre2RRp101hw77AV3gIZrf/kMp1zn7KQoWEbLTi4f86WgEHmES jtQHybc8RDTA/TEVwvxwPaL764MYYv01Bi/SQgKNIvviuYlAbWV2ZXFMmw5Kxq8uSuCX 5owg== X-Gm-Message-State: AA6/9RmQm2zjeLJDpfZzMOFrJAAusg5g/jT/KnArdEnrcIGxh642s5cG3keVXzJSu2xwmQ== X-Received: by 10.46.33.211 with SMTP id h80mr13819680lji.58.1476091491853; Mon, 10 Oct 2016 02:24:51 -0700 (PDT) Original-Received: from keima.localdomain (x2f23e0b.dyn.telefonica.de. [2.242.62.11]) by smtp.gmail.com with ESMTPSA id 125sm6076037ljj.8.2016.10.10.02.24.50 (version=TLS1 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 10 Oct 2016 02:24:50 -0700 (PDT) In-Reply-To: <4dd20719-70ae-e73f-65d8-abe09c3230c5@gmail.com> X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.16 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: ntg-context-bounces@ntg.nl Original-Sender: "ntg-context" Xref: news.gmane.org gmane.comp.tex.context:96407 Archived-At: This is a multi-part message in MIME format. --===============4864644825063706011== Content-Type: multipart/alternative; boundary="------------030705010901010000040502" This is a multi-part message in MIME format. --------------030705010901010000040502 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit > Henri Menke > 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 --------------030705010901010000040502 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit
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
--------------030705010901010000040502-- --===============4864644825063706011== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX18KSWYgeW91ciBxdWVzdGlvbiBpcyBvZiBpbnRlcmVz dCB0byBvdGhlcnMgYXMgd2VsbCwgcGxlYXNlIGFkZCBhbiBlbnRyeSB0byB0aGUgV2lraSEKCm1h aWxsaXN0IDogbnRnLWNvbnRleHRAbnRnLm5sIC8gaHR0cDovL3d3dy5udGcubmwvbWFpbG1hbi9s aXN0aW5mby9udGctY29udGV4dAp3ZWJwYWdlICA6IGh0dHA6Ly93d3cucHJhZ21hLWFkZS5ubCAv IGh0dHA6Ly90ZXguYWFuaGV0Lm5ldAphcmNoaXZlICA6IGh0dHA6Ly9mb3VuZHJ5LnN1cGVsZWMu ZnIvcHJvamVjdHMvY29udGV4dHJldi8Kd2lraSAgICAgOiBodHRwOi8vY29udGV4dGdhcmRlbi5u ZXQKX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX19fX18= --===============4864644825063706011==--