From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/55988 Path: news.gmane.org!not-for-mail From: Wolfgang Schuster Newsgroups: gmane.comp.tex.context Subject: Re: simple usage of \hpos Date: Sun, 07 Feb 2010 13:46:47 +0100 Message-ID: <4B6EB637.1020301@googlemail.com> References: <20100206221737.GA697@gaston.couberia.bzh> <4B6E7D0C.7030507@googlemail.com> <20100207122229.GA6516@gaston.couberia.bzh> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1"; Format="flowed" Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1265546835 2491 80.91.229.12 (7 Feb 2010 12:47:15 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 7 Feb 2010 12:47:15 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Sun Feb 07 13:47:12 2010 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 1Ne6Xg-000562-Fu for gctc-ntg-context-518@m.gmane.org; Sun, 07 Feb 2010 13:47:12 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id DEFBAC9C99; Sun, 7 Feb 2010 13:48:38 +0100 (CET) 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 uHcU+xozaoER; Sun, 7 Feb 2010 13:48:33 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 2CCFFC9C94; Sun, 7 Feb 2010 13:48:33 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 215EAC9C94 for ; Sun, 7 Feb 2010 13:48:32 +0100 (CET) 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 9EwBD9ZwLBky for ; Sun, 7 Feb 2010 13:48:17 +0100 (CET) Original-Received: from mail-bw0-f228.google.com (mail-bw0-f228.google.com [209.85.218.228]) by balder.ntg.nl (Postfix) with ESMTP id DA8CFC9C8E for ; Sun, 7 Feb 2010 13:48:17 +0100 (CET) Original-Received: by bwz28 with SMTP id 28so2933762bwz.14 for ; Sun, 07 Feb 2010 04:46:50 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from :user-agent:mime-version:to:subject:references:in-reply-to :content-type:content-transfer-encoding; bh=vVNQ5mHYx66kOwvV2moImJ9FVoAPMri8SrISbVYJFV8=; b=fHnvWK3FtuAQ2zS5dPu/LjSWPtmr1crEqyofHBrGgF+1wk1TrnWGUr44Acf8fXxPeh DdKvGuQhB8N15jhq0k9lb/n39z/Az4wtPwun+wz78yFHos49CxS6paNK02zThY1hYO2a Az1oI3RGgV/tyJmKEexaElCZzclwfXUlsSywc= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:content-type:content-transfer-encoding; b=JTtU4Y+tQ1FXx9OcVZoSg2yQSEAdIQHwGfK6TYhtB4R27rn/Clp3g9TP4Br1H5kQgL 006VLAc4iGktdsB2CURdk/p6cAuSYK4lLfjVK8NlJxd4wTwA9S0PyyszvwdIyW/RtPh2 yWO5UyNzG46e+y8vLqhCBnOlNjNPAFYTmafDw= Original-Received: by 10.204.145.23 with SMTP id b23mr439477bkv.17.1265546810577; Sun, 07 Feb 2010 04:46:50 -0800 (PST) Original-Received: from ?192.168.2.23? (p5B29709B.dip.t-dialin.net [91.41.112.155]) by mx.google.com with ESMTPS id 13sm1443340bwz.10.2010.02.07.04.46.49 (version=TLSv1/SSLv3 cipher=RC4-MD5); Sun, 07 Feb 2010 04:46:49 -0800 (PST) User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; de; rv:1.9.1.7) Gecko/20100111 Thunderbird/3.0.1 In-Reply-To: <20100207122229.GA6516@gaston.couberia.bzh> 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:55988 Archived-At: Am 07.02.10 13:22, schrieb Peter M=FCnster: > The main idea, to position the layer with x=3D\MPx{} and y=3D\MPy{} seems= to be broken. > > Smaller test-file: > > \definelayer[graphics][position=3Dyes] > \setupbackgrounds[page][background=3Dgraphics] > \starttext > I would like to appear a graphics exactly 2cm left from he\xypos{XXX}re. > > \setlayer[graphics][x=3D\MPx{XXX}, y=3D\MPy{XXX}, dx=3D-2cm]{% > \externalfigure[hacker.jpg][width=3D1cm]} > \stoptext > > Any other ideas? Remove the 'position=3Dyes' setup and correct the coordinates, layers use = the top left corner as origin but positions are measures from the left = bottom corner. \definelayer[graphics] \setupbackgrounds[page][background=3Dgraphics] \starttext I would like to appear a graphics exactly 2cm left from he\xypos{XXX}re. \setlayer [graphics] [x=3D\the\dimexpr\MPx{XXX}-2cm\relax, y=3D\the\dimexpr\paperheight-\MPy{XXX}-\strutht\relax] {\externalfigure[hacker.jpg][width=3D1cm]} \stoptext Wolfgang ___________________________________________________________________________= ________ 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 ___________________________________________________________________________= ________