From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/42100 Path: news.gmane.org!not-for-mail From: "Wolfgang Schuster" Newsgroups: gmane.comp.tex.context Subject: Re: Letter backaddress Date: Thu, 3 Jul 2008 15:20:24 +0200 Message-ID: <115224fb0807030620p6e7f8b15s669222dbfce505db@mail.gmail.com> References: <115224fb0807030330l590f5aaeq374a253292c0607d@mail.gmail.com> <115224fb0807030332i38c1aaa7s682169e753881d46@mail.gmail.com> <172BF122-DD85-41FE-AD3E-2920538A34B1@mpq.mpg.de> 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 1215091270 21922 80.91.229.12 (3 Jul 2008 13:21:10 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 3 Jul 2008 13:21:10 +0000 (UTC) To: "mailing list for ConTeXt users" Original-X-From: ntg-context-bounces@ntg.nl Thu Jul 03 15:21:56 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 1KEOku-0000Dn-PU for gctc-ntg-context-518@m.gmane.org; Thu, 03 Jul 2008 15:21:48 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 691701FE35; Thu, 3 Jul 2008 15:20:54 +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 16187-04; Thu, 3 Jul 2008 15:20:37 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id D270C1FDFF; Thu, 3 Jul 2008 15:20:36 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 738F11FDF5 for ; Thu, 3 Jul 2008 15:20:34 +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 16230-01-14 for ; Thu, 3 Jul 2008 15:20:28 +0200 (CEST) Original-Received: from rn-out-0910.google.com (rn-out-0910.google.com [64.233.170.191]) by ronja.ntg.nl (Postfix) with ESMTP id 97E361FDE2 for ; Thu, 3 Jul 2008 15:20:28 +0200 (CEST) Original-Received: by rn-out-0910.google.com with SMTP id m61so234870rnd.8 for ; Thu, 03 Jul 2008 06:20:25 -0700 (PDT) Original-Received: by 10.150.212.14 with SMTP id k14mr374277ybg.86.1215091224204; Thu, 03 Jul 2008 06:20:24 -0700 (PDT) Original-Received: by 10.150.96.3 with HTTP; Thu, 3 Jul 2008 06:20:24 -0700 (PDT) In-Reply-To: <172BF122-DD85-41FE-AD3E-2920538A34B1@mpq.mpg.de> Content-Disposition: inline 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:42100 Archived-At: On Thu, Jul 3, 2008 at 3:04 PM, Oliver Buerschaper wrote: >>> \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. I could support name=yes and alike but I can't drop the \setupletter[list=...] because you need it to define your own reference line with personalized elements, e.g. your working in a company a put a sign for the letter there plus the number of the office etc. KOMA-Script handles this with the \setkomavar commands but you have to put the settings for values in the right order in the source. > 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? Have you tried what will happen with a enabled backaddress and no value for backaddress, fromname and fromaddress are shown as backaddress but I don't rely on this feature and change it to waht you suggested. Regards 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________