From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/31365 Path: news.gmane.org!not-for-mail From: andrea valle Newsgroups: gmane.comp.tex.context Subject: Re: absolute positioning of figures Date: Fri, 13 Oct 2006 16:33:28 +0200 Message-ID: References: <2a53c5b3dfbcec8a147af1a94c7a3989@di.unito.it> <452EBB19.2070507@wxs.nl> <14d17b2f52b9fab4dfe14728d84889dc@di.unito.it> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 (Apple Message framework v623) Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1160750086 29458 80.91.229.2 (13 Oct 2006 14:34:46 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 13 Oct 2006 14:34:46 +0000 (UTC) Original-X-From: ntg-context-bounces@ntg.nl Fri Oct 13 16:34:39 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 1GYO7J-00040l-89 for gctc-ntg-context-518@m.gmane.org; Fri, 13 Oct 2006 16:34:29 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 878E51FE33; Fri, 13 Oct 2006 16:34:26 +0200 (CEST) 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 17799-08; Fri, 13 Oct 2006 16:34:14 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 089B91FE3F; Fri, 13 Oct 2006 16:34:14 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 924711FE3F for ; Fri, 13 Oct 2006 16:34:10 +0200 (CEST) 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 17798-04-4 for ; Fri, 13 Oct 2006 16:33:57 +0200 (CEST) Original-Received: from pianeta.di.unito.it (pianeta.di.unito.it [130.192.156.1]) by ronja.ntg.nl (Postfix) with SMTP id 148E61FE33 for ; Fri, 13 Oct 2006 16:33:55 +0200 (CEST) Original-Received: from [83.184.26.176] (d83-184-26-176.cust.tele2.it [83.184.26.176]) by pianeta.di.unito.it (INFO-DIP) with ESMTP id k9DEXUB1027737 (version=TLSv1/SSLv3 cipher=RC4-SHA bits=128 verify=NO userCertificateDN= AuthenticatedUser=valle ) for ; Fri, 13 Oct 2006 16:33:35 +0200 (MEST) In-Reply-To: <14d17b2f52b9fab4dfe14728d84889dc@di.unito.it> Original-To: mailing list for ConTeXt users X-Mailer: Apple Mail (2.623) X-dipinfo-MailScanner-Information: Please contact Department of Computer Science technical staff for more information X-AntiVirus: Scanned for viruses by VirusFinder @2001-tecnici@di.unito.it - Email Clean X-SpamCheck: not spam (whitelisted), SpamAssassin (score=-100, required 4, AUTHENTICATEDUSER -100.00) X-MailScanner-From: valle@di.unito.it X-Virus-Scanned: amavisd-new at ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.7 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:31365 Archived-At: > On 13 Oct 2006, at 00:00, Hans Hagen wrote: >>> > >> indeed, layers put in overlays (there can be many layers on top of >> each >> others >> > > Now, I tried with overlays and layers. That's fine. In any case, in a second approach I simply used \setlayer to fill repeatedly the same layer. The result seems to be the same. What's the difference? Is it safe to use the second approach? Then: changing layer dimension in \definelayer, I cannot see any differences in the output. Can anyone explain what it should happen? Thanks Best -a- Two examples follow: \setupcolors[state=start] % first approach \definelayer [layer1][] \definelayer [layer2][] \definelayer [layer3][] \setlayer [layer1] [x=.5\paperwidth, y=.5\paperheight] {\externalfigure[layTest][]} \setlayer [layer2] [x=.35\paperwidth, y=.45\paperheight] {\externalfigure[layTest][]} \setlayer [layer3] [x=.5\paperwidth, y=.5\paperheight] {\color[darkred]{ \bf This is a text}} \defineoverlay[overlay1][{\placelayer[layer1]}] \defineoverlay[overlay2][{\placelayer[layer2]}] \defineoverlay[overlay3][{\placelayer[layer3]}] % end of first % second approach \definelayer [layer1b][] % just one \setlayer [layer1b] [x=.5\paperwidth, y=.5\paperheight] {\externalfigure[layTest][]} \setlayer [layer1b] [x=.35\paperwidth, y=.45\paperheight] {\externalfigure[layTest][]} \setlayer [layer1b] [x=.5\paperwidth, y=.5\paperheight] {\color[darkred]{ \bf This is a text}} % end \starttext % using first \framed [height=\textheight,width=\textwidth,background={overlay1, overlay2, overlay3},align=right, frame=off] { % write if you need to } % using second \framed [height=\textheight,width=\textwidth,background=layer1b,align=right, frame=off] { % write if you need to } \stoptext