ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Jan Heinen <JaHeinen@gmx.de>
To: ntg-context@ntg.nl
Subject: Re: nice friends-book with ConText - quite ready
Date: Fri, 14 Oct 2011 19:13:03 +0200	[thread overview]
Message-ID: <4E986D9F.4020503@gmx.de> (raw)

Hello it was a ConText-night,

and as a newby I learned a lot about ConText :-)

Here is what I wanted to get: 
http://www.imagebanana.com/view/f4o3un2c/Entwurffriends.png

And here are my results: 
http://www.imagebanana.com/view/8vq30irn/ContextLayers.png

There are only little things which could be improved: How??
1. where comes the frame around the foto from? How can I 
switch it off?
2. There is a thin white line between layer A and the 
Infobox. How to rid of it?
3. How can I get padding into the Infobox? top, botttom, 
right and left


And here is my code for everyone who likes the layout of my 
friends-book ;-)


\definelayer[Kontaktdaten][x=20mm,y=30mm,width=65mm,height=30mm,state=start]
\setupbackgrounds[paper][setups=ALayer,background=Kontaktdaten,state=start]

\starttext
\strut

\setlayerframed[Kontaktdaten][background=color,backgroundcolor=lightgreen,width=10mm,height=130mm,frame=off,hoffset=-20mm,voffset=145mm,align=right]{A}
\setlayerframed[Kontaktdaten][background=color,backgroundcolor=darkgreen,width=10mm,height=60mm,frame=off,hoffset=-20mm,voffset=85mm,align=right]{B}
\setlayerframed[Kontaktdaten][background=color,backgroundcolor=lightgreen,width=60mm,height=175mm,frame=off,hoffset=-10mm,voffset=100mm,align=right]%
{Infobox:\crlf
Peter\crlf
New York\crlf
0171/782801\crlf
test@test.de}
\setlayerframed[Kontaktdaten][width=30mm,height=40mm,frame=\LayoutTest,hoffset=-10mm,voffset=60mm][strut=no,offset=overlay]%
  {\externalfigure[niceImage][width=30mm,height=40mm]}

\page
\stoptext



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-10-14 17:13 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-10-14 17:13 Jan Heinen [this message]
2011-10-14 18:28 ` Marco

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=4E986D9F.4020503@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).