From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/96414 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 12:30:44 +0200 Message-ID: <57FB6DD4.1040609@gmail.com> References: <4dd20719-70ae-e73f-65d8-abe09c3230c5@gmail.com> <57FB5E60.8070402@gmail.com> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============2241049832001871946==" X-Trace: blaine.gmane.org 1476095623 13476 195.159.176.226 (10 Oct 2016 10:33:43 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Mon, 10 Oct 2016 10:33:43 +0000 (UTC) User-Agent: Postbox 5.0.4 (Macintosh/20161007) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Mon Oct 10 12:33:38 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 1btXtU-0000Sh-B0 for gctc-ntg-context-518@m.gmane.org; Mon, 10 Oct 2016 12:33:16 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 150311AAA1; Mon, 10 Oct 2016 12:31:01 +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 LPLalpGs3qJQ; Mon, 10 Oct 2016 12:31:00 +0200 (CEST) Original-Received: from zapf.ntg.nl (localhost [IPv6:::1]) by zapf.ntg.nl (Postfix) with ESMTP id 632661A9B6; Mon, 10 Oct 2016 12:31:00 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 7D2921A9B4 for ; Mon, 10 Oct 2016 12:30:59 +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 wtjyPm6pM5QG for ; Mon, 10 Oct 2016 12:30:58 +0200 (CEST) Original-Received: from mail-lf0-f42.google.com (mail-lf0-f42.google.com [209.85.215.42]) (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 DDB8D1A98A for ; Mon, 10 Oct 2016 12:30:48 +0200 (CEST) Original-Received: by mail-lf0-f42.google.com with SMTP id x79so119541414lff.0 for ; Mon, 10 Oct 2016 03:30:48 -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:subject:references :in-reply-to; bh=fkpgq/vk1tqmgcy8rrq5zyVCLDhXKl97UUfCqE5IEOA=; b=Byt8bTHDDaUoHerW6KFwn8dg9+1gssXDbLMOnftJ6bhi9lXtr8t17GYM/AINAbTHNl fLUzE82m9hWqo3qZLKDucNwVwaY+DxvISu2u3ZbnnYT9z6e8YqF+TLnwgcqRGdZdn86E CC3qZQ2upZWsFE4OSEp0qN0QTYiJIqrYHCDyMQ2isffFGQsPiD48jxkWdbH4ngJdAhhF QIAc4KPVPDGU4Kdzg+eQ596Tmv7YdVIiMVdsfbGU0jMEFMNhCofd6CvzBsgrR52mc8QM XLqMZGdiF/Ozqj7ei/dIxrO0LBLsuffibH87M9ApngGNQEEXZX+QOPcHoPFl3zhFBLcK 8t2Q== 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 :subject:references:in-reply-to; bh=fkpgq/vk1tqmgcy8rrq5zyVCLDhXKl97UUfCqE5IEOA=; b=Fa/WW0BQmPs3XkfwRDmW14ei5VoocteXko4MP/pEgccmld3x1zbI1IpUD7sYXxTwzj njHzE2Nogez3bxNhewgpbVDtWFZ+DPFVqNvvA2zPbLgJ54EecXei7RFXkuPFoRxYe6Ob wwggiNV/JmR8bZN4RqBjDubyqAMBvaWNJ6uBz94oeZMi2a3Dov2PfZU0X5g+lE9b53u2 L5vQDUC406C3nYyZ2NSB9nn3i5/MB59aCRRZDjgiAMNBfL0QnkBGUGTkmv3VIwI9Vs60 iGxwv/qiP1J0nleBJUNtLh7gZGc1OvVe+iAtzvPCHJzd+WTwUcSbJDg95XtvI7vTtHF4 A1IQ== X-Gm-Message-State: AA6/9RmrEorUqtIX7A5YySYYyIEvWaFNJ9V84OsagODA1vdT08PKoVNKMeZSJfv0/idjGQ== X-Received: by 10.25.196.193 with SMTP id u184mr7528794lff.32.1476095447943; Mon, 10 Oct 2016 03:30:47 -0700 (PDT) Original-Received: from keima.localdomain (x2f23e0b.dyn.telefonica.de. [2.242.62.11]) by smtp.gmail.com with ESMTPSA id l203sm2744319lfe.17.2016.10.10.03.30.46 for (version=TLS1 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 10 Oct 2016 03:30:47 -0700 (PDT) In-Reply-To: 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:96414 Archived-At: This is a multi-part message in MIME format. --===============2241049832001871946== Content-Type: multipart/alternative; boundary="------------060901000709040807020807" This is a multi-part message in MIME format. --------------060901000709040807020807 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit > Henri Menke > 10. Oktober 2016 um 11:44 > On 10/10/2016 11:24 AM, Wolfgang Schuster wrote: >>> 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. > > Dear Wolfgang, > > I appreciate your efforts but this does not change anything in my original example. For reference, I include my updated example > You can add a grid setting for the formula itself, e.g. \setupformula[grid=tolerant] but you should add a blank line before \startformula, otherwise the setting for formula is applied to the last paragraph before it. Wolfgang --------------060901000709040807020807 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 8bit
10. Oktober 2016 um 11:44
On 10/10/2016 11:24 AM, Wolfgang Schuster wrote:
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.

Dear Wolfgang,

I appreciate your efforts but this does not change anything in my original example.  For reference, I include my updated example

You can add a grid setting for the formula itself, e.g.

    \setupformula[grid=tolerant]

but you should add a blank line before \startformula, otherwise the setting for formula is applied to the last paragraph before it.

Wolfgang
--------------060901000709040807020807-- --===============2241049832001871946== 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= --===============2241049832001871946==--