From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/107048 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: Gerben Wierda Newsgroups: gmane.comp.tex.context Subject: Re: Setting vertical spacing of lines inside a \framed[align=] Date: Fri, 24 Apr 2020 18:19:44 +0200 Message-ID: <304DA0D3-0BFA-474D-9349-78458330CC5E@rna.nl> References: <180EEEA2-43FE-4491-8C21-25292B251CCC@rna.nl> <9c14c214-d949-9df0-35c2-12b3046ed335@gmail.com> Reply-To: mailing list for ConTeXt users Mime-Version: 1.0 (Mac OS X Mail 12.4 \(3445.104.14\)) Content-Type: multipart/mixed; boundary="===============2859048867180825401==" Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="34680"; mail-complaints-to="usenet@ciao.gmane.io" Cc: mailing list for ConTeXt users To: Wolfgang Schuster Original-X-From: ntg-context-bounces@ntg.nl Fri Apr 24 18:20:21 2020 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 1jS13t-0008wc-2Y for gctc-ntg-context-518@m.gmane-mx.org; Fri, 24 Apr 2020 18:20:21 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 9D3BD183660; Fri, 24 Apr 2020 18:19:51 +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 JQjHEH5DDGsX; Fri, 24 Apr 2020 18:19:50 +0200 (CEST) Original-Received: from zapf.ntg.nl (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 0EFC01836F3; Fri, 24 Apr 2020 18:19:50 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 7B46E1836F7 for ; Fri, 24 Apr 2020 18:19:48 +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 oU9NON2mmkzy for ; Fri, 24 Apr 2020 18:19:47 +0200 (CEST) Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=213.125.118.53; helo=mail.rna.nl; envelope-from=gerben.wierda@rna.nl; receiver= Original-Received: from mail.rna.nl (mail.rna.nl [213.125.118.53]) (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 776BA183660 for ; Fri, 24 Apr 2020 18:19:47 +0200 (CEST) Original-Received: from luna-wifi.rna.nl (luna-wifi.rna.nl [192.168.2.89]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.rna.nl (Postfix) with ESMTPSA id 96E1B3DAFBC6; Fri, 24 Apr 2020 18:19:45 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rna.nl; s=dkim_rsa2048; t=1587745185; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=HGzMpwDtzDhzwZZRLsNZgmAmrANnhOJDXIr326KawPU=; b=DJ1Z0UcS1TdXNRSeGaDDbpV9J8Vz/0DrdYw82zfvpunP1wIeXBqvR90sfolD90T/V4uA/A ss2t+ppqc9scGVMa+KWSrHT0Yqfpntsp5CKgKNB42RgPK29x61HTq2X2cgBKDl8ldvKrga NyytY5xISNBXySbYO6a1YIWPZH4EnP8XsGJFJ2tEO4tSUNVQRq5VAG66O81wl5nMdFOEE3 fRaRpBoeYrd5ubFKgyriYrlBZ8zjo62oRlCKdXhTehY2of+yk42rcvBHDVPyoU2KZZKXvc W21pIrDvxNBp2+P9B8RvjQvF8vJl1u6AXh4XoRrCh2v7GiTnxb0tSscRR3LLxg== In-Reply-To: <9c14c214-d949-9df0-35c2-12b3046ed335@gmail.com> X-Mailer: Apple Mail (2.3445.104.14) 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:107048 Archived-At: --===============2859048867180825401== Content-Type: multipart/alternative; boundary="Apple-Mail=_5EE01375-1693-4D89-969F-3E45D24DAC68" --Apple-Mail=_5EE01375-1693-4D89-969F-3E45D24DAC68 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 I want the lines in this frame packed more closely together: \starttext = \framed[align=3Dflushright,frame=3Don,offset=3Dnone,width=3D106.400bp]{\se= tupinterlinespace[0.9]\colored[r=3D0.000, g=3D0.000, b=3D0.000]{\switchtobodyfont[11.0pt] \rm = [My]\\Application\\(Component)}} \stoptext I tried a bit of fiddling, and the following changes the height of the = first line only: \starttext = \framed[align=3Dflushright,frame=3Don,offset=3Dnone,width=3D106.400bp]{\co= lored[r=3D0.000, g=3D0.000, b=3D0.000]{\switchtobodyfont[11.0pt] \setupinterlinespace[20pt] \rm = [My]\\Application\\(Component)}} \stoptext and if I change the value to 0.6, only the first line break gets packed = somewhat. But I can=E2=80=99t get the entire paragraph inside the frame = packed. I played around with the placing of setupinterlinespace in that = snippet above, but nothing really works so far. I left the \colored etc in, because I also need to do all of those, so I = need a solution that works in the above setting. Gerben Wierda Chess and the Art of Enterprise Architecture = Mastering ArchiMate Architecture for Real Enterprises = at = InfoWorld On Slippery Ice at EAPJ > On 24 Apr 2020, at 17:54, Wolfgang Schuster = wrote: >=20 > Gerben Wierda schrieb am 24.04.2020 um 17:38: >> I have been experimenting with \startpacked..\stoppacked but it = doesn=E2=80=99t seem to work. What is the preferred way of getting lines = in a normal paragraph (actually, we=E2=80=99re talking about a \framed = with align, so a full paragraph in a TeX \vbox) >=20 > Do you want to have a linebreak at the end of the frame >=20 > \starttext >=20 > \startframed > \samplefile{knuth} > \stopframed >=20 > \startframed[width=3Dmax,align=3Dnormal] > \samplefile{knuth} > \stopframed >=20 > \stoptext >=20 > or do you want to change to change the spacing >=20 > \starttext >=20 > \startframedtext[width=3Dmax,style=3D{\setupinterlinespace[medium]}] > \samplefile{knuth} > \stopframedtext >=20 > \startframedtext[width=3Dmax,style=3D{\setupwhitespace[medium]}] > \samplefile{knuth} > \stopframedtext >=20 > \stoptext >=20 > Wolfgang --Apple-Mail=_5EE01375-1693-4D89-969F-3E45D24DAC68 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=utf-8 I = want the lines in this frame packed more closely together:

\starttext

\framed[align=3Dflushright,frame=3Don,offset=3Dnone,width=3D106= .400bp]{\setupinterlinespace[0.9]\colored[r=3D0.000, = g=3D0.000,
b=3D0.000]{\switchtobodyfont[11.0pt] \rm = [My]\\Application\\(Component)}}

\stoptext

I tried a bit of fiddling, and = the following changes the height of the first line only:

\starttext

\framed[align=3Dflushright,frame=3Don,offset=3Dnone,width=3D106= .400bp]{\colored[r=3D0.000, g=3D0.000,
b=3D0.000]{\switchtobodyfont[11.0pt] = \setupinterlinespace[20pt] \rm = [My]\\Application\\(Component)}}

\stoptext

and if I change the value to = 0.6, only the first line break gets packed somewhat. But I can=E2=80=99t = get the entire paragraph inside the frame packed. I played around with = the placing of setupinterlinespace in that snippet above, but nothing = really works so far.

I left the \colored etc in, because I also need to do all of = those, so I need a solution that works in the above setting.


On 24 Apr 2020, at 17:54, Wolfgang Schuster <wolfgang.schuster.lists@gmail.com> wrote:

Gerben= Wierda schrieb am 24.04.2020 um 17:38:
I have been experimenting with = \startpacked..\stoppacked but it doesn=E2=80=99t seem to work. What is = the preferred way of getting lines in a normal paragraph (actually, = we=E2=80=99re talking about a \framed with align, so a full paragraph in = a TeX \vbox)

Do you want to = have a linebreak at the end of the frame

\starttext

\startframed
\samplefile{knuth}
\stopframed

\startframed[width=3Dmax,align=3Dnormal]
\samplefile{knuth}
\stopframed

\stoptext

or do you want to = change to change the spacing

\starttext

\startframedtext[width=3Dmax,style=3D{\setupinterlinespace[medi= um]}]
\samplefile{knuth}
\stopframedtext

\startframedtext[width=3Dmax,style=3D{\setupwhitespace[medium]}= ]
\samplefile{knuth}
\stopframedtext

\stoptext

Wolfgang

= --Apple-Mail=_5EE01375-1693-4D89-969F-3E45D24DAC68-- --===============2859048867180825401== 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== --===============2859048867180825401==--