[NTG-context] Interlinespace in headertexts

luigi scarso luigi.scarso at gmail.com
Sat Mar 27 16:01:14 CET 2010


On Sat, Mar 27, 2010 at 3:17 PM, Wolfgang Schuster
<schuster.wolfgang at googlemail.com> wrote:
> Am 26.03.10 23:33, schrieb Willi Egger:
>>
>> Hi,
>>
>> When setting up a headertext in a \vbox there is no interlinespacing.
>> Placing the same text in a \vbox in the text area there is the default
>> interlinespacing.
>> Is there a simple explanation for this behaviour?
>
> When ConTeXt puts a page together (add headers, footers etc. to the text)
> it disables interlinespace between all the elements to avoid unwanted
> vertical
> space between header, text, footer ...
>
> Because header are added when the page is constructed the disabled
> interlinespace
> is active and you get the what you experienced.
>
> Normal text is typeset before the page is build and you get therefore the
> correct
> interlinespace.

\starttext
1·hello\par world

2·hello\par\nointerlineskip world  \par %% reset
3·hello\par world %% like 1

\blank

4·hello\par\nointerlineskip\vskip-1.2\lineheight
···world\par\nointerlineskip\vskip-1.2\lineheight
····tonight

\vskip 3\lineheight

\vbox{\offinterlineskip \input knuth }

\stoptext




-- 
luigi


More information about the ntg-context mailing list