[NTG-context] Setting vertical spacing of lines inside a \framed[align=]
Wolfgang Schuster
wolfgang.schuster.lists at gmail.com
Fri Apr 24 19:29:12 CEST 2020
Thomas A. Schmitz schrieb am 24.04.2020 um 18:40:
>
>> On 24. Apr 2020, at 18:19, Gerben Wierda <gerben.wierda at rna.nl> wrote:
>>
>> \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.
>
> At the end of your frame, you need an explicit \par to make the change of linespacing work:
>
> \framed[align=flushright,frame=on,offset=none,width=106.400bp]{\colored[r=0.000, g=0.000,
> b=0.000]{\switchtobodyfont[11.0pt] \setupinterlinespace[14pt] \rm [My]\\Application\\(Component)\par }}
>
> https://www.mail-archive.com/ntg-context@ntg.nl/msg45676.html
Use style/color keys when possible.
\starttext
\framed
[align=flushright,
offset=none,
width=106.400bp,
foregroundcolor=black,
foregroundstyle={\switchtobodyfont[11.0pt]\setupinterlinespace[line=2.4ex]}]
{[My]\par Application\par (Component)\par}
\stoptext
Wolfgang
More information about the ntg-context
mailing list