From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/42092 Path: news.gmane.org!not-for-mail From: "Wolfgang Schuster" Newsgroups: gmane.comp.tex.context Subject: Re: Letter backaddress Date: Thu, 3 Jul 2008 12:32:46 +0200 Message-ID: <115224fb0807030332i38c1aaa7s682169e753881d46@mail.gmail.com> References: <115224fb0807030330l590f5aaeq374a253292c0607d@mail.gmail.com> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="windows-1252" Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1215081307 17903 80.91.229.12 (3 Jul 2008 10:35:07 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 3 Jul 2008 10:35:07 +0000 (UTC) To: "mailing list for ConTeXt users" Original-X-From: ntg-context-bounces@ntg.nl Thu Jul 03 12:35:50 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 1KEMA4-00079d-Qn for gctc-ntg-context-518@m.gmane.org; Thu, 03 Jul 2008 12:35:36 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 34C9A1FEB3; Thu, 3 Jul 2008 12:34:43 +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 20542-04-16; Thu, 3 Jul 2008 12:33:53 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id DD1E11FEA7; Thu, 3 Jul 2008 12:33:52 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 6DC481FEAC for ; Thu, 3 Jul 2008 12:33:50 +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 19420-02-38 for ; Thu, 3 Jul 2008 12:33:10 +0200 (CEST) Original-Received: from yw-out-1718.google.com (yw-out-1718.google.com [74.125.46.158]) by ronja.ntg.nl (Postfix) with ESMTP id F08671FE9F for ; Thu, 3 Jul 2008 12:32:51 +0200 (CEST) Original-Received: by yw-out-1718.google.com with SMTP id 5so467522ywm.74 for ; Thu, 03 Jul 2008 03:32:47 -0700 (PDT) Original-Received: by 10.151.113.5 with SMTP id q5mr105932ybm.135.1215081166983; Thu, 03 Jul 2008 03:32:46 -0700 (PDT) Original-Received: by 10.150.96.3 with HTTP; Thu, 3 Jul 2008 03:32:46 -0700 (PDT) In-Reply-To: <115224fb0807030330l590f5aaeq374a253292c0607d@mail.gmail.com> 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:42092 Archived-At: On Thu, Jul 3, 2008 at 12:30 PM, Wolfgang Schuster wrote: > On Thu, Jul 3, 2008 at 12:23 PM, Oliver Buerschaper > wrote: >> Dear Wolfgang, >> >> I'm struggling with the backaddress option =85 I tried the following code >> >> --- >> \usemodule[letter] >> >> >> >> \starttext >> >> >> \setupletter >> [fromname=3D{Arthur Thor}, >> fromaddress=3D{Hidden Street 2\\57895 Mysterytown}, >> backaddress=3D{Arthur Thor, Hidden Street 2, 57895 Mysterytown}] >> >> \setupletter >> [toname=3D{Mike Willson}, >> toaddress=3D{Lindenstreet 12\\78569 TeX City}] >> >> \startletter >> [subject=3D{Step by step guide to writing a letter}, >> opening=3D{Dear Reader,}, >> closing=3D{Greetings from the Author}] >> >> \input knuth >> >> \stopletter >> >> >> \stoptext >> --- >> >> but couldn't see the backaddress line in the output. What do I have to >> change? > > There is nothing wrong with your file, I just forgot to add it. > > Try the following patch, I will release a new version ASAP. Please give > me a feedback if this did work. > > \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=3Dyes] to your file because the backaddress is disabled by default. Regards, Wolfgang ___________________________________________________________________________= ________ If your question is of interest to others as well, please add an entry to t= he Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-cont= ext webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________= ________