[NTG-context] interline space?

Hans Hagen pragma at wxs.nl
Thu Nov 24 22:10:54 CET 2005


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)


More information about the ntg-context mailing list