Re: [NTG-context] Setting vertical spacing of lines inside a \framed[align=]

2020-04-24 Thread Gerben Wierda
Not possible in my case, unless I redefine them for each use (my code is 
generated from data with unpredictable colors), hut thanks anyway


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 19:32, Wolfgang Schuster 
>  wrote:
> 
> Thomas A. Schmitz schrieb am 24.04.2020 um 18:40:
 On 24. Apr 2020, at 18:19, Gerben Wierda  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
> ___
> 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
> ___
___
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
___


Re: [NTG-context] Setting vertical spacing of lines inside a \framed[align=]

2020-04-24 Thread Wolfgang Schuster

Thomas A. Schmitz schrieb am 24.04.2020 um 18:40:



On 24. Apr 2020, at 18:19, Gerben Wierda  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
___
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
___


Re: [NTG-context] Setting vertical spacing of lines inside a \framed[align=]

2020-04-24 Thread Thomas A. Schmitz


> On 24. Apr 2020, at 18:19, Gerben Wierda  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

Thomas
___
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
___


Re: [NTG-context] Setting vertical spacing of lines inside a \framed[align=]

2020-04-24 Thread Gerben Wierda
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 
Mastering ArchiMate 
Architecture for Real Enterprises 
 at InfoWorld
On Slippery Ice  at EAPJ

> On 24 Apr 2020, at 17:54, Wolfgang Schuster 
>  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

___
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
___


[NTG-context] Setting vertical spacing of lines inside a \framed[align=]

2020-04-24 Thread Gerben Wierda
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)

(In addition, I try to find this kind of information first, in the manuals and 
in ConTeXtgarden, but I am failing. E.g. I look it up in the manual, do not 
really find it, then look it up in ConTeXt garden but it isn’t really 
documentend, then click ‘look in source’ and th elink doesn’t work. So, I have 
to bother people on the list for a basic question like this. I must be doing 
something wrong and looking in the wrong place)

Gerben Wierda
Chess and the Art of Enterprise Architecture 
Mastering ArchiMate 
Architecture for Real Enterprises 
 at InfoWorld
On Slippery Ice  at EAPJ

___
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
___


Re: [NTG-context] Setting vertical spacing of lines inside a \framed[align=]

2020-04-24 Thread Wolfgang Schuster

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
___
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
___