ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* interline space in setupparagraphs
@ 2005-10-26 20:40 Gerben Wierda
  2005-10-27 16:59 ` Peter Rolf
  0 siblings, 1 reply; 5+ messages in thread
From: Gerben Wierda @ 2005-10-26 20:40 UTC (permalink / raw)


I have:

\setupinterlinespace[medium]
\defineparagraphs
         [mypar][n=2,before={\blank[small]},after={\blank[small]}]
\setupparagraphs
         [mypar][1][width=.15\textwidth,style=bold]
\setupparagraphs
         [mypar][2][width=.85\textwidth]

But the lines in mypar are closely packed while others have medium 
inteline spacing. What should I do?

G

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: interline space in setupparagraphs
  2005-10-26 20:40 interline space in setupparagraphs Gerben Wierda
@ 2005-10-27 16:59 ` Peter Rolf
  2005-10-27 17:30   ` Gerben Wierda
  0 siblings, 1 reply; 5+ messages in thread
From: Peter Rolf @ 2005-10-27 16:59 UTC (permalink / raw)


Hi Gerben,

Gerben Wierda wrote:
> I have:
> 
> \setupinterlinespace[medium]
\setupinterlinespace[line=\dimexpr1.25\bodyfontsize\relax]

> \defineparagraphs
>         [mypar][n=2,before={\blank[small]},after={\blank[small]}]
> \setupparagraphs
>         [mypar][1][width=.15\textwidth,style=bold]
> \setupparagraphs
>         [mypar][2][width=.85\textwidth]
> 
> But the lines in mypar are closely packed while others have medium
> inteline spacing. What should I do?
> 
> G
> 
> _______________________________________________
> ntg-context mailing list
> ntg-context@ntg.nl
> http://www.ntg.nl/mailman/listinfo/ntg-context
> 
> 

The normal and the bold variant seem to have different interline
spacing. So simply use a fixed value for your example.

Greetings,

Peter

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: interline space in setupparagraphs
  2005-10-27 16:59 ` Peter Rolf
@ 2005-10-27 17:30   ` Gerben Wierda
  2005-10-27 19:34     ` Peter Rolf
  0 siblings, 1 reply; 5+ messages in thread
From: Gerben Wierda @ 2005-10-27 17:30 UTC (permalink / raw)



On 27 Oct 2005, at 18:59, Peter Rolf wrote:

> Hi Gerben,
>
> Gerben Wierda wrote:
>
>> I have:
>>
>> \setupinterlinespace[medium]
>>
> \setupinterlinespace[line=\dimexpr1.25\bodyfontsize\relax]

That works. But why? And does this relate to the fact that textrule  
spacing as done normally is not used inside the paragraph (see other  
thread)?

G

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: interline space in setupparagraphs
  2005-10-27 17:30   ` Gerben Wierda
@ 2005-10-27 19:34     ` Peter Rolf
  2005-11-01 10:42       ` Vit Zyka
  0 siblings, 1 reply; 5+ messages in thread
From: Peter Rolf @ 2005-10-27 19:34 UTC (permalink / raw)


Gerben Wierda wrote:
> 
> On 27 Oct 2005, at 18:59, Peter Rolf wrote:
> 
>> Hi Gerben,
>>
>> Gerben Wierda wrote:
>>
>>> I have:
>>>
>>> \setupinterlinespace[medium]
>>>
>> \setupinterlinespace[line=\dimexpr1.25\bodyfontsize\relax]
> 
> 
> That works. But why? And does this relate to the fact that textrule 
> spacing as done normally is not used inside the paragraph (see other 
> thread)?
> 
I was also surprised, that a bold variant of the same size is handled
differently.
The interlinespace is calculated each time you change the body font (so
in your case at the start of the columns). Maybe bold adds some extra to
the line factor? Better ask the font wizzards...

And this works, because the \bodyfontsize is equal for both variants.
Using only the line-parameter is maybe not enough, so it's safer to
change it after calling \setupinterlinespace[medium].

Peter

> G
> _______________________________________________
> ntg-context mailing list
> ntg-context@ntg.nl
> http://www.ntg.nl/mailman/listinfo/ntg-context
> 
> 

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: interline space in setupparagraphs
  2005-10-27 19:34     ` Peter Rolf
@ 2005-11-01 10:42       ` Vit Zyka
  0 siblings, 0 replies; 5+ messages in thread
From: Vit Zyka @ 2005-11-01 10:42 UTC (permalink / raw)


Peter Rolf wrote:
> Gerben Wierda wrote:
> 
>>On 27 Oct 2005, at 18:59, Peter Rolf wrote:
>>
>>
>>>Hi Gerben,
>>>
>>>Gerben Wierda wrote:
>>>
>>>
>>>>I have:
>>>>
>>>>\setupinterlinespace[medium]
>>>>
>>>
>>>\setupinterlinespace[line=\dimexpr1.25\bodyfontsize\relax]
>>
>>
>>That works. But why? And does this relate to the fact that textrule 
>>spacing as done normally is not used inside the paragraph (see other 
>>thread)?
>>
> 
> I was also surprised, that a bold variant of the same size is handled
> differently.
> The interlinespace is calculated each time you change the body font (so
> in your case at the start of the columns). Maybe bold adds some extra to
> the line factor? Better ask the font wizzards...

By default, the interlinespace is set to 2.8ex. But ex unit may be 
dependent to the font variant (tf, bf, ...). So setting fix distance or 
distance based on \bodyfontsize solves the problem.

vit

> And this works, because the \bodyfontsize is equal for both variants.
> Using only the line-parameter is maybe not enough, so it's safer to
> change it after calling \setupinterlinespace[medium].
> 
> Peter
> 
> 
>>G
>>_______________________________________________
>>ntg-context mailing list
>>ntg-context@ntg.nl
>>http://www.ntg.nl/mailman/listinfo/ntg-context
>>
>>
> 
> 
> _______________________________________________
> ntg-context mailing list
> ntg-context@ntg.nl
> http://www.ntg.nl/mailman/listinfo/ntg-context
> 

-- 
=======================================================
Ing. Vít Zýka, Ph.D.                         TYPOkvítek

database publishing              databazove publikovani
data maintaining and typesetting in typographic quality
priprava dat a jejich sazba v typograficke kvalite

tel.: (+420) 777 198 189     www: http://typokvitek.com
=======================================================

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2005-11-01 10:42 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-10-26 20:40 interline space in setupparagraphs Gerben Wierda
2005-10-27 16:59 ` Peter Rolf
2005-10-27 17:30   ` Gerben Wierda
2005-10-27 19:34     ` Peter Rolf
2005-11-01 10:42       ` Vit Zyka

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).