From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/53375 Path: news.gmane.org!not-for-mail From: Wolfgang Schuster Newsgroups: gmane.comp.tex.context Subject: Re: letter module: different first page for multiple letters in one file Date: Sat, 10 Oct 2009 13:49:44 +0200 Message-ID: References: Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 (Apple Message framework v1076) Content-Type: text/plain; charset="us-ascii"; Format="flowed"; DelSp="yes" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1255175410 3225 80.91.229.12 (10 Oct 2009 11:50:10 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 10 Oct 2009 11:50:10 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Sat Oct 10 13:50:00 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 1MwaSW-000287-8o for gctc-ntg-context-518@m.gmane.org; Sat, 10 Oct 2009 13:50:00 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 69049C9A9C; Sat, 10 Oct 2009 13:49:58 +0200 (CEST) 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 3R2leumWixih; Sat, 10 Oct 2009 13:49:53 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 9F5E6C9A70; Sat, 10 Oct 2009 13:49:53 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 42941C9A70 for ; Sat, 10 Oct 2009 13:49:51 +0200 (CEST) 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 RMkIvD0AZrZ7 for ; Sat, 10 Oct 2009 13:49:47 +0200 (CEST) Original-Received: from mail-bw0-f207.google.com (mail-bw0-f207.google.com [209.85.218.207]) by balder.ntg.nl (Postfix) with ESMTP id 5B853C9A41 for ; Sat, 10 Oct 2009 13:49:47 +0200 (CEST) Original-Received: by bwz3 with SMTP id 3so6708884bwz.2 for ; Sat, 10 Oct 2009 04:49:47 -0700 (PDT) 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=CU6hL9PBOpR5w6sV00mugUvZO106/egFpox5oDcR7Rc=; b=MbDALRAmqfiSyXY6mSMsQ4zQVMJ0UWuFA1vK7ak5Hesldd5KT9QeX5OqOOwkGZqH5W MMYNYQ5jO5OwnRqCUHqnI3LmseerCVOh/MTEvUhCfHjFx7Qd3xHwWCoZxaWznyneUaNx uaRU1LjwT9dwOYDA2xL1qcDvjyp2/v9o5A478= 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=PkMkfXmfAJLbV1Udxu4uNXI35PVGyJpBnogcRaWWqvrlK283eipycNtZhnjtiJ98Cb yOPLViANjqdA1rhFe1kZhzlriIgPgq/GsIXGCCD0X7V9rCJo8Y7sSzPiBGtb1OsyIoat h9atlcERIT+uLXLBz3PRGPa5iTrdq9iv10qts= Original-Received: by 10.103.125.35 with SMTP id c35mr1568471mun.30.1255175387013; Sat, 10 Oct 2009 04:49:47 -0700 (PDT) Original-Received: from ?192.168.2.23? (p549560AC.dip.t-dialin.net [84.149.96.172]) by mx.google.com with ESMTPS id 12sm3326965muq.18.2009.10.10.04.49.45 (version=TLSv1/SSLv3 cipher=RC4-MD5); Sat, 10 Oct 2009 04:49:46 -0700 (PDT) In-Reply-To: X-Mailer: Apple Mail (2.1076) 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:53375 Archived-At: Am 10.10.2009 um 01:48 schrieb Michael Green: > I have one file containing several letters that I process using > Wolfgang's letter module. > > I have a special background for the first page of a letter. I define > and set three layers: PCLogo, PCDept, and PCAddress. Here is a > representative example: > \definelayer > [PCLogo] > [width=\paperwidth, > height=\paperheight, > preset=lefttop, > y=20pt, > state=start] > > Then I make these layers backgrounds like so: > > \setupletterstyle[lettermain][background={PCLogo,PCDept,PCAddress}] > > The result I *get* is that the first letter in the file gets the > background on its first page as normal. But the subsequent letters > do not. Their first pages are plain. > > The result I *want* is for each letter to have the background on its > first page, like the first letter in the file gets. It's the normal behavior of layers to forget their content after the first usage but there are mechanism to store it and reuse the saved settings multiple times. \usemodule[letter] \definelayer[PC][width=\paperwidth,height=\paperheight] \startsetups PC \setlayer[PC][y=20pt]{...} \setlayer[PC][x=..,y=..]{...} \stopsetups \setupletterstyle[lettermain][setups=PC,background=PC] ... % more settings \starttext \startletter ... \stopletter ... % more letters \stoptext 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 ___________________________________________________________________________________