From: Gerben Wierda <gerben.wierda@rna.nl>
To: Wolfgang Schuster <wolfgang.schuster.lists@gmail.com>
Cc: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: Setting vertical spacing of lines inside a \framed[align=]
Date: Fri, 24 Apr 2020 18:19:44 +0200 [thread overview]
Message-ID: <304DA0D3-0BFA-474D-9349-78458330CC5E@rna.nl> (raw)
In-Reply-To: <9c14c214-d949-9df0-35c2-12b3046ed335@gmail.com>
[-- Attachment #1.1: Type: text/plain, Size: 2268 bytes --]
I want the lines in this frame packed more closely together:
\starttext
\framed[align=flushright,frame=on,offset=none,width=106.400bp]{\setupinterlinespace[0.9]\colored[r=0.000, g=0.000,
b=0.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=flushright,frame=on,offset=none,width=106.400bp]{\colored[r=0.000, g=0.000,
b=0.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’t 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 <https://ea.rna.nl/the-book/>
Mastering ArchiMate <https://ea.rna.nl/the-book-edition-iii/>
Architecture for Real Enterprises <https://www.infoworld.com/blog/architecture-for-real-enterprises/> at InfoWorld
On Slippery Ice <https://eapj.org/on-slippery-ice/> at EAPJ
> 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’t seem to work. What is the preferred way of getting lines in a normal paragraph (actually, we’re 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=max,align=normal]
> \samplefile{knuth}
> \stopframed
>
> \stoptext
>
> or do you want to change to change the spacing
>
> \starttext
>
> \startframedtext[width=max,style={\setupinterlinespace[medium]}]
> \samplefile{knuth}
> \stopframedtext
>
> \startframedtext[width=max,style={\setupwhitespace[medium]}]
> \samplefile{knuth}
> \stopframedtext
>
> \stoptext
>
> Wolfgang
[-- Attachment #1.2: Type: text/html, Size: 6740 bytes --]
[-- Attachment #2: Type: text/plain, Size: 493 bytes --]
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage : http://www.pragma-ade.nl / http://context.aanhet.net
archive : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___________________________________________________________________________________
next prev parent reply other threads:[~2020-04-24 16:19 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-04-24 15:38 Gerben Wierda
2020-04-24 15:54 ` Wolfgang Schuster
2020-04-24 16:19 ` Gerben Wierda [this message]
2020-04-24 16:40 ` Thomas A. Schmitz
2020-04-24 17:29 ` Wolfgang Schuster
2020-04-24 20:06 ` Gerben Wierda
2020-04-24 22:48 ` METAPOST textext() eats my \pars. Was: " Gerben Wierda
2020-04-24 22:51 ` Gerben Wierda
2020-04-25 10:09 ` Solution: " Gerben Wierda
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=304DA0D3-0BFA-474D-9349-78458330CC5E@rna.nl \
--to=gerben.wierda@rna.nl \
--cc=ntg-context@ntg.nl \
--cc=wolfgang.schuster.lists@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).