From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/71763 Path: news.gmane.org!not-for-mail From: Marco Newsgroups: gmane.comp.tex.context Subject: Re: nice friends-book with ConText - quite ready Date: Fri, 14 Oct 2011 20:28:07 +0200 Message-ID: <20111014202807.54c098bf@glyph> References: <4E986D9F.4020503@gmx.de> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="MP_/b4lsVOivlyUIvE+T3WYIU3j" X-Trace: dough.gmane.org 1318616929 20934 80.91.229.12 (14 Oct 2011 18:28:49 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 14 Oct 2011 18:28:49 +0000 (UTC) To: ntg-context@ntg.nl Original-X-From: ntg-context-bounces@ntg.nl Fri Oct 14 20:28:45 2011 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([195.12.62.10]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1REmUu-0001md-Eh for gctc-ntg-context-518@m.gmane.org; Fri, 14 Oct 2011 20:28:44 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 042B9CB00A; Fri, 14 Oct 2011 20:28:44 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 6c4TvX1aNej5; Fri, 14 Oct 2011 20:28:41 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 4E72BCB002; Fri, 14 Oct 2011 20:28:41 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 39C38CB002 for ; Fri, 14 Oct 2011 20:28:40 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 3M0rzg4N3JGL for ; Fri, 14 Oct 2011 20:28:26 +0200 (CEST) Original-Received: from filter2-ams.mf.surf.net (filter2-ams.mf.surf.net [192.87.102.70]) by balder.ntg.nl (Postfix) with ESMTP id 035D6CAFFB for ; Fri, 14 Oct 2011 20:28:26 +0200 (CEST) Original-Received: from lo.gmane.org (lo.gmane.org [80.91.229.12]) by filter2-ams.mf.surf.net (8.14.3/8.14.3/Debian-5+lenny1) with ESMTP id p9EISOKT016320 for ; Fri, 14 Oct 2011 20:28:25 +0200 Original-Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1REmUa-0001aV-BR for ntg-context@ntg.nl; Fri, 14 Oct 2011 20:28:24 +0200 Original-Received: from 83.68.239.197 ([83.68.239.197]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 14 Oct 2011 20:28:24 +0200 Original-Received: from netuse by 83.68.239.197 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 14 Oct 2011 20:28:24 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 141 Original-X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: 83.68.239.197 X-Newsreader: Claws Mail 3.7.6 (GTK+ 2.22.0; x86_64-pc-linux-gnu) X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=80.91.229.12; country=NO; latitude=62.0000; longitude=10.0000; http://maps.google.com/maps?q=62.0000,10.0000&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 0rFIGspn1 - c9d7d9945647 - 20111014 X-Scanned-By: CanIt (www . roaringpenguin . com) on 192.87.102.70 X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.12 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: ntg-context-bounces@ntg.nl Errors-To: ntg-context-bounces@ntg.nl Xref: news.gmane.org gmane.comp.tex.context:71763 Archived-At: --MP_/b4lsVOivlyUIvE+T3WYIU3j Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline On 2011-10-14 Jan Heinen wrote: > And here are my results:=20 > http://www.imagebanana.com/view/8vq30irn/ContextLayers.png >=20 > There are only little things which could be improved: How?? > 1. where comes the frame around the foto from? How can I=20 > switch it off? You introduced one pair on brackets too much. > 2. There is a thin white line between layer A and the=20 > Infobox. How to rid of it? I don't see a white line, neither on the image you provided, nor when I compile it. > 3. How can I get padding into the Infobox? top, botttom,=20 > right and left Maybe there's a cleaner solution, but I misuse the frame itself for that (see example). > And here is my code for everyone who likes the layout of my=20 > friends-book ;-) The layout is a matter of taste, but the code is improvable. Here are some tips: - Don't write everything in one line! Use indentation. If your code is ugly to read, it lowers the change of getting a response. - Make the code compile. At least on my context (not really up-to-date) it throws an error. - There are some images and text files included in the ConTeXt distribution. Check =E2=80=A6texmf-context/tex/context/sample Use them (e.g. =E2=80=9Ccow=E2=80=9D). Regards Marco Patzer --MP_/b4lsVOivlyUIvE+T3WYIU3j Content-Type: text/x-tex Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename=friendbook.tex \definelayer [Kontaktdaten] [ x=20mm, y=30mm, width=65mm, height=30mm, state=start ] \setupbackgrounds [paper] [ %setups=ALayer, % The setup ALayer is never defined 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, leftframe=on, framecolor=green, rulethickness=.5cm, hoffset=-10mm, voffset=100mm, align=right ]{% \startlines Infobox: Peter New York 0171/782801 test@test.de \stoplines} \setlayerframed [Kontaktdaten] [ width=30mm, height=40mm, %frame=\LayoutTest, frame=off, hoffset=-10mm, voffset=60mm, strut=no, %offset=overlay ]{% \externalfigure[cow][width=30mm,height=40mm]} \page \stoptext --MP_/b4lsVOivlyUIvE+T3WYIU3j Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline ___________________________________________________________________________________ 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 ___________________________________________________________________________________ --MP_/b4lsVOivlyUIvE+T3WYIU3j--