From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/46958 Path: news.gmane.org!not-for-mail From: Cecil Westerhof Newsgroups: gmane.comp.tex.context Subject: Re: Merging background Date: Thu, 22 Jan 2009 01:15:13 +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="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1232583467 9129 80.91.229.12 (22 Jan 2009 00:17:47 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 22 Jan 2009 00:17:47 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Thu Jan 22 01:18:59 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 1LPnHZ-0001VG-6q for gctc-ntg-context-518@m.gmane.org; Thu, 22 Jan 2009 01:18:53 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id AAB8B1FE2C; Thu, 22 Jan 2009 01:17:33 +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 08405-03-6; Thu, 22 Jan 2009 01:16:03 +0100 (CET) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 14DBC1FE3A; Thu, 22 Jan 2009 01:16:03 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 137891FE3A for ; Thu, 22 Jan 2009 01:16:02 +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 08405-03-5 for ; Thu, 22 Jan 2009 01:15:16 +0100 (CET) Original-Received: from filter3-til.mf.surf.net (filter3-til.mf.surf.net [194.171.167.219]) by ronja.ntg.nl (Postfix) with ESMTP id 7F8201FE2C for ; Thu, 22 Jan 2009 01:15:16 +0100 (CET) Original-Received: from rv-out-0708.google.com (rv-out-0708.google.com [209.85.198.249]) by filter3-til.mf.surf.net (8.13.8/8.13.8/Debian-3) with ESMTP id n0M0FEg7032194 for ; Thu, 22 Jan 2009 01:15:15 +0100 Original-Received: by rv-out-0708.google.com with SMTP id f25so4191967rvb.14 for ; Wed, 21 Jan 2009 16:15: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=LU7c1hXCTtQ8gddaPrdSXKXLJQBkD+uoF3zK/UyLu3g=; b=mCzOayHUOZEo2a6LBxQnNOeqw94hnVDmdw8CIbgIhATQSPLETz+6CNEIOINOG8hMHo OtgsZdrAjWDfry2zKJ6A+SIeitEdYuYSijDFXRJMIA1OcYi6Kc6uHCZhOtpc1BxAHMSj +vnZu/MOIbuav399FXiQrYdtR1H28YYbSXX+E= 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=gHT4O0WVg+/Vq+kQzs2/m24K7Gxj7InVK8gmLp8dWECoOhLo7vtsykhuT1K14fTcrz J8c8/Rdy7LGFRsOmuF+VBeADHCBGhoKi+gqi5z6cx9/gdY5lrMEQlN5lR9cfTAPUbaYb ywqvgy1AoANiF91dJBucv6tF0irSK5wCanE2E= Original-Received: by 10.141.176.13 with SMTP id d13mr4230113rvp.231.1232583313814; Wed, 21 Jan 2009 16:15:13 -0800 (PST) In-Reply-To: X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=209.85.198.249; 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: 168823970 - c85307840d8c X-Scanned-By: CanIt (www . roaringpenguin . com) on 194.171.167.219 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:46958 Archived-At: 2009/1/21 Wolfgang Schuster : >> I have a template for a letter in which I use \setupbackgrounds. I >> also have a tenplate for a watermark which also uses >> \setupbackgrounds. The background from the last include is used. Is >> there a way to merge the backgrounds? > > \setupbackgrounds[page][background={template,watermark}] In my letter template I now do: \setupbackgrounds[page][background={myAddr,WatermarkOverlay}] That even works if the watermark template is not included. So, so far so good. 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=\@backgroundList] Is something like this possible? -- Cecil Westerhof ___________________________________________________________________________________ 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________