Re: [NTG-context] Interlinespace in layers

2011-12-05 Thread Hans Hagen

On 5-12-2011 01:39, Jan Heinen wrote:

I solved the problem myself:

First I used \showstruts to se struts - and only before and after the
first line there were struts.

Then I added the following argument into the \setlayerframed:
strut=no

\setlayerframed [Kontaktdaten]
[
width=80mm,
height=180mm,
hoffset=50mm,
voffset=50mm,
frame=on,
align=right,
strut=no]
{\FontKlein\setupinterlinespace[8pt] Ich bin Blindtext ...}


I don't understand this problem with the strut but I solved it :-)


just run with \showstruts and you see what happens



-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
 | www.pragma-pod.nl
-
___
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
___


Re: [NTG-context] Interlinespace in layers

2011-12-04 Thread Jan Heinen

I solved the problem myself:

First I used \showstruts to se struts - and only before and 
after the first line there were struts.


Then I added the following argument into the \setlayerframed:
   strut=no

\setlayerframed [Kontaktdaten]
  [
width=80mm,
height=180mm,
hoffset=50mm,
voffset=50mm,
frame=on,
align=right,
strut=no]
{\FontKlein\setupinterlinespace[8pt] Ich bin 
Blindtext ...}



I don't understand this problem with the strut but I solved 
it :-)


Regards
Jannis

___
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
___


[NTG-context] Interlinespace in layers

2011-12-04 Thread Jan Heinen

Hello,

I am struggling with interlinespace and layers. With the 
help of this mailinglist I managed to use layers and to 
format the text in the layers. There is only one error I 
can't get rid of:
before and after the first line of my text in a layer there 
ist a bigger space. In all the other lines of the text the 
interlinespace is ok.


You can see the result here:
http://www.imagebanana.com/view/gvv2twwv/paragraphinlayersetupinterlinespace.png

And this is my soucecode:


\usemodule[simplefonts]
\setmainfont[latinmodernsans]
\definefont[FontKlein][Serif  at  8pt]

\definelayer [Kontaktdaten]
  [
x=0mm,
y=0mm,
width=\paperwidth,
height=\paperheight,
state=start
  ]% size is ignored!

\setupbackgrounds [paper]
  [
background=Kontaktdaten,
state=start
  ]%

\starttext
\setlayerframed [Kontaktdaten]
  [
width=80mm,
height=180mm,
hoffset=50mm,
voffset=50mm,
frame=on,
align=right]
{\FontKlein\setupinterlinespace[8pt]Ich bin 
Blindtext. Von Geburt an. Es hat lange gedauert, bis ich 
begriffen habe, was es bedeutet, ein blinder Text zu sein: 
Man macht keinen Sinn. Man wirkt hier und da aus dem 
Zusammenhang gerissen. Oft wird man gar nicht erst gelesen.\par
Aber bin ich deshalb ein schlechter Text? Ich weiss, dass 
ich nie die Chance haben werde, im Stern zu erscheinen.\par
Aber bin ich darum weniger wichtig? Ich bin blind! Aber ich 
bin gerne Text. Und sollten Sie mich jetzt tatsächlich zu 
Ende lesen, dann habe ich etwas geschafft, was den meisten 
"normalen" Texten nicht gelingt.Ich bin Blindtext. Von 
Geburt an. Es hat lange gedauert, bis ich begriffen habe, 
was es bedeutet, ein blinder Text zu sein: Man macht keinen 
Sinn. Man wirkt hier und da aus dem Zusammenhang gerissen. 
Oft wird man gar nicht erst gelesen.\par
Aber bin ich deshalb ein schlechter Text? Ich weiss, dass 
ich nie die Chance haben werde, im Stern zu erscheinen.\par
Aber bin ich darum weniger wichtig? Ich bin blind! Aber ich 
bin gerne Text. Und sollten Sie mich jetzt tatsächlich zu 
Ende lesen, dann habe ich etwas geschafft,

was den meisten "normalen" Texten nicht gelingt.\par}
~
\page
\stoptext


Though I can't imagine, what's wrong - I hope the solution 
is easy.


Regards
Jannis

___
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
___