From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/61445 Path: news.gmane.org!not-for-mail From: Wolfgang Schuster Newsgroups: gmane.comp.tex.context Subject: Re: Module t-letter: Headers, Footers And Back Address Date: Fri, 3 Sep 2010 10:04:09 +0200 Message-ID: <30E9AD57-7E0A-420B-BEFE-FD5E875D5430@gmail.com> References: Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 (Apple Message framework v1081) Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1283501081 29874 80.91.229.12 (3 Sep 2010 08:04:41 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 3 Sep 2010 08:04:41 +0000 (UTC) Cc: benedikt k To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Fri Sep 03 10:04:39 2010 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.69) (envelope-from ) id 1OrRGI-0006Ag-Hx for gctc-ntg-context-518@m.gmane.org; Fri, 03 Sep 2010 10:04:38 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id BDF1BCA665; Fri, 3 Sep 2010 10:04:33 +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 J4JXMmS5WK09; Fri, 3 Sep 2010 10:04:30 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id D16C7CA5F7; Fri, 3 Sep 2010 10:04:30 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 743F0CA5F7 for ; Fri, 3 Sep 2010 10:04:29 +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 qWo7+JDfcD+V for ; Fri, 3 Sep 2010 10:04:17 +0200 (CEST) Original-Received: from filter3-nij.mf.surf.net (filter3-nij.mf.surf.net [195.169.124.154]) by balder.ntg.nl (Postfix) with ESMTP id C9DB8CA5ED for ; Fri, 3 Sep 2010 10:04:17 +0200 (CEST) Original-Received: from mail-fx0-f41.google.com (mail-fx0-f41.google.com [209.85.161.41]) by filter3-nij.mf.surf.net (8.14.3/8.14.3/Debian-5+lenny1) with ESMTP id o8384Ff2007952 for ; Fri, 3 Sep 2010 10:04:15 +0200 Original-Received: by fxm3 with SMTP id 3so1090467fxm.14 for ; Fri, 03 Sep 2010 01:04:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=domainkey-signature:received:received:subject:mime-version :content-type:from:in-reply-to:date:cc:content-transfer-encoding :message-id:references:to:x-mailer; bh=Lvvm7Lj8wkkuGn1t4Ob8mpc/TwhsMeizuNJpS57NitA=; b=YvlqRCtRR162J24tI6Z05jhNNfBbT3zJfgWH4gix1yaKdWkq4Cq/FjrtG8c1g+VJZe lnX6/X81S1ejxYBSR3SGlp4S34B5+SYkqSViU+4EEGzb7xJxuXWHG+AMTTY/W3weMEjN Ac75JITnRorZts7IEiDdSDtFIT9etbLemqQLs= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma; h=subject:mime-version:content-type:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to:x-mailer; b=IP9VWmh0tZmIXSLK9wIyMDAPoV4FiY8mooNuzPl2hLN6Xcb1ys5lPeBCkDWJ5q6bk8 nUrvj2cEtgrtYj8MUDAmXYHr7JxiF0hRIJ7EBgGxOymCku+g2/nC8HZcr3Z1OhlEkHOW pBuaMG78oxwBjk9S400mdVeQVDJgsYQcCOfSg= Original-Received: by 10.223.120.132 with SMTP id d4mr281340far.3.1283501054469; Fri, 03 Sep 2010 01:04:14 -0700 (PDT) Original-Received: from [192.168.2.23] (p5B29521A.dip.t-dialin.net [91.41.82.26]) by mx.google.com with ESMTPS id a6sm699696faa.20.2010.09.03.01.04.11 (version=TLSv1/SSLv3 cipher=RC4-MD5); Fri, 03 Sep 2010 01:04:12 -0700 (PDT) In-Reply-To: X-Mailer: Apple Mail (2.1081) X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=209.85.161.41; 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: 0dD284fUG - 9dd03d1c7ffc - 20100903 X-Scanned-By: CanIt (www . roaringpenguin . com) on 195.169.124.154 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:61445 Archived-At: Am 03.09.2010 um 02:13 schrieb benedikt k: > Hello everyone, > > an issue arised while writing a letter with the third party module > t-letter (http://modules.contextgarden.net/letter). > > I've read the official documentation (Correspondence with ConTeXt) but > I found no solution to: > > a) Setup a header/footer for the first page and configure a different > one for the following pages. > > Page 46 of the documentation describes the setup of the specific > (letter) layers. With the "state" parameter it's possible to enable (= > "start"), disable (= "stop") the header or start it on the second page > and the following (= "next"), but if I configure the header for the > first > page with > > \setupletterstyle[head] > [ > state=start, > alternative=left, > fromrule=top, > ] > > and then for the following pages > > \setupletterstyle[head] > [ > state=next, > ... > ] > > only the second setup is typeset. From this it follows that the first > setup is just overwritten. This is the usual behavior of all setup commands in context, later settings overwrite earlier ones. To set different header you can use 'head' for the first page and 'nexthead' for the following pages. > The header on the first page should only contain a name and than a > thin line (a "\hairline" similar to the built-in variable "fromrule"). > > The header on the following pages should contain variable things and > than also a thin line. > > Unfortunately I found no possibility to get this done. \defineletterelement[head][benedikt] {\lettervalue{fromname} \hairline} \defineletterelement[nexthead][benedikt] {... \hairline} \setupletterstyle[head,nexthead][alternative=benedikt] > b) I would like to define a back address which should be typeset above > the addressee. > > Page 44 of the documentation illustrates amongst other layers the back > address layer, but there is no way to activate and configure this > layer. I've tried it with \setupletter[backaddress][...] and > \setuplayer[backaddress][...]. Enable it with \setupletterstyle[backaddress=yes], it's disabled by default. 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 ___________________________________________________________________________________