From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/46965 Path: news.gmane.org!not-for-mail From: Cecil Westerhof Newsgroups: gmane.comp.tex.context Subject: Re: Merging background Date: Thu, 22 Jan 2009 11:28:12 +0100 Message-ID: References: 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" Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1232621318 13527 80.91.229.12 (22 Jan 2009 10:48:38 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 22 Jan 2009 10:48:38 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Thu Jan 22 11:49:51 2009 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 lo.gmane.org with esmtp (Exim 4.50) id 1LPx8A-0001a0-Ck for gctc-ntg-context-518@m.gmane.org; Thu, 22 Jan 2009 11:49:50 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id AB5561FE3B; Thu, 22 Jan 2009 11:48:30 +0100 (CET) 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 06518-06-4; Thu, 22 Jan 2009 11:46:59 +0100 (CET) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 0491D1FB5A; Thu, 22 Jan 2009 11:46:59 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id B44671FB4E for ; Thu, 22 Jan 2009 11:46:57 +0100 (CET) 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 11279-02 for ; Thu, 22 Jan 2009 11:46:11 +0100 (CET) Original-Received: from filter1-til.mf.surf.net (filter1-til.mf.surf.net [194.171.167.217]) by ronja.ntg.nl (Postfix) with ESMTP id 4BC5D1FBBD for ; Thu, 22 Jan 2009 11:28:14 +0100 (CET) Original-Received: from mail-ew0-f13.google.com (mail-ew0-f13.google.com [209.85.219.13]) by filter1-til.mf.surf.net (8.13.8/8.13.8/Debian-3) with ESMTP id n0MASDCJ006727 for ; Thu, 22 Jan 2009 11:28:13 +0100 Original-Received: by ewy6 with SMTP id 6so2816624ewy.2 for ; Thu, 22 Jan 2009 02:28:13 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:content-type :content-transfer-encoding; bh=L7dXgeJ9EBW+6VMsy+DUEa8ioJEGM/Ur55ONvADtJLQ=; b=QKXVj3JVct0lHpIjJBi1wAia1m4AIc94ed4VudjhVMooMN8WrwuFBwHjblEmXOvIkE oluQHV9bEZ7fj2nwdrCF6ZJJFdK9S1xdaDD5ZBLKWjM6q4dkwjKX9SgdNyjZeJ06YhO1 NLt/Fk5QedT15LxHyyeVexT/1F8VrdWXmX9/s= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; b=HgelIwH453pW+bcF/lNR+8bCv0I7yzOLcupyG0hlRewTmynyWm99s8N0Pzk4AQYkQo /ARmCd+9uoChA9ldq676HDlGDVJ+HNBwkN0Zmv3RH2UByDA0AeA6EUAzfp73R0WZLiyt pKNkZ7sbhjxsHVLYpLecMXRFmby8X9CipuIZs= Original-Received: by 10.210.19.16 with SMTP id 16mr591043ebs.129.1232620092762; Thu, 22 Jan 2009 02:28:12 -0800 (PST) In-Reply-To: X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=209.85.219.13; country=US; region=CA; city=Mountain View; postalcode=94043; latitude=37.4192; longitude=-122.0574; metrocode=807; areacode=650; http://maps.google.com/maps?q=37.4192,-122.0574&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 168992673 - a3c3282a7969 X-Scanned-By: CanIt (www . roaringpenguin . com) on 194.171.167.217 X-Virus-Scanned: amavisd-new at ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.11 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:46965 Archived-At: 2009/1/22 Peter M=FCnster : >> But I was wondering if it could be generalized. I was thinking about >> the following. A variable backgroundList is defined and in every >> template where layers are defined, those layers are added to >> backgroundList. And then the following statement is used: >> \setupbackgrounds[page][background=3D\@backgroundList] >> >> Is something like this possible? > > Perhaps you're looking for something like this: > http://archive.contextgarden.net/message/20060115.080349.8efe83be.en.html > That means: a template adds a background. Works like a charm. In t-defaults.tex I have: \setupbackgrounds[page][state=3Dstart] In t-watermark.tex I have: \expandparameters \setupbackgrounds[page][background=3D{\currentvalue,WatermarkOverlay}] In t-privebrief.tex I have: \expandparameters \setupbackgrounds[page][background=3D{\currentvalue,myAddr}] And in my document I have: \usemodule[defaults] \usemodule[watermark] \usemodule[privebrief] And both backgrounds are displayed. -- = Cecil Westerhof ___________________________________________________________________________= ________ 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________= ________