From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/55230 Path: news.gmane.org!not-for-mail From: Wolfgang Schuster Newsgroups: gmane.comp.tex.context Subject: Re: Some question regarding Layers Date: Thu, 17 Dec 2009 14:21:08 +0100 Message-ID: References: Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 (Apple Message framework v1077) Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1261056103 1660 80.91.229.12 (17 Dec 2009 13:21:43 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 17 Dec 2009 13:21:43 +0000 (UTC) To: erik.margraf@gmail.com, mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Thu Dec 17 14:21:33 2009 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.50) id 1NLGIP-00035H-CV for gctc-ntg-context-518@m.gmane.org; Thu, 17 Dec 2009 14:21:33 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 3654CC9BAC; Thu, 17 Dec 2009 14:21:31 +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 L0bEyI2GjVqp; Thu, 17 Dec 2009 14:21:27 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 34E8DC9B80; Thu, 17 Dec 2009 14:21:27 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 005C3C9B80 for ; Thu, 17 Dec 2009 14:21:25 +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 5RvySVPCq1Rn for ; Thu, 17 Dec 2009 14:21:13 +0100 (CET) Original-Received: from fg-out-1718.google.com (fg-out-1718.google.com [72.14.220.153]) by balder.ntg.nl (Postfix) with ESMTP id 28A3CC9B10 for ; Thu, 17 Dec 2009 14:21:13 +0100 (CET) Original-Received: by fg-out-1718.google.com with SMTP id e21so1111549fga.2 for ; Thu, 17 Dec 2009 05:21:13 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=domainkey-signature:received:received:content-type:mime-version :subject:from:in-reply-to:date:content-transfer-encoding:message-id :references:to:x-mailer; bh=aPITlC6wYle6W3fXUUoVFKRlwn+9Zzcr7+wxB7WpOBo=; b=X3Z6UCEwzlBesPL650/pq7/q8DCo3eIwK44dKkkJhyGPoefwdmKdbsAQEGfK7NBgiz ngX9guUoju+nbPCdRkSQCEGiRe/2zsWHFyHiw82Ax69NcS7euS9GRpFlv3ZyuD53AzHV rvQ/byfOoLMUz8vrPSwj2l2ANwdzOr0tmNaII= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma; h=content-type:mime-version:subject:from:in-reply-to:date :content-transfer-encoding:message-id:references:to:x-mailer; b=atZVpBVYrihtCX30g09bLlr3XMDNWJYhrKzfp0jsluISyIZGp7OHR6wRGWAkrk3AIJ 9JCx89GnuMbq7EcQ50DIwfT/QGHmbDu2cQtaJjMp6vjf357s1OK1PmjNkaVBLgoBVpz1 x28MJWBG9HS75Hpm0U4Ke8bifTRPIrdPLa4X0= Original-Received: by 10.87.76.8 with SMTP id d8mr3155565fgl.66.1261056072875; Thu, 17 Dec 2009 05:21:12 -0800 (PST) Original-Received: from ?192.168.2.23? (p5B29437B.dip.t-dialin.net [91.41.67.123]) by mx.google.com with ESMTPS id e20sm5130758fga.12.2009.12.17.05.21.10 (version=TLSv1/SSLv3 cipher=RC4-MD5); Thu, 17 Dec 2009 05:21:11 -0800 (PST) In-Reply-To: X-Mailer: Apple Mail (2.1077) 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:55230 Archived-At: Am 17.12.2009 um 14:05 schrieb Erik Margraf: > Hi all, > i have two questions regarding the use of layers. > > -- Is there an easy way to position a layer in the middle of the page. > My intent is to position some kind of graphic/picture there. > I usually try to wrap the picture in a "hbox to \paperwidth {\hfil \externalfigure{} \hfil} and then > wrapping the hbox in a vbox > -- Is there a better way to achieve this? > -- How to do that with layers? > > -- Is it possible to define and position layers in one Macro. I have something like the following > in mind (untested): > > \define[1]\MLayer{ > \definelayer[#1] > \setlayer[#1][state=start]{\externalfigure[#1]} > } > My experience so far is, that it's necessary for a layer to appear that it is listed in "pagebackgrounds" > ist this true? With this it seems, that a macro like that above is impossible, true? \define[1]\MLayer {\definelayer[#1]% \expandparameters\setupbackgrounds[page][background={\currentvalue,#1}]% \setlayerframed[#1][width=\paperwidth,height=\paperheight,frame=off,align={middle,middle}]{\externalfigure[#1]}} Wolfgang ___________________________________________________________________________________ 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 ___________________________________________________________________________________