* Re: Interlinespace in layers
@ 2011-12-05 0:39 Jan Heinen
2011-12-05 9:36 ` Hans Hagen
0 siblings, 1 reply; 3+ messages in thread
From: Jan Heinen @ 2011-12-05 0:39 UTC (permalink / raw)
To: ntg-context
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Interlinespace in layers
2011-12-05 0:39 Interlinespace in layers Jan Heinen
@ 2011-12-05 9:36 ` Hans Hagen
0 siblings, 0 replies; 3+ messages in thread
From: Hans Hagen @ 2011-12-05 9:36 UTC (permalink / raw)
To: mailing list for ConTeXt users; +Cc: Jan Heinen
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 3+ messages in thread
* Interlinespace in layers
@ 2011-12-04 23:42 Jan Heinen
0 siblings, 0 replies; 3+ messages in thread
From: Jan Heinen @ 2011-12-04 23:42 UTC (permalink / raw)
To: ntg-context
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2011-12-05 9:36 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-12-05 0:39 Interlinespace in layers Jan Heinen
2011-12-05 9:36 ` Hans Hagen
-- strict thread matches above, loose matches on Subject: below --
2011-12-04 23:42 Jan Heinen
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).