From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/42099 Path: news.gmane.org!not-for-mail From: Oliver Buerschaper Newsgroups: gmane.comp.tex.context Subject: Re: Letter backaddress Date: Thu, 3 Jul 2008 15:04:27 +0200 Message-ID: <172BF122-DD85-41FE-AD3E-2920538A34B1@mpq.mpg.de> References: <115224fb0807030330l590f5aaeq374a253292c0607d@mail.gmail.com> <115224fb0807030332i38c1aaa7s682169e753881d46@mail.gmail.com> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 (Apple Message framework v926) Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1215090439 18638 80.91.229.12 (3 Jul 2008 13:07:19 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 3 Jul 2008 13:07:19 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Thu Jul 03 15:08:05 2008 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 1KEOWO-0002Lo-5p for gctc-ntg-context-518@m.gmane.org; Thu, 03 Jul 2008 15:06:48 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 3C16D1FE73; Thu, 3 Jul 2008 15:05:49 +0200 (CEST) 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 11596-03-2; Thu, 3 Jul 2008 15:05:02 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id A79071FE4F; Thu, 3 Jul 2008 15:05:02 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id CE35F1FE47 for ; Thu, 3 Jul 2008 15:05:00 +0200 (CEST) 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 10565-03-13 for ; Thu, 3 Jul 2008 15:04:28 +0200 (CEST) Original-Received: from post.rzg.mpg.de (post.rzg.mpg.de [130.183.7.21]) by ronja.ntg.nl (Postfix) with ESMTP id 4B3631FE6E for ; Thu, 3 Jul 2008 15:04:28 +0200 (CEST) Original-Received: from [192.168.0.2] (f053226225.adsl.alicedsl.de [78.53.226.225]) by post.rzg.mpg.de (8.9.2/8.9.2) with ESMTP id PAA1921236 for ; Thu, 3 Jul 2008 15:04:27 +0200 X-Envelope-To: In-Reply-To: <115224fb0807030332i38c1aaa7s682169e753881d46@mail.gmail.com> X-Mailer: Apple Mail (2.926) X-Virus-Scanned: amavisd-new at ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.9 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:42099 Archived-At: >> \unprotect >> >> \startsetups[letter:backaddress] >> \def\\{\lettervalue{\c!backaddress\c!separator}} >> \doifelselettervalue\v!backaddress >> {\lettervalue\v!backaddress} >> {\lettervalue\c!fromname >> \doiflettervalue\c!fromaddress\\ >> \lettervalue\c!fromaddress} >> \stopsetups >> >> \protect > > And add \setupletterstyle[backaddress=yes] to your file > because the backaddress is disabled by default. Thanks very much, this works! Still a minor suggestion regarding the interface: I guess at the moment it's slightly inconsistent because on the one hand one has \setupletterstyle [backaddress=yes] and on the other hand \setupletter [list={name,phone,fax,date}] Note that both commands actually implement boolean switches, namely, whether backaddress, name etc. should be displayed or not. For consistency reasons these switches should perhaps be interfaced in the same way, e.g. by "name=yes" etc. Another possibility would be removing the "backaddress=yes" switch completely. Then if backaddress data is supplied it's printed along with the line below and if not, well, then leave out the separator line. What do you think? Oliver ___________________________________________________________________________________ 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 ___________________________________________________________________________________