From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/55982 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 09:42:52 +0100 Message-ID: <4B6E7D0C.7030507@googlemail.com> References: <20100206221737.GA697@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 1265532198 32070 80.91.229.12 (7 Feb 2010 08:43:18 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 7 Feb 2010 08:43:18 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Sun Feb 07 09:43:15 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 1Ne2jY-0006E7-OI for gctc-ntg-context-518@m.gmane.org; Sun, 07 Feb 2010 09:43:12 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id D57D5C9C7C; Sun, 7 Feb 2010 09:44:37 +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 YvPZtmaPwW9i; Sun, 7 Feb 2010 09:44:30 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id B8118C9C04; Sun, 7 Feb 2010 09:44:30 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 5C55AC9C04 for ; Sun, 7 Feb 2010 09:44:29 +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 sWLU87OoplaX for ; Sun, 7 Feb 2010 09:44:24 +0100 (CET) Original-Received: from mail-fx0-f211.google.com (mail-fx0-f211.google.com [209.85.220.211]) by balder.ntg.nl (Postfix) with ESMTP id F02D0C9BCF for ; Sun, 7 Feb 2010 09:44:23 +0100 (CET) Original-Received: by fxm3 with SMTP id 3so5940984fxm.19 for ; Sun, 07 Feb 2010 00:42:57 -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=s7SKjVKJfhyIKbs41dYagIfjUdWQ46NyfKpZ4qVHFSQ=; b=W0FhnTz1kvxRa/X5arIAFDDAl8H2wHHteSdQhXNPQrmE7zYFwN7O6VSyYsLf+tgoen 5bhFeVxu15Pd9wn6xJudqLARKSk3TSqlPSMFGVrH2OqsZ0f0yO6w2K6UgSH0EYVq5RS7 PJrPpThtWHaPv5exFINkEvn+x1qbh5m+10rCI= 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=BzvC4TrLsTSSyrZtGaqvH3OPZ7AV2ILgGw8Aj3f/UTm6o65XRPHVCQPO4QeJC1/5CK Pb+JdEjJFaJb0Mj68bEuBQs1UlVdzG33kW0XYI6fW0Bfh4U9+URsBzQL9gyGOe5OPHW4 9qDHFAjFfX0TgTN5iRYi7bk3MjnGivEfzlDx8= Original-Received: by 10.87.73.15 with SMTP id a15mr4132543fgl.50.1265532175470; Sun, 07 Feb 2010 00:42:55 -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 d4sm2343695fga.23.2010.02.07.00.42.53 (version=TLSv1/SSLv3 cipher=RC4-MD5); Sun, 07 Feb 2010 00:42:53 -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: <20100206221737.GA697@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:55982 Archived-At: Am 06.02.10 23:17, schrieb Peter M=FCnster: > Hello, > > How can I place an element as background at a previously defined position? > > Here a test-file to show what I'm looking for: > > \definelayer[graphics][position=3Dyes] > \setupbackgrounds[page][background=3Dgraphics] > \starttext > Here is some text. I would like to appear a graphics exactly > behind \hpos{XXX}{HERE}. How can I do this, without measuring by hand the > x- and y-offsets, and perhaps also without using metapost? untested: \newcounter\BackgroundPictures \definelayer[BackgroundPicture][width=3D\paperwidth,height=3D\paperheight] \def\FixedPicture {\dodoubleempty\doFixedPicture} \def\doFixedPicture[#1][#2]% {\doglobal\increment\BackgroundPictures \xypos{fixedpicture:\BackgroundPictures}% \doifnotmode{first} {\setlayer [BackgroundPicture] [x=3D\MPx{fixedpicture:\BackgroundPictures}, y=3D\MPy{fixedpicture:\BackgroundPictures}] {\externalfigure[#1][#2]}}} \setupbackgrounds[page][background=3DBackgroundPicture] \starttext ... \FixedPicture[...] ... \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 ___________________________________________________________________________= ________