From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/83459 Path: news.gmane.org!not-for-mail From: Wolfgang Schuster Newsgroups: gmane.comp.tex.context Subject: Re: Some questions about the letter module Date: Thu, 18 Jul 2013 14:57:33 +0200 Message-ID: References: <23497_1374091731_51E6F9D3_23497_15321_1_0395100E-71DC-4F57-BBDF-EC0CA5E119EE@gmail.com> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 (Mac OS X Mail 6.5 \(1508\)) Content-Type: multipart/mixed; boundary="===============1668791597==" X-Trace: ger.gmane.org 1374152287 20440 80.91.229.3 (18 Jul 2013 12:58:07 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 18 Jul 2013 12:58:07 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Thu Jul 18 14:58:09 2013 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([5.39.185.229]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1UznmS-000152-QW for gctc-ntg-context-518@m.gmane.org; Thu, 18 Jul 2013 14:58:00 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 52365101E4; Thu, 18 Jul 2013 14:57:53 +0200 (CEST) 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 4wVnQqzWGa9J; Thu, 18 Jul 2013 14:57:41 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id 4668B101EA; Thu, 18 Jul 2013 14:57:41 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 1CA4D101E4 for ; Thu, 18 Jul 2013 14:57:40 +0200 (CEST) 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 n-M7YGd+KVFH for ; Thu, 18 Jul 2013 14:57:29 +0200 (CEST) Original-Received: from filter4-ams.mf.surf.net (filter4-ams.mf.surf.net [192.87.102.72]) by balder.ntg.nl (Postfix) with ESMTP id E4664101E0 for ; Thu, 18 Jul 2013 14:57:28 +0200 (CEST) Original-Received: from mail-ea0-x230.google.com (mail-ea0-x230.google.com [IPv6:2a00:1450:4013:c01::230]) by filter4-ams.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id r6ICvZ36009337 for ; Thu, 18 Jul 2013 14:57:35 +0200 Original-Received: by mail-ea0-f176.google.com with SMTP id z15so1705296ead.7 for ; Thu, 18 Jul 2013 05:57:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:content-type:message-id:mime-version:subject:date:references :to:in-reply-to:x-mailer; bh=CdttocE7aTg7N70c5WzDcHu0Nj0Sx+bf1Wf1cW8W5So=; b=teBZW+tqWOoznGS4b64N4Qj1FIli1KfGZysjN14sb2eBG09It3SXi4dmMRCCEEyObu TrTWLMVgricnEG752fuSVPEql+ARvn3Q2NvzQ3K0NroHJoBolxFdZn87kfR363YRI8ry si8D1mxtOpUwHe3eqdu8FUN6l95IQUz4x71jdkh0QDDU49J+JQXO4HTst8i13PRL/UAZ /hybzY9D6a6lRqIWSWjeIifSHdRA5xNXPQ7DWeefn0IF4CmK4lrwXv446afqa84pADci P2oORPRjryLrqD6YfcIc3UZskaFFX0i31Ijf/AlaNN7J3p2b8y0ClJ4fznJkd3PE1vim EGFQ== X-Received: by 10.14.179.133 with SMTP id h5mr11238158eem.46.1374152255231; Thu, 18 Jul 2013 05:57:35 -0700 (PDT) Original-Received: from keima.localdomain (nrbg-4dbe77c8.pool.mediaWays.net. [77.190.119.200]) by mx.google.com with ESMTPSA id r54sm19114096eev.8.2013.07.18.05.57.33 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 18 Jul 2013 05:57:34 -0700 (PDT) In-Reply-To: X-Mailer: Apple Mail (2.1508) X-Bayes-Prob: 0.0143 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=2a00:1450:4013:c01::230; country=IE X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 01K1MVzOU - 8e2cf6c83baf - 20130718 (trained as not-spam) X-Scanned-By: CanIt (www . roaringpenguin . com) 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:83459 Archived-At: --===============1668791597== Content-Type: multipart/alternative; boundary="Apple-Mail=_A868BC2C-EA61-4DD7-BF1F-343B083547C8" --Apple-Mail=_A868BC2C-EA61-4DD7-BF1F-343B083547C8 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=windows-1252 Am 18.07.2013 um 03:12 schrieb Michael Ash : > Dear Wolfgang, >=20 > Thank you very much. This is very helpful. >=20 > One note is that to center the footer required=20 >=20 > \setupletterframe[foot][align=3Dmiddle] Of course, the alignment is a framed feature. > (NOT \setupletterlayer. Per = http://wiki.contextgarden.net/Letter#Setup) >=20 >=20 > A couple more questions. > (1) is there a more efficient way to indent only the content of the = letter: >=20 > \setupindenting[yes,small] > \setuplettersection[opening][indenting=3Dno] > \setuplettersection[subject][indenting=3Dno] > \setuplettersection[closing][indenting=3Dno] > \setuplettersection[signature][indenting=3Dno] You can use \setupletteroptions[indenting=3D=85] which only passed to = the content section. > (2) The following did not properly left-justify the date (the date was = towards the left but was not perfectly aligned with the other = left-justified text): > \setupletterlayer[reference][alternative=3De] This should be alternative c and not e. \usemodule[letter] \setupletterlayer[reference][alternative=3Dc] %\setupletterlayer[reference][alternative=3Dc,list=3Dreference] % = default: list=3Ddate %\setupletter[reference=3D\currentdate] \setupletteroptions[indenting=3D{yes,medium,next}] \startletter \input knuth \stopletter Wolfgang --Apple-Mail=_A868BC2C-EA61-4DD7-BF1F-343B083547C8 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=windows-1252 mash@econs.umass.edu>:
Dear = Wolfgang,

Thank you very much.  This is very = helpful.

One note is that to center the footer = required 

\setupletterframe[foot][align=3Dmiddle]<= /div>

Of course, the = alignment is a framed feature.

(NOT \setupletterlayer.  Per http://wiki.contextgar= den.net/Letter#Setup)


A couple more = questions.
(1) is there a more efficient way to indent only = the content of the letter:
=
\setupindenting[yes,small]
\setuplettersection[opening]= [indenting=3Dno]
\setuplettersection[subject][indenting=3Dno]
\setuplettersection[closing][indenting=3Dno]
\setuplette= rsection[signature][indenting=3Dno]

You can use = \setupletteroptions[indenting=3D=85] which only passed to the content = section.

(2) The following = did not properly left-justify the date (the date was towards the left = but was not perfectly aligned with the other left-justified = text):
\setupletterlayer[reference][alternative=3De]

This should be alternative c and = not = e.


\usemodule[letter]

\setupletterlayer[reference][alternative=3Dc]
=
%\setupletterlayer[reference][alternative=3Dc,list=3Drefere= nce] % default: = list=3Ddate
%\setupletter[reference=3D\currentdate]
\setupletteroptions[indenting=3D{yes,medium,next}]
=
\startletter
\input = knuth
\stopletter


Wolfga= ng

= --Apple-Mail=_A868BC2C-EA61-4DD7-BF1F-343B083547C8-- --===============1668791597== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline ___________________________________________________________________________________ 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 ___________________________________________________________________________________ --===============1668791597==--