ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* interline space?
@ 2005-11-23  8:55 Giuseppe Bilotta
  2005-11-23  9:11 ` Charles Doherty
  0 siblings, 1 reply; 8+ messages in thread
From: Giuseppe Bilotta @ 2005-11-23  8:55 UTC (permalink / raw)


How do I get a double-spaced document?
\setupinterlinespace[big] seems to do nothing ...

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

* Re: interline space?
  2005-11-23  8:55 interline space? Giuseppe Bilotta
@ 2005-11-23  9:11 ` Charles Doherty
  2005-11-23  9:28   ` Hans Hagen
  0 siblings, 1 reply; 8+ messages in thread
From: Charles Doherty @ 2005-11-23  9:11 UTC (permalink / raw)



[-- Attachment #1.1: Type: text/plain, Size: 654 bytes --]


On 23 Nov 2005, at 08:55, Giuseppe Bilotta wrote:

> How do I get a double-spaced document?
> \setupinterlinespace[big] seems to do nothing ...
>
> _______________________________________________
> ntg-context mailing list
> ntg-context@ntg.nl
> http://www.ntg.nl/mailman/listinfo/ntg-context

Giuseppe,

I used this for my daughter's thesis recently.

\setupinterlinespace[line=1.8\bodyfontsize] %change 1.8 to whatever
\setupwhitespace[big]

Best wishes,
Charlie


*******************
Charles Doherty,
Early Irish History,
Room K113,
School of History,
John Henry Newman Building,
University College Dublin,
Belfield,
Dublin 4

Tel: +353 1 716 8381



[-- Attachment #1.2: Type: text/html, Size: 3542 bytes --]

[-- Attachment #2: Type: text/plain, Size: 139 bytes --]

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

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

* Re: interline space?
  2005-11-23  9:11 ` Charles Doherty
@ 2005-11-23  9:28   ` Hans Hagen
  2005-11-24 19:55     ` Re[2]: " Giuseppe Bilotta
  0 siblings, 1 reply; 8+ messages in thread
From: Hans Hagen @ 2005-11-23  9:28 UTC (permalink / raw)


Charles Doherty wrote:

>
> On 23 Nov 2005, at 08:55, Giuseppe Bilotta wrote:
>
>> How do I get a double-spaced document?
>> \setupinterlinespace[big] seems to do nothing ...
>>
>> _______________________________________________
>> ntg-context mailing list
>> ntg-context@ntg.nl <mailto:ntg-context@ntg.nl>
>> http://www.ntg.nl/mailman/listinfo/ntg-context
>
>
> Giuseppe,
>
> I used this for my daughter's thesis recently.
>
> \setupinterlinespace[line=1.8\bodyfontsize] %change 1.8 to whatever
> \setupwhitespace[big]
>
default is 2.8ex (.72/.28 ratio), so gb may try 5.6ex

Hans

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

* Re[2]: interline space?
  2005-11-23  9:28   ` Hans Hagen
@ 2005-11-24 19:55     ` Giuseppe Bilotta
  2005-11-24 20:07       ` Taco Hoekwater
  0 siblings, 1 reply; 8+ messages in thread
From: Giuseppe Bilotta @ 2005-11-24 19:55 UTC (permalink / raw)


Wednesday, November 23, 2005 Hans Hagen wrote:

> Charles Doherty wrote:

>>
>> On 23 Nov 2005, at 08:55, Giuseppe Bilotta wrote:
>>
>>> How do I get a double-spaced document?
>>> \setupinterlinespace[big] seems to do nothing ...
>>>
>>> _______________________________________________
>>> ntg-context mailing list
>>> ntg-context@ntg.nl <mailto:ntg-context@ntg.nl>
>>> http://www.ntg.nl/mailman/listinfo/ntg-context
>>
>>
>> Giuseppe,
>>
>> I used this for my daughter's thesis recently.
>>
>> \setupinterlinespace[line=1.8\bodyfontsize] %change 1.8 to whatever
>> \setupwhitespace[big]
>>
> default is 2.8ex (.72/.28 ratio), so gb may try 5.6ex

But why doesn't \setupinterlinespace work? Or am I using the
wrong syntax?

-- 
Giuseppe "Oblomov" Bilotta

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

* Re: interline space?
  2005-11-24 19:55     ` Re[2]: " Giuseppe Bilotta
@ 2005-11-24 20:07       ` Taco Hoekwater
  2005-11-24 21:10         ` Hans Hagen
  0 siblings, 1 reply; 8+ messages in thread
From: Taco Hoekwater @ 2005-11-24 20:07 UTC (permalink / raw)


Giuseppe Bilotta wrote:
> Wednesday, November 23, 2005 Hans Hagen wrote:
> 
> 
>>Charles Doherty wrote:
> 
> 
>>>On 23 Nov 2005, at 08:55, Giuseppe Bilotta wrote:
>>>
>>>
>>>>How do I get a double-spaced document?
>>>>\setupinterlinespace[big] seems to do nothing ...
>>>>
>>default is 2.8ex (.72/.28 ratio), so gb may try 5.6ex
> 
> But why doesn't \setupinterlinespace work? Or am I using the
> wrong syntax?

This works:

   \setupinterlinespace[big]
   \starttext
   \dorecurse{10}{\input knuth}
   \stoptext

This doesn't:

   \setupinterlinespace[big]
   \switchtobodyfont[10pt]
   \starttext
   \dorecurse{10}{\input knuth}
   \stoptext

But I don't know whether that's a bug or a feature or a side-effect.

Cheers, Taco

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

* Re: interline space?
  2005-11-24 20:07       ` Taco Hoekwater
@ 2005-11-24 21:10         ` Hans Hagen
  2005-11-24 21:18           ` Re[2]: " Giuseppe Bilotta
  0 siblings, 1 reply; 8+ messages in thread
From: Hans Hagen @ 2005-11-24 21:10 UTC (permalink / raw)


Taco Hoekwater wrote:

> Giuseppe Bilotta wrote:
>
>> Wednesday, November 23, 2005 Hans Hagen wrote:
>>
>>
>>> Charles Doherty wrote:
>>
>>
>>
>>>> On 23 Nov 2005, at 08:55, Giuseppe Bilotta wrote:
>>>>
>>>>
>>>>> How do I get a double-spaced document?
>>>>> \setupinterlinespace[big] seems to do nothing ...
>>>>>
>>> default is 2.8ex (.72/.28 ratio), so gb may try 5.6ex
>>
>>
>> But why doesn't \setupinterlinespace work? Or am I using the
>> wrong syntax?
>
>
> This works:
>
>   \setupinterlinespace[big]
>   \starttext
>   \dorecurse{10}{\input knuth}
>   \stoptext
>
> This doesn't:
>
>   \setupinterlinespace[big]
>   \switchtobodyfont[10pt]
>   \starttext
>   \dorecurse{10}{\input knuth}
>   \stoptext
>
> But I don't know whether that's a bug or a feature or a side-effect.

interesting; this is handled in:

\def\setuprelativeinterlinespace[#1]%
  {\processallactionsinset % \regelwit = dummy !
     [#1]
     [      \v!on=>\oninterlineskip,
           \v!off=>\offinterlineskip,
         \v!reset=>\setfontparameters,% just \setstrut, test first
       \s!unknown=>\assignvalue{#1}\regelwit{1.00}{1.25}{1.50}%
                   \spacing\regelwit]}

now, (apart from \regelwit being dutch), this value is used nowhere 
else, so this setting will not be seen afterwards

in this respect it's not a bug but just a characteristics; however, it 
would make sense to let it carry over, so ...

i have to think about it

Hans

(quote old code btw)

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

* Re[2]: interline space?
  2005-11-24 21:10         ` Hans Hagen
@ 2005-11-24 21:18           ` Giuseppe Bilotta
  2005-11-24 21:22             ` Hans Hagen
  0 siblings, 1 reply; 8+ messages in thread
From: Giuseppe Bilotta @ 2005-11-24 21:18 UTC (permalink / raw)


Thursday, November 24, 2005 Hans Hagen wrote:

> \def\setuprelativeinterlinespace[#1]%
>   {\processallactionsinset % \regelwit = dummy !
>      [#1]
>      [      \v!on=>\oninterlineskip,
>            \v!off=>\offinterlineskip,
>          \v!reset=>\setfontparameters,% just \setstrut, test first
>       
> \s!unknown=>\assignvalue{#1}\regelwit{1.00}{1.25}{1.50}%
>                    \spacing\regelwit]}

> now, (apart from \regelwit being dutch), this value is used nowhere
> else, so this setting will not be seen afterwards

> in this respect it's not a bug but just a
> characteristics; however, it 
> would make sense to let it carry over, so ...

> i have to think about it

It setupinterlinespace does nothing, why is it present at
all? Can we get this fixed by the end of the week? It would
be nice if I could use it in my thesis.

Maybe also allow some numerical factor which would be a
percentage of the amount ConTeXt would choose by default? So
that

\setupinterlinespace[fraction=1] (default)
fraction = .5 (half *bleah*)
fraction = 1.6 (would give what is usually intended as
"doublespace"

etc.

-- 
Giuseppe "Oblomov" Bilotta

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

* Re: interline space?
  2005-11-24 21:18           ` Re[2]: " Giuseppe Bilotta
@ 2005-11-24 21:22             ` Hans Hagen
  0 siblings, 0 replies; 8+ messages in thread
From: Hans Hagen @ 2005-11-24 21:22 UTC (permalink / raw)


Giuseppe Bilotta wrote:

>Thursday, November 24, 2005 Hans Hagen wrote:
>
>  
>
>>\def\setuprelativeinterlinespace[#1]%
>>  {\processallactionsinset % \regelwit = dummy !
>>     [#1]
>>     [      \v!on=>\oninterlineskip,
>>           \v!off=>\offinterlineskip,
>>         \v!reset=>\setfontparameters,% just \setstrut, test first
>>      
>>\s!unknown=>\assignvalue{#1}\regelwit{1.00}{1.25}{1.50}%
>>                   \spacing\regelwit]}
>>    
>>
>
>  
>
>>now, (apart from \regelwit being dutch), this value is used nowhere
>>else, so this setting will not be seen afterwards
>>    
>>
>
>  
>
>>in this respect it's not a bug but just a
>>characteristics; however, it 
>>would make sense to let it carry over, so ...
>>    
>>
>
>  
>
>>i have to think about it
>>    
>>
>
>It setupinterlinespace does nothing, why is it present at
>all? Can we get this fixed by the end of the week? It would
>be nice if I could use it in my thesis.
>
>  
>
well, it's originally meant for local usage (and then it comes after a 
bodyfont switch)

what to think of the following 'feature':

\unprotect

\let\currentrelativeinterlinespace\empty

\def\setuprelativeinterlinespace[#1]%
  {\processallactionsinset
     [#1]
     [      \v!on=>\oninterlineskip,
           \v!off=>\offinterlineskip,
         \v!reset=>\let\currentrelativeinterlinespace\empty
                   \let\synchronizerelativeinterlinespace\relax
                   \setfontparameters,
          
\v!auto=>\let\synchronizerelativeinterlinespace\dosynchronizerelativeinterlinespace,
       
\s!unknown=>\assignvalue\commalistelement\currentrelativeinterlinespace{1.00}{1.25}{1.50}%
                   \spacing\currentrelativeinterlinespace]}

\def\dosynchronizerelativeinterlinespace
  {\ifx\currentrelativeinterlinespace\empty\else
     \spacing\currentrelativeinterlinespace
   \fi}

\let\synchronizerelativeinterlinespace\relax

\appendtoks \synchronizerelativeinterlinespace \to \everybodyfont

\protect

so, auto let it adapt to fotn switches:

\setupinterlinespace[auto,big]
\switchtobodyfont[11pt]

\starttext
\dorecurse{10}{\input knuth}
\stoptext


>Maybe also allow some numerical factor which would be a
>percentage of the amount ConTeXt would choose by default? So
>that
>
>\setupinterlinespace[fraction=1] (default)
>fraction = .5 (half *bleah*)
>fraction = 1.6 (would give what is usually intended as
>"doublespace"
>  
>
this also works:

\setupinterlinespace[1.75]



Hans

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

end of thread, other threads:[~2005-11-24 21:22 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-11-23  8:55 interline space? Giuseppe Bilotta
2005-11-23  9:11 ` Charles Doherty
2005-11-23  9:28   ` Hans Hagen
2005-11-24 19:55     ` Re[2]: " Giuseppe Bilotta
2005-11-24 20:07       ` Taco Hoekwater
2005-11-24 21:10         ` Hans Hagen
2005-11-24 21:18           ` Re[2]: " Giuseppe Bilotta
2005-11-24 21:22             ` Hans Hagen

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