From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/82890 Path: news.gmane.org!not-for-mail From: =?iso-8859-2?B?UHJvY2jhemthIEx1a+G5IEluZy4gLSBQb250ZXggcy4gci4gby4=?= Newsgroups: gmane.comp.tex.context Subject: Re: Layers: corner, location Date: Mon, 10 Jun 2013 09:50:48 +0200 Message-ID: References: <51B18B52.9030008@wxs.nl> <51B1D509.5010401@gmx.net> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-2"; Format="flowed"; DelSp="yes" Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1370850679 22980 80.91.229.3 (10 Jun 2013 07:51:19 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 10 Jun 2013 07:51:19 +0000 (UTC) To: "mailing list for ConTeXt users" Original-X-From: ntg-context-bounces@ntg.nl Mon Jun 10 09:51:20 2013 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([195.12.62.10]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Ulwsp-0008V4-E6 for gctc-ntg-context-518@m.gmane.org; Mon, 10 Jun 2013 09:51:19 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id B9261101F5; Mon, 10 Jun 2013 09:51:18 +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 2UvsCZsqPBiD; Mon, 10 Jun 2013 09:51:14 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id 88C42101EC; Mon, 10 Jun 2013 09:51:14 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 64396101EC for ; Mon, 10 Jun 2013 09:51:13 +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 mPsEzm5hdAJk for ; Mon, 10 Jun 2013 09:51:08 +0200 (CEST) Original-Received: from filter5-til.mf.surf.net (filter5-til.mf.surf.net [194.171.167.221]) by balder.ntg.nl (Postfix) with ESMTP id 25385101E0 for ; Mon, 10 Jun 2013 09:50:58 +0200 (CEST) Original-Received: from mail.pontex.cz (mail.pontex.cz [89.233.168.98]) by filter5-til.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id r5A7orde023181 for ; Mon, 10 Jun 2013 09:50:56 +0200 Original-Received: from localhost ([127.0.0.1]) by mail.pontex.cz (Kerio MailServer 6.6.2) for ntg-context@ntg.nl; Mon, 10 Jun 2013 09:50:51 +0200 In-Reply-To: <51B1D509.5010401@gmx.net> User-Agent: Opera Mail/12.15 (Win32) X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=89.233.168.98; country=CZ; latitude=49.7500; longitude=15.5000; http://maps.google.com/maps?q=49.7500,15.5000&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 0WJKvOR6b - 602b7c440f05 - 20130610 X-Scanned-By: CanIt (www . roaringpenguin . com) on 194.171.167.221 X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.14 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: ntg-context-bounces@ntg.nl Original-Sender: ntg-context-bounces@ntg.nl Xref: news.gmane.org gmane.comp.tex.context:82890 Archived-At: Hello, thanks Peter for the explanation. On Fri, 07 Jun 2013 14:41:45 +0200, Peter Rolf wrote: > The layer is divided into a 2x2 matrix of squares, where 'x' is the > center. This gets you a total of 3x3=3D9 different corners. > > o---o---o > | | | > o---x---o > | | | > o---o---o > > Now you choose one 'corner' (the reference point) for the placement. The > placement is done in relation to this point. The chosen 'corner' c is > our new 'center point' (only for placement) now. > > With 'location' you define, where (in relation to 'corner') the content > is placed. Again you have nine different corners to choose from. > > An example to make this clear. > > 'corner=3D{top,right}, location=3D{bottom,right}' will place content in t= he > area L (outside the original layer). Think about the 'corner' c as a > magnetic grid point, where the content snaps to. The 'location' l > defines, from which direction we approach the point c. > > x =3D layer center point > c =3D corner 'top,right', d =3D location 'bottom right', L =3D location (= area) > > o---o---o > | | | > ----o---c---o > | | | L | > ----x---o---d > | | | > --------- > > > > I hope I haven't mixed things up. Feel free to correct this and to > wikify the final version. > I added some info to wiki: http://wiki.contextgarden.net/Layers#Understandi= ng_.22location.22_and_.22corner.22 Best regards, Lukas > Peter -- = Ing. Luk=E1=B9 Proch=E1zka [mailto:LPr@pontex.cz] Pontex s. r. o. [mailto:pontex@pontex.cz] [http://www.pontex.cz] Bezov=E1 1658 147 14 Praha 4 Tel: +420 244 062 238 Fax: +420 244 461 038 ___________________________________________________________________________= ________ If your question is of interest to others as well, please add an entry to t= he Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-cont= ext webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________= ________