From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/55987 Path: news.gmane.org!not-for-mail From: Peter =?utf-8?Q?M=C3=BCnster?= Newsgroups: gmane.comp.tex.context Subject: Re: simple usage of \hpos Date: Sun, 7 Feb 2010 13:22:29 +0100 Message-ID: <20100207122229.GA6516@gaston.couberia.bzh> References: <20100206221737.GA697@gaston.couberia.bzh> <4B6E7D0C.7030507@googlemail.com> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1265545363 31170 80.91.229.12 (7 Feb 2010 12:22:43 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 7 Feb 2010 12:22:43 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Sun Feb 07 13:22:40 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 1Ne69w-0004Te-Ix for gctc-ntg-context-518@m.gmane.org; Sun, 07 Feb 2010 13:22:40 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 65728C9C97; Sun, 7 Feb 2010 13:24:06 +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 rq5xvY18S29t; Sun, 7 Feb 2010 13:24:03 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id E750EC9C8E; Sun, 7 Feb 2010 13:24:02 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 84D0EC9C8E for ; Sun, 7 Feb 2010 13:24:01 +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 6XQ8LXdI+awS for ; Sun, 7 Feb 2010 13:23:59 +0100 (CET) Original-Received: from smtp21.orange.fr (smtp21.orange.fr [80.12.242.46]) by balder.ntg.nl (Postfix) with ESMTP id 5AD1AC9C6D for ; Sun, 7 Feb 2010 13:23:59 +0100 (CET) Original-Received: from me-wanadoo.net (localhost [127.0.0.1]) by mwinf2104.orange.fr (SMTP Server) with ESMTP id EA6E32000098 for ; Sun, 7 Feb 2010 13:22:31 +0100 (CET) Original-Received: from me-wanadoo.net (localhost [127.0.0.1]) by mwinf2104.orange.fr (SMTP Server) with ESMTP id DD10520002BA for ; Sun, 7 Feb 2010 13:22:31 +0100 (CET) Original-Received: from gaston.couberia.bzh (ARennes-551-1-52-188.w92-135.abo.wanadoo.fr [92.135.123.188]) by mwinf2104.orange.fr (SMTP Server) with ESMTP id ACD3A2000098 for ; Sun, 7 Feb 2010 13:22:31 +0100 (CET) X-ME-UUID: 20100207122231708.ACD3A2000098@mwinf2104.orange.fr Original-Received: by gaston.couberia.bzh (Postfix, from userid 1000) id D47E030540; Sun, 7 Feb 2010 13:22:29 +0100 (CET) Mail-Followup-To: mailing list for ConTeXt users Content-Disposition: inline In-Reply-To: <4B6E7D0C.7030507@googlemail.com> User-Agent: Mutt/1.5.17 (2007-11-01) 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:55987 Archived-At: On Sun, Feb 07 2010, Wolfgang Schuster wrote: > \newcounter\BackgroundPictures > > \definelayer[BackgroundPicture][width=\paperwidth,height=\paperheight] > > \def\FixedPicture > {\dodoubleempty\doFixedPicture} > > \def\doFixedPicture[#1][#2]% > {\doglobal\increment\BackgroundPictures > \xypos{fixedpicture:\BackgroundPictures}% > \doifnotmode{first} > {\setlayer > [BackgroundPicture] > [x=\MPx{fixedpicture:\BackgroundPictures}, > y=\MPy{fixedpicture:\BackgroundPictures}] > {\externalfigure[#1][#2]}}} > > \setupbackgrounds[page][background=BackgroundPicture] > > \starttext > > ... \FixedPicture[...] ... > > \stoptext Hello Wolfgang, No, it does not work. The main idea, to position the layer with x=\MPx{} and y=\MPy{} seems to be broken. Smaller test-file: \definelayer[graphics][position=yes] \setupbackgrounds[page][background=graphics] \starttext I would like to appear a graphics exactly 2cm left from he\xypos{XXX}re. \setlayer[graphics][x=\MPx{XXX}, y=\MPy{XXX}, dx=-2cm]{% \externalfigure[hacker.jpg][width=1cm]} \stoptext Any other ideas? Thanks, Peter -- Contact information: http://pmrb.free.fr/contact/ ___________________________________________________________________________________ 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 ___________________________________________________________________________________