From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/25214 Path: news.gmane.org!not-for-mail From: Hans Hagen Newsgroups: gmane.comp.tex.context Subject: Re: layer placement question Date: Sun, 15 Jan 2006 19:36:54 +0100 Message-ID: <43CA9646.50303@wxs.nl> References: <09461146-F389-465D-AB0A-40C0E63AA81A@fiee.net> <0DD24521-8CB0-46A2-B7C3-540721F7A5F1@fiee.net> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1137350221 16247 80.91.229.2 (15 Jan 2006 18:37:01 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 15 Jan 2006 18:37:01 +0000 (UTC) Original-X-From: ntg-context-bounces@ntg.nl Sun Jan 15 19:36:58 2006 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from ronja.vet.uu.nl ([131.211.172.88] helo=ronja.ntg.nl) by ciao.gmane.org with esmtp (Exim 4.43) id 1EyCkJ-00021g-93 for gctc-ntg-context-518@m.gmane.org; Sun, 15 Jan 2006 19:36:55 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id BC6DC12882; Sun, 15 Jan 2006 19:36:54 +0100 (CET) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 09293-04-3; Sun, 15 Jan 2006 19:36:52 +0100 (CET) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 69A801286A; Sun, 15 Jan 2006 19:36:52 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id CCE311286A for ; Sun, 15 Jan 2006 19:36:51 +0100 (CET) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 09293-04-2 for ; Sun, 15 Jan 2006 19:36:51 +0100 (CET) Original-Received: from mail.pragma-ade.net (dsl-212-84-128-085.solcon.nl [212.84.128.85]) by ronja.ntg.nl (Postfix) with SMTP id E405F12869 for ; Sun, 15 Jan 2006 19:36:50 +0100 (CET) Original-Received: from [10.100.1.102] (unverified [10.100.1.102]) by controller-1 (SurgeMail 3.5b3) with ESMTP id 723 for ; Sun, 15 Jan 2006 13:47:38 +0300 User-Agent: Mozilla Thunderbird 1.0.7 (Windows/20050923) X-Accept-Language: en-us, en Original-To: mailing list for ConTeXt users In-Reply-To: <0DD24521-8CB0-46A2-B7C3-540721F7A5F1@fiee.net> X-Server: High Performance Mail Server - http://surgemail.com r=-274017400 X-Authenticated-User: hagen@controller-1 X-Virus-Scanned: amavisd-new at ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.5 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 X-Virus-Scanned: amavisd-new at ntg.nl Xref: news.gmane.org gmane.comp.tex.context:25214 Archived-At: Henning Hraban Ramm wrote: > Another question, regarding layer placement: > > \def\bleed{3mm} > \setvalue{LogoHeight}{20mm} > \setvalue{LogoWidth}{60mm} > \setvalue{LogoHOffset}{130mm} > > \definelayer[logolayer] > [x=-\bleed, y=-\bleed, > width=\paperwidth, height=\paperheight] > > \setlayerframed[logolayer] > [y=-\bleed, x=\dimexpr(\getvalue{LogoHOffset}+\bleed)] > [height=\dimexpr(\getvalue{LogoHeight}+\bleed), > width=\getvalue{LogoWidth}, > frame=off, offset=0mm, align=low, > background=color, backgroundcolor=red]{my logo} > > I would expect that the x/y coordinates in \setlayer(framed) relate > to the layer's origin (-3, -3) and thus my logo gets placed at (130, > -3). > But in fact it's placed at (133, -3), i.e. x starts at 0 instead of > -3. Why? x and y are unique for each \setlayer, use hoffset/voffset instead Hans