ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Interlinespace in headertexts
@ 2010-03-26 22:33 Willi Egger
  2010-03-27  3:38 ` luigi scarso
  2010-03-27 14:17 ` Wolfgang Schuster
  0 siblings, 2 replies; 8+ messages in thread
From: Willi Egger @ 2010-03-26 22:33 UTC (permalink / raw)
  To: NTG-Context ConTeXt users

[-- Attachment #1: Type: text/plain, Size: 337 bytes --]

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?

Using LuaTeX, Version beta-0.50.0-2009122422, ConTeXt  ver:  
2010.03.02 12:34 MKIV

Minimal example attached.

Willli

[-- Attachment #2: test-vbox.pdf --]
[-- Type: application/pdf, Size: 11026 bytes --]

[-- Attachment #3: test-vbox.tex --]
[-- Type: application/octet-stream, Size: 410 bytes --]

% Context file
% Filename: test-vbox.tex
% Willi Egger
% 26-03-2010

\setuppagenumbering[location=]
\setuplayout
	[topspace=2.5cm,
	backspace=1.5cm,
	header=2cm,
	footer=0pt,
	height=middle,
	width=middle]
\mainlanguage[nl]

\showframe
\def\Header{%
	\vbox{%
	Willi\par
	Maasstraat 2\par
	5836 BB Sambeek}}
	
\setupheadertexts[\Header]
	
\starttext
\vbox{%
Willi\par
Maasstraat 2\par
5836 BB Sambeek}
\stoptext

[-- Attachment #4: Type: text/plain, Size: 486 bytes --]

___________________________________________________________________________________
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

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

* Re: Interlinespace in headertexts
  2010-03-26 22:33 Interlinespace in headertexts Willi Egger
@ 2010-03-27  3:38 ` luigi scarso
  2010-03-28 11:33   ` Willi Egger
  2010-03-27 14:17 ` Wolfgang Schuster
  1 sibling, 1 reply; 8+ messages in thread
From: luigi scarso @ 2010-03-27  3:38 UTC (permalink / raw)
  To: mailing list for ConTeXt users

On Fri, Mar 26, 2010 at 11:33 PM, Willi Egger <w.egger@boede.nl> wrote:
> 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?
No I haven't, but when I find similar problems I reset interlienspace;
try
\def\Header{\setupinterlinespace%
        \vbox{%
        Willi\par
        Maasstraat 2\par
        5836 BB Sambeek}}

-- 
luigi
___________________________________________________________________________________
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


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

* Re: Interlinespace in headertexts
  2010-03-26 22:33 Interlinespace in headertexts Willi Egger
  2010-03-27  3:38 ` luigi scarso
@ 2010-03-27 14:17 ` Wolfgang Schuster
  2010-03-27 15:01   ` luigi scarso
  2010-03-28 11:36   ` Willi Egger
  1 sibling, 2 replies; 8+ messages in thread
From: Wolfgang Schuster @ 2010-03-27 14:17 UTC (permalink / raw)
  To: mailing list for ConTeXt users

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.

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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


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

* Re: Interlinespace in headertexts
  2010-03-27 14:17 ` Wolfgang Schuster
@ 2010-03-27 15:01   ` luigi scarso
  2010-03-27 15:15     ` Wolfgang Schuster
  2010-03-28 11:36   ` Willi Egger
  1 sibling, 1 reply; 8+ messages in thread
From: luigi scarso @ 2010-03-27 15:01 UTC (permalink / raw)
  To: mailing list for ConTeXt users

On Sat, Mar 27, 2010 at 3:17 PM, Wolfgang Schuster
<schuster.wolfgang@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
___________________________________________________________________________________
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

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

* Re: Interlinespace in headertexts
  2010-03-27 15:01   ` luigi scarso
@ 2010-03-27 15:15     ` Wolfgang Schuster
  2010-03-27 15:21       ` luigi scarso
  0 siblings, 1 reply; 8+ messages in thread
From: Wolfgang Schuster @ 2010-03-27 15:15 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Am 27.03.10 16:01, schrieb luigi scarso:
> \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
>    
???

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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

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

* Re: Interlinespace in headertexts
  2010-03-27 15:15     ` Wolfgang Schuster
@ 2010-03-27 15:21       ` luigi scarso
  0 siblings, 0 replies; 8+ messages in thread
From: luigi scarso @ 2010-03-27 15:21 UTC (permalink / raw)
  To: mailing list for ConTeXt users

On Sat, Mar 27, 2010 at 4:15 PM, Wolfgang Schuster
<schuster.wolfgang@googlemail.com> wrote:
>
> ???
TeX in \ConTeXt ?
-- 
luigi
___________________________________________________________________________________
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


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

* Re: Interlinespace in headertexts
  2010-03-27  3:38 ` luigi scarso
@ 2010-03-28 11:33   ` Willi Egger
  0 siblings, 0 replies; 8+ messages in thread
From: Willi Egger @ 2010-03-28 11:33 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Thanks Luigi, problema risolto!

Willi
On 27 Mar 2010, at 04:38, luigi scarso wrote:

> \setupinterlinespace%

___________________________________________________________________________________
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


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

* Re: Interlinespace in headertexts
  2010-03-27 14:17 ` Wolfgang Schuster
  2010-03-27 15:01   ` luigi scarso
@ 2010-03-28 11:36   ` Willi Egger
  1 sibling, 0 replies; 8+ messages in thread
From: Willi Egger @ 2010-03-28 11:36 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Thanks Wolfgang, this explains indeed the behaviour and as mentioned  
by Luigi one needs to use \setupinterlinespace to reinvoke the  
interlinespaceing...

Willi

On 27 Mar 2010, at 15:17, Wolfgang Schuster 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.
>
> 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://tex.aanhet.net
> archive  : http://foundry.supelec.fr/projects/contextrev/
> 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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


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

end of thread, other threads:[~2010-03-28 11:36 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-03-26 22:33 Interlinespace in headertexts Willi Egger
2010-03-27  3:38 ` luigi scarso
2010-03-28 11:33   ` Willi Egger
2010-03-27 14:17 ` Wolfgang Schuster
2010-03-27 15:01   ` luigi scarso
2010-03-27 15:15     ` Wolfgang Schuster
2010-03-27 15:21       ` luigi scarso
2010-03-28 11:36   ` Willi Egger

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