From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/110967 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Newsgroups: gmane.comp.tex.context Subject: Grid typesetting, blockquotes in smaller font across pagebreaks Date: Thu, 25 Mar 2021 13:08:48 +0000 Message-ID: <23bd65f0054942ca8052f7f1ad8471e9@ub.unibe.ch> Reply-To: mailing list for ConTeXt users Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============8488904283123207893==" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="7238"; mail-complaints-to="usenet@ciao.gmane.io" To: Original-X-From: ntg-context-bounces@ntg.nl Thu Mar 25 14:09:27 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 1lPPjq-0001m7-9e for gctc-ntg-context-518@m.gmane-mx.org; Thu, 25 Mar 2021 14:09:26 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 9944D281DA7; Thu, 25 Mar 2021 14:08:54 +0100 (CET) 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 b4eYRXMBpYKw; Thu, 25 Mar 2021 14:08:52 +0100 (CET) Original-Received: from zapf.ntg.nl (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 423D3281DAB; Thu, 25 Mar 2021 14:08:52 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 6E6D3281DA0 for ; Thu, 25 Mar 2021 14:08:51 +0100 (CET) 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 Kjwd7JoecjlE for ; Thu, 25 Mar 2021 14:08:50 +0100 (CET) Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=130.92.0.82; helo=mailhub-lb1.unibe.ch; envelope-from=denis.maier@ub.unibe.ch; receiver= Original-Received: from mailhub-lb1.unibe.ch (mailhub-lb1.unibe.ch [130.92.0.82]) (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 7C1CC281D9F for ; Thu, 25 Mar 2021 14:08:50 +0100 (CET) X-Virus-Scanned: By University of Bern - MGW Original-Received: from mail.campus.unibe.ch (aai-edge-04.campus.unibe.ch [130.92.13.146]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mailhub-lb1.unibe.ch (Postfix) with ESMTPS id 3DE315000B3 for ; Thu, 25 Mar 2021 14:08:49 +0100 (CET) Thread-Topic: Grid typesetting, blockquotes in smaller font across pagebreaks Thread-Index: Adchcu4YJUq6QaJARXCh+XtukrgYdg== 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:110967 Archived-At: --===============8488904283123207893== Content-Language: de-DE Content-Type: multipart/alternative; boundary="_000_23bd65f0054942ca8052f7f1ad8471e9ubunibech_" --_000_23bd65f0054942ca8052f7f1ad8471e9ubunibech_ Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Hi, I'm playing around with grid typesetting. Consider the following example: -------------------------------------- \setuppapersize[A5][A5] \setupbodyfont[10pt] \setuplayout[grid=3Dyes] \showgrid \setupdelimitedtext[blockquote] [ style=3D\tfx= , %style=3D\tf= x\setupinterlinespace, % this breaks grid snapping spacebefore= =3Dhalfline, indentnext= =3Dno, leftmargin= =3Dno, rightmargin= =3Dno, ] \starttext \dorecurse{5}{ \dorecurse{5}{Some text on a grid. } \startblockquote \dorecurse{10}{A quotation in a smaller font. } \stopblockquote \dorecurse{5}{This should be on the grid again. }} \stoptext -------------------------------------- With style=3D\tfx it kind of works as long as the quotations don't run over= page boundaries. With style=3D\tfx\setupinterlinespace paragraphs after qu= otations don't snap back to the grid. Spacebefore=3Dline is somewhat better, but also only if I use \tfx without = \setupinterlinespace. Any hints? (But maybe I'm approaching the problem from the wrong direction anyway... I= need the have pages end consistently at the same baseline, and I thought g= rid typesetting might be an option here. But maybe that was a wrong assumpt= ion in the first place... Or there are better solutions.) Best, Denis --_000_23bd65f0054942ca8052f7f1ad8471e9ubunibech_ Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable

Hi,

 

I’m playing around with grid typesetting. Cons= ider the following example:

 

--------------------------------------

 

\setuppapersize[A5][A5]

\setupbodyfont[10pt]=

 

\setuplayout[grid=3Dyes]

\showgrid

 

\setupdelimitedtext[blockquote]=

     &= nbsp;           &nbs= p;            &= nbsp;           &nbs= p;            &= nbsp;       [

     &= nbsp;           &nbs= p;            &= nbsp;           &nbs= p;            &= nbsp;       style=3D\tfx,

     &= nbsp;           &nbs= p;            &= nbsp;           &nbs= p;            &= nbsp;       %style=3D\tfx\setupinterlinespace= , % this breaks grid snapping

     &= nbsp;           &nbs= p;            &= nbsp;           &nbs= p;            &= nbsp;       spacebefore=3Dhalfline,

     &= nbsp;           &nbs= p;            &= nbsp;           &nbs= p;            &= nbsp;       indentnext=3Dno,

     &= nbsp;           &nbs= p;            &= nbsp;           &nbs= p;            &= nbsp;       leftmargin=3Dno,

     &= nbsp;           &nbs= p;            &= nbsp;           &nbs= p;            &= nbsp;       rightmargin=3Dno,

     &= nbsp;           &nbs= p;            &= nbsp;           &nbs= p;            &= nbsp;       ]

 

 

\starttext

 

\dorecurse{5}{

\dorecurse{5}{Some text on a gr= id. }

 

\startblockquote

 

\dorecurse{10}{A quotation in a= smaller font. }

 

\stopblockquote

 

\dorecurse{5}{This should be on= the grid again. }}

 

\stoptext

--------------------------------------

 

With style=3D\tfx it kind of wo= rks as long as the quotations don’t run over page boundaries. With st= yle=3D\tfx\setupinterlinespace paragraphs after quotations don’t snap= back to the grid.

Spacebefore=3Dline is somewhat better, but also only= if I use \tfx without \setupinterlinespace.

 

Any hints?

 

(But maybe I’m approaching the problem from th= e wrong direction anyway… I need the have pages end consistently at t= he same baseline, and I thought grid typesetting might be an option here. B= ut maybe that was a wrong assumption in the first place… Or there are better solutions.)

 

Best,

Denis

 

 

 

--_000_23bd65f0054942ca8052f7f1ad8471e9ubunibech_-- --===============8488904283123207893== 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== --===============8488904283123207893==--