From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/111866 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Newsgroups: gmane.comp.tex.context Subject: Re: Adjust Grid to last line textheight Date: Wed, 23 Jun 2021 13:00:29 +0000 Message-ID: <78ca15d3b7e245338100f13d2d60fd79@unibe.ch> References: <1c9124b905154328aeb714cf9cff1b3f@unibe.ch> Reply-To: mailing list for ConTeXt users Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============4153052922896638639==" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="19412"; mail-complaints-to="usenet@ciao.gmane.io" To: Original-X-From: ntg-context-bounces@ntg.nl Wed Jun 23 15:01:15 2021 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane-mx.org Original-Received: from zapf.boekplan.nl ([5.39.185.232] helo=zapf.ntg.nl) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lw2VH-0004k9-KV for gctc-ntg-context-518@m.gmane-mx.org; Wed, 23 Jun 2021 15:01:15 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 0429C284A75; Wed, 23 Jun 2021 15:00:38 +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 ZlysO2TXInVd; Wed, 23 Jun 2021 15:00:36 +0200 (CEST) Original-Received: from zapf.ntg.nl (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 34CCC284A99; Wed, 23 Jun 2021 15:00:36 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 8ED71284A82 for ; Wed, 23 Jun 2021 15:00:35 +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 dJuLSpME_wmn for ; Wed, 23 Jun 2021 15:00:34 +0200 (CEST) Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=130.92.0.84; helo=mailhub-lb3.unibe.ch; envelope-from=denis.maier@unibe.ch; receiver= Original-Received: from mailhub-lb3.unibe.ch (mailhub-lb3.unibe.ch [130.92.0.84]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (No client certificate requested) by zapf.ntg.nl (Postfix) with ESMTPS id 0F556284A75 for ; Wed, 23 Jun 2021 15:00:33 +0200 (CEST) X-Virus-Scanned: By University of Bern - MGW Original-Received: from mail.campus.unibe.ch (aai-edge-01.campus.unibe.ch [130.92.13.20]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mailhub-lb3.unibe.ch (Postfix) with ESMTPS id 0E48A500093 for ; Wed, 23 Jun 2021 15:00:30 +0200 (CEST) Thread-Topic: Adjust Grid to last line textheight Thread-Index: AddoEkKJmmSRUkuISKWK0Sopf5PyrAAAgZHwAAbP4NA= In-Reply-To: <1c9124b905154328aeb714cf9cff1b3f@unibe.ch> Accept-Language: de-CH, en-US Content-Language: de-DE x-originating-ip: [130.92.13.161] X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.26 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.io gmane.comp.tex.context:111866 Archived-At: --===============4153052922896638639== Content-Language: de-DE Content-Type: multipart/alternative; boundary="_000_78ca15d3b7e245338100f13d2d60fd79unibech_" --_000_78ca15d3b7e245338100f13d2d60fd79unibech_ Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable I've tried adjusting interlinespacing, but it seems to make no difference : =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D \setupinterlinespace[ height=3D.72, depth=3D.28, top=3D2, %top=3D0, %top=3D5, %top=3D1, bottom=3D0, %bottom=3D0.4, %bottom=3D0, %bottom=3D1, %bottom=3D5, line=3D2.8ex, ] \setuplayout[grid=3Dyes] \showgrid \starttext \dorecurse{5}{\input knuth\par} \stoptext =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D Even extreme values for top and bottom (e.g. 0 or 10) seem to make no diffe= rence at all. What am I missing? Is that even the right place to make that adjustment ? Denis Von: ntg-context Im Auftrag von denis.maier@un= ibe.ch Gesendet: Mittwoch, 23. Juni 2021 11:47 An: ntg-context@ntg.nl Betreff: [NTG-context] WG: Adjust Grid to last line textheight Hi, I have to use grid typesetting and the grid has to be aligned to the last l= ine of textheight. I have to replicate a layout made with Indesign where th= ere seems to be a bit of additional spacing before the first line, whereas = in ConTeXt that happens to be after the last line of the page (see attachme= nt). Is that possible? I have already found the various grid snapping methods, but they seem to ch= ange how content is placed on the grid, not the placement of the grid itsel= f. =3D=3D=3D=3D=3D=3D=3D \setuplayout[grid=3Dyes] \showgrid \starttext \input knuth \stoptext =3D=3D=3D=3D=3D=3D=3D Best, Denis --_000_78ca15d3b7e245338100f13d2d60fd79unibech_ Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable

I’ve tried adjusting inte= rlinespacing, but it seems to make no difference :

 

=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D

\setupinterlinespace[

        &nbs= p;       height=3D.72,

        &nbs= p;       depth=3D.28,

        &nbs= p;       top=3D2,

        &nbs= p;       %top=3D0,

        &nbs= p;       %top=3D5,

        &nbs= p;       %top=3D1,

        &nbs= p;       bottom=3D0,

        &nbs= p;       %bottom=3D0.4,

        &nbs= p;       %bottom=3D0,

        &nbs= p;       %bottom=3D1,

        &nbs= p;       %bottom=3D5,

        &nbs= p;       line=3D2.8ex,

        &nbs= p;       ]

 

\setuplayout[grid=3Dyes]

\showgrid

\starttext

 

\dorecurse{5}{\input knuth\par}

 

\stoptext

=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D

 

Even extreme values for top and bottom (e.g. 0 or 10= ) seem to make no difference at all.

What am I missing? Is that even= the right place to make that adjustment ?

 

Denis

 

Von: ntg-context <ntg-context-bounces@ntg.nl> Im Auftrag von denis.maier@unibe.ch
Gesendet: Mittwoch, 23. Juni 2021 11:47
An: ntg-context@ntg.nl
Betreff: [NTG-context] WG: Adjust Grid to last line textheight<= /o:p>

 

Hi,

 

I have to= use grid typesetting and the grid has to be aligned to the last line of te= xtheight. I have to replicate a layout made with Indesign where there seems= to be a bit of additional spacing before the first line, whereas in ConTeXt that happens to be after the last line = of the page (see attachment).

&nbs= p;

Is that possible?

 

I have already found the various grid snapping methods, but they seem= to change how content is placed on the grid, not the placement of the grid= itself.

 

=3D=3D=3D=3D=3D=3D=3D

\setuplayout[grid=3Dyes]

\showgrid

\starttext

 

\input knuth

 

\stoptext

=3D=3D=3D=3D=3D=3D=3D

 

Best,

Denis

--_000_78ca15d3b7e245338100f13d2d60fd79unibech_-- --===============4153052922896638639== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX18KSWYgeW91ciBxdWVzdGlvbiBpcyBvZiBpbnRlcmVz dCB0byBvdGhlcnMgYXMgd2VsbCwgcGxlYXNlIGFkZCBhbiBlbnRyeSB0byB0aGUgV2lraSEKCm1h aWxsaXN0IDogbnRnLWNvbnRleHRAbnRnLm5sIC8gaHR0cDovL3d3dy5udGcubmwvbWFpbG1hbi9s aXN0aW5mby9udGctY29udGV4dAp3ZWJwYWdlICA6IGh0dHA6Ly93d3cucHJhZ21hLWFkZS5ubCAv IGh0dHA6Ly9jb250ZXh0LmFhbmhldC5uZXQKYXJjaGl2ZSAgOiBodHRwczovL2JpdGJ1Y2tldC5v cmcvcGhnL2NvbnRleHQtbWlycm9yL2NvbW1pdHMvCndpa2kgICAgIDogaHR0cDovL2NvbnRleHRn YXJkZW4ubmV0Cl9fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fCg== --===============4153052922896638639==--