ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Jan Heinen <JaHeinen@gmx.de>
To: ntg-context@ntg.nl
Subject: Interlinespace in layers
Date: Mon, 05 Dec 2011 00:42:02 +0100	[thread overview]
Message-ID: <4EDC054A.1060000@gmx.de> (raw)

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
___________________________________________________________________________________

             reply	other threads:[~2011-12-04 23:42 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-12-04 23:42 Jan Heinen [this message]
2011-12-05  0:39 Jan Heinen
2011-12-05  9:36 ` Hans Hagen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4EDC054A.1060000@gmx.de \
    --to=jaheinen@gmx.de \
    --cc=ntg-context@ntg.nl \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).