From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/80358 Path: news.gmane.org!not-for-mail From: Wolfgang Schuster Newsgroups: gmane.comp.tex.context Subject: Re: t-letter Date: Sun, 20 Jan 2013 18:42:42 +0100 Message-ID: <84BDE840-CE88-454C-9C93-30022B24148F@gmail.com> References: <08F63FE9-A3A0-44E8-8CDB-C4ACA6CF9F6E@fiee.net> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 (Mac OS X Mail 6.2 \(1499\)) Content-Type: text/plain; charset="windows-1252" Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1358703770 21298 80.91.229.3 (20 Jan 2013 17:42:50 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 20 Jan 2013 17:42:50 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Sun Jan 20 18:43:09 2013 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([195.12.62.10]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1TwyvD-0003m8-Ey for gctc-ntg-context-518@m.gmane.org; Sun, 20 Jan 2013 18:43:07 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 61041101EA; Sun, 20 Jan 2013 18:42:50 +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 lTSoEgx9Mz8k; Sun, 20 Jan 2013 18:42:48 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id 7C75B101E5; Sun, 20 Jan 2013 18:42:48 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 3F721101E5 for ; Sun, 20 Jan 2013 18:42:47 +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 pzwGh8d4diJw for ; Sun, 20 Jan 2013 18:42:43 +0100 (CET) Original-Received: from filter3-ams.mf.surf.net (filter3-ams.mf.surf.net [192.87.102.71]) by balder.ntg.nl (Postfix) with ESMTP id 45AEF101E2 for ; Sun, 20 Jan 2013 18:42:43 +0100 (CET) Original-Received: from mail-bk0-f53.google.com (mail-bk0-f53.google.com [209.85.214.53]) by filter3-ams.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id r0KHggF8002922 for ; Sun, 20 Jan 2013 18:42:42 +0100 Original-Received: by mail-bk0-f53.google.com with SMTP id je9so117028bkc.12 for ; Sun, 20 Jan 2013 09:42:42 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:content-type:mime-version:subject:from:in-reply-to:date :content-transfer-encoding:message-id:references:to:x-mailer; bh=ZN4XialTXET5skiBDkwXiKSiFJLmUOEj4uJOD5MQwpM=; b=r9j0v8cx45sEKLVaLj07kDXSH4o+Th4zO2swsg86ZjWRgRDzdttbSf7+xDHDQRX9Pe Ru9+MqSBBxAKxhD6VMlUKTtBn0gqME3TIiiVTBLGSjiBCPk8wVpC9W/eNxkVJbwcPhx+ kbVNhOKR+abDA/5uqOrolUDDfFN7SBtBY/PycgVqCkllCXu4KyRIxyJptoLnXz4T+gLd YFVtaIORElISNPLIOiov2VtiXe0oAzaFwmGrZgSz+I8CmoRZibEDJwQjVzp9Npn0v8rF NvaHhIVlI+9EB8SLu4IsgrHqSLqp9WrSXyv1SlCZ6oZf5WHkPEMxU9oY/Zy1hdWerX4h hzaQ== X-Received: by 10.204.8.18 with SMTP id f18mr4298668bkf.82.1358703762154; Sun, 20 Jan 2013 09:42:42 -0800 (PST) Original-Received: from keima.localdomain (nrbg-4dbe5d00.pool.mediaWays.net. [77.190.93.0]) by mx.google.com with ESMTPS id l17sm6806603bkw.12.2013.01.20.09.42.41 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sun, 20 Jan 2013 09:42:41 -0800 (PST) In-Reply-To: <08F63FE9-A3A0-44E8-8CDB-C4ACA6CF9F6E@fiee.net> X-Mailer: Apple Mail (2.1499) X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=209.85.214.53; 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: 03IOhGGHV - a09fb63c342a - 20130120 (trained as not-spam) X-Scanned-By: CanIt (www . roaringpenguin . com) on 192.87.102.71 X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.14 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: ntg-context-bounces@ntg.nl Original-Sender: ntg-context-bounces@ntg.nl Xref: news.gmane.org gmane.comp.tex.context:80358 Archived-At: Am 20.01.2013 um 11:32 schrieb Henning Hraban Ramm : > Hi Wolfgang et.al., > = > once again I struggle with your fine letter module. > = > For my job application setup (that worked a year before) I already gave u= p, but I need my invoices working. > = > Did you recently change anything WRT subject line? It doesn=92t show up a= ny more. > (Latest ConTeXt MkIV beta in standalone.) I changed the way how section and layer layouts defined, the current versio= n of the module provides the new command \definelettersectionalternative and \defineletterlayeralter= native. For backwards compatibility I still provide the old \defineletterlement command but there= was a bug when the command is used to create layouts for a section, a new version which fi= xes this is already online. > This used to work: > = > % Subject and date on the same line, date below logo > \defineletterelement[section][subject][fiee]% > {\bTABLE[frame=3Doff] > \bTR > \bTD[width=3D\dimexpr169mm-\backspace\relax]\correspondenceparameter{su= bject}\eTD > \bTD{\tf\correspondenceparameter{date}}\eTD > %\bTD{\tf 2011-11-14}\eTD > \eTR > \eTABLE} > = > \setuplettersection[subject][alternative=3Dfiee] > = > \startletter[subject=3D{Invoice 1}] > ... > \stopletter > = > (Yes, this isn=92t a working minimal example. Perhaps you can tell me you= changed this or that - otherwise I must dig deeper=85) Below are two additional methods to create a customized layout for the sect= ion. \usemodule[letter] % Method 1: unique name for the element % % \definelettersectionalternative[mysubject][renderingsetups=3Dmysubject] % % \startsetups[mysubject] % \bTABLE[frame=3Doff] % \bTR % \bTD[width=3D\dimexpr169mm-\backspace\relax]\correspondenceparamete= r{subject}\eTD % \bTD{\tf\correspondenceparameter{date}}\eTD % %\bTD{\tf 2011-11-14}\eTD % \eTR % \eTABLE % \stopsetups % % \setuplettersection[subject][alternative=3Dmysubject] % Method 2: shared name (fiee) for the element with its name (subject) as p= refix \definelettersectionalternative[subject:fiee][renderingsetup=3Dsubject:fiee] \startsetups[subject:fiee] \bTABLE[frame=3Doff] \bTR \bTD[width=3D\dimexpr169mm-\backspace\relax]\correspondenceparameter{= subject}\eTD \bTD{\tf\correspondenceparameter{date}}\eTD %\bTD{\tf 2011-11-14}\eTD \eTR \eTABLE \stopsetups \setuplettersection[subject][alternative=3Dfiee] % Method 3: using the predefined setups alternative % % \startsetups[letter:section:subject] % \bTABLE[frame=3Doff] % \bTR % \bTD[width=3D\dimexpr169mm-\backspace\relax]\correspondenceparamete= r{subject}\eTD % \bTD{\tf\correspondenceparameter{date}}\eTD % %\bTD{\tf 2011-11-14}\eTD % \eTR % \eTABLE % \stopsetups % % \setuplettersection[subject][alternative=3Dsetups] \startletter[subject=3D{Invoice 1}] ... \stopletter 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________= ________