From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/57527 Path: news.gmane.org!not-for-mail From: Wolfgang Schuster Newsgroups: gmane.comp.tex.context Subject: Re: letter: backaddress Date: Sat, 27 Mar 2010 19:49:39 +0100 Message-ID: <4BAE5343.7080108@googlemail.com> References: <4BAE46D7.27001.B01600@wwl.musensturm.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"; Format="flowed" Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1269715803 18737 80.91.229.12 (27 Mar 2010 18:50:03 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sat, 27 Mar 2010 18:50:03 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Sat Mar 27 19:49:59 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 1Nvb55-0001Ta-0R for gctc-ntg-context-518@m.gmane.org; Sat, 27 Mar 2010 19:49:59 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 8C5A9C9C61; Sat, 27 Mar 2010 19:49:58 +0100 (CET) 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 kPhleeH-b507; Sat, 27 Mar 2010 19:49:55 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id AE230C9C7C; Sat, 27 Mar 2010 19:49:55 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id A5F18C9C7C for ; Sat, 27 Mar 2010 19:49:54 +0100 (CET) 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 Xj20VJy-acR4 for ; Sat, 27 Mar 2010 19:49:43 +0100 (CET) Original-Received: from mail-bw0-f228.google.com (mail-bw0-f228.google.com [209.85.218.228]) by balder.ntg.nl (Postfix) with ESMTP id 1BB82C9C61 for ; Sat, 27 Mar 2010 19:49:42 +0100 (CET) Original-Received: by bwz28 with SMTP id 28so9581813bwz.34 for ; Sat, 27 Mar 2010 11:49:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from :user-agent:mime-version:to:subject:references:in-reply-to :content-type:content-transfer-encoding; bh=0zT8Hgg8a9RKSK0vNxZBvSD5KwYLPrq+1X6aduanuo4=; b=RuSMlrsQOMPnqufarKm+K/VLmOxArxXyHU63hRf/1u9sIdGTFDOQZF6sbbNC6ShoTV fsTLlXPCIkYkn4Tl0noOpLFxpiifgH/5f8wgXWUyZ52Z5YtOrCAnFoGqJEdtzO6MOO/E LS7NQR/LKOIhNtQ0G8yT/8mWPVu/9oyaLvg5A= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:content-type:content-transfer-encoding; b=Cxzgu0Pdki+VwNQofgLfyO1H+tpbgQNGMbfHZ3pIlsxLBffaCERMzeOl4r9GoJoBkO 3Fg0jcXCcpINJusJr/bZr+bywLOGbsNLcT+jfKKUGkiP7wpBQGR0PszUdacdXiPKeYga /QCF0+OEblhz0wZTwYaaR8T2hzq6JFdb8uxXw= Original-Received: by 10.204.140.67 with SMTP id h3mr1615770bku.137.1269715782427; Sat, 27 Mar 2010 11:49:42 -0700 (PDT) Original-Received: from [192.168.2.23] (p5B294E34.dip.t-dialin.net [91.41.78.52]) by mx.google.com with ESMTPS id 15sm1270452bwz.0.2010.03.27.11.49.41 (version=TLSv1/SSLv3 cipher=RC4-MD5); Sat, 27 Mar 2010 11:49:41 -0700 (PDT) User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; de; rv:1.9.1.8) Gecko/20100227 Thunderbird/3.0.3 In-Reply-To: <4BAE46D7.27001.B01600@wwl.musensturm.de> 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:57527 Archived-At: Am 27.03.10 17:56, schrieb Wolfgang Werners-Lucchini: > I do not understand the the main principle. > You're mixing different things. > What is the difference between > > \setupletterstyle[option][backaddress=yes] > In t-letter.tex you can fint this: \startsetups[\v!letter:\v!layer] \doif\@@@@lsoptionmarking \v!yes{\directsetup{\v!letter:\v!place:\v!foldmark }} \doif\@@@@lsoptionbackaddress\v!yes{\directsetup{\v!letter:\v!place:\v!backaddress}} \doif\@@@@lsoptionaddress \v!yes{\directsetup{\v!letter:\v!place:\v!address }} \doif\@@@@lsoptionreference \v!yes{\directsetup{\v!letter:\v!place:\v!reference }} \doif\@@@@lsoptionlocation \v!yes{\directsetup{\v!letter:\v!place:\v!location }} \doif\@@@@lsoptionlettermain \v!yes{\directsetup{\v!letter:\v!place:\v!lettermain }} \doif\@@@@lsoptionletternext \v!yes{\directsetup{\v!letter:\v!place:\v!letternext }} \stopsetups With \setupletterstyle[=yes|no] you can show or hide elements (like the foldmarks or the backaddress) in the output. > \setupletterstyle[backaddress][alternative=yes] > > In 'default.nli' I found > > \defineletterelement[\v!backaddress][\v!auto] > {\doifelselettervalue\c!backaddress > {\lettervalue\c!backaddress} > {\lettervalue\c!fromname > \doiflettervalue\c!fromaddress\\ > \lettervalue\c!fromaddress}} > > what I interpret in the following way: > > If 'backaddress'=auto > If exist a constant 'backaddress' > use it > else > compose one from 'fromname' and 'fromaddress' > The constant needs a content, if there is no content for 'backadress' the field is filled with 'fromname' and 'fromaddress'. \defineletterelements creates a macro, where the first argument is the name of the elements and the second a name for the alternative, e.g. \defineletterelement[][]{definition} You can use the created element with \setupletterstyle[][alternative=], in your case \setupletterstyle[backaddress][alternative=auto] When you don't like this mechanism you can use the internal element setups itself with \startsetups letter:backaddress ... \stopsetups 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 ___________________________________________________________________________________