From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/83452 Path: news.gmane.org!not-for-mail From: Michael Ash Newsgroups: gmane.comp.tex.context Subject: Re: Some questions about the letter module Date: Wed, 17 Jul 2013 21:12:19 -0400 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 Content-Type: multipart/mixed; boundary="===============1447562953==" X-Trace: ger.gmane.org 1374109980 18266 80.91.229.3 (18 Jul 2013 01:13:00 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 18 Jul 2013 01:13:00 +0000 (UTC) To: ntg-context@ntg.nl Original-X-From: ntg-context-bounces@ntg.nl Thu Jul 18 03:13:03 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 1UzcmE-0001XI-1H for gctc-ntg-context-518@m.gmane.org; Thu, 18 Jul 2013 03:13:02 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 13CD5101EC; Thu, 18 Jul 2013 03:12:55 +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 ynDFUprCkmkL; Thu, 18 Jul 2013 03:12:52 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id 2AB3F101E4; Thu, 18 Jul 2013 03:12:52 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id A45ED101E4 for ; Thu, 18 Jul 2013 03:12:50 +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 L7EQsmdQkSgv for ; Thu, 18 Jul 2013 03:12:38 +0200 (CEST) Original-Received: from filter2-utr.mf.surf.net (filter2-utr.mf.surf.net [195.169.124.153]) by balder.ntg.nl (Postfix) with ESMTP id 9EA40101E0 for ; Thu, 18 Jul 2013 03:12:38 +0200 (CEST) Original-Received: from mailhub2.oit.umass.edu (mailhub2.oit.umass.edu [128.119.103.54]) by filter2-utr.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id r6I1Cv65031997 for ; Thu, 18 Jul 2013 03:12:58 +0200 Original-Received: from mailhub2.oit.umass.edu (localhost [127.0.0.1]) by localhost (Postfix) with SMTP id D136C460C0F for ; Wed, 17 Jul 2013 21:12:40 -0400 (EDT) Original-Received: from mail-vc0-f171.google.com (mail-vc0-f171.google.com [209.85.220.171]) (using TLSv1 with cipher RC4-SHA (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority" (not verified)) (Authenticated sender: maash) by mailhub2.oit.umass.edu (Postfix) with ESMTPSA id 71BB1460BEA for ; Wed, 17 Jul 2013 21:12:40 -0400 (EDT) Original-Received: by mail-vc0-f171.google.com with SMTP id gd11so1914718vcb.16 for ; Wed, 17 Jul 2013 18:12:39 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type; bh=CMyNrDAcNZMmlfO+F0Jx2i44obH/H+srAqLIzR93fzc=; b=GtYDpdDQc6uW4p+QLhmlF3yqOex+38YeFj/LqNVtaZE/JI6gHTydGC+zCHhv+X8K8N UWzDG/1VqJGSm/aobxI9Shz14KxzQvKsutI1XSeqzbMM9T4h4L/AsgWxxDq84vaoIyTg 49MYyzFgAc6o4jGVyrVOo4Qav7N8LTlJ+txRp8aB1m6ziM7EUnKGjpW37FUcwKgq8Xp9 aWJgUnk1jzbr+tZdRJma9+pmQ0vnxUCZyxKlxd+qtCrC8k5NYzGrQC1RK+DQYZwpfcf6 cEovnaSq3eaXGB2OI4jqg8JSlr37RJCuWqsIfKaAVZd55b9iMs2rWZoBW8leKe2iUEVn 3Rng== X-Received: by 10.52.91.244 with SMTP id ch20mr2675216vdb.34.1374109959980; Wed, 17 Jul 2013 18:12:39 -0700 (PDT) Original-Received: by 10.52.121.116 with HTTP; Wed, 17 Jul 2013 18:12:19 -0700 (PDT) In-Reply-To: <23497_1374091731_51E6F9D3_23497_15321_1_0395100E-71DC-4F57-BBDF-EC0CA5E119EE@gmail.com> X-PMX-Version: 6.0.3.2322014, Antispam-Engine: 2.7.2.2107409, Antispam-Data: 2013.7.18.10025 X-PMX-Spam: Gauge=IIIIIIII, Probability=8%, Report=' BODYTEXTH_SIZE_10000_LESS 0, BODY_SIZE_10000_PLUS 0, CTYPE_MULTIPART_NO_QUOTE 0, DATE_TZ_NA 0, URI_1ST_CAP_SUBDIR 0, WEBMAIL_SOURCE 0, __ANY_URI 0, __BOUNCE_CHALLENGE_SUBJ 0, __BOUNCE_NDR_SUBJ_EXEMPT 0, __C230066_P5 0, __CP_URI_IN_BODY 0, __CT 0, __CTYPE_HAS_BOUNDARY 0, __CTYPE_MULTIPART 0, __CTYPE_MULTIPART_ALT 0, __FORWARDED_MSG 0, __FRAUD_BODY_WEBMAIL 0, __FRAUD_WEBMAIL 0, __HAS_FROM 0, __HAS_HTML 0, __HAS_MSGID 0, __HELO_GMAIL 0, __HTML_FONT_BLUE 0, __IN_REP_TO 0, __MIME_HTML 0, __MIME_VERSION 0, __PHISH_SPEAR_HTTP_RECEIVED 0, __RDNS_GMAIL 0, __SANE_MSGID 0, __SUBJ_ALPHA_END 0, __SUBJ_ALPHA_NEGATE 0, __TO_MALFORMED_2 0, __TO_NO_NAME 0, __URI_NO_WWW 0, __URI_NS , __YOUTUBE_RCVD 0' X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=128.119.103.54; country=US; region=MA; city=Amherst; postalcode=01003; latitude=42.3804; longitude=-72.5231; metrocode=543; areacode=413; http://maps.google.com/maps?q=42.3804,-72.5231&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 04K1BcWvG - d2f10ab7c563 - 20130718 (trained as not-spam) X-Scanned-By: CanIt (www . roaringpenguin . com) on 195.169.124.153 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:83452 Archived-At: --===============1447562953== Content-Type: multipart/alternative; boundary=20cf307ca5140c0e6004e1bee8a9 --20cf307ca5140c0e6004e1bee8a9 Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: quoted-printable Dear Wolfgang, Thank you very much. This is very helpful. One note is that to center the footer required \setupletterframe[foot][align=3Dmiddle] (NOT \setupletterlayer. Per http://wiki.contextgarden.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] \setuplettersection[signature][indenting=3Dno] (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] Thank you again. Best, Michael On Wed, Jul 17, 2013 at 4:08 PM, Wolfgang Schuster < schuster.wolfgang@gmail.com> wrote: > > Am 15.07.2013 um 18:34 schrieb Michael Ash : > > Dear all, > > (This is a repeat post. I apologize if that's rude, but I would appreciat= e > some assistance with the letter module or a pointer to documentation. > Thanks.) > > > I am using the letter module that came with context. A sample of a basi= c > letter is below; I have put in "dummy" for the logo and the signature, bu= t > these are working fine when I include the files. > > I have several questions: > > 1. to center the footer. > > You can use the align key but you have to use a valid value, e.g. middle. > > \setupletterlayer[foot][align=3Dmiddle] > > > 1. to lower the footer (closer to the bottom of the page) > > You can control the distance between the margins and the footer block wit= h > the x and y keys for \setupletterlayer. > > \setupletterlayer[foot][y=3D10pt] > > > 1. to delete the word "Date" above the date. > > There is no key for \setupletterstyle etc. to disable/enable the label bu= t > you can clear the label text. > > \setuplettertext[en][date=3D] > > > 1. to put the date *above *the recipient address (and how in general > do I adjust the vertical space here). > > Move the layer up with the \setupletterlayer command. > > \setupletterlayer[reference][y=3D4cm] > > > 1. to left-justify the date. > > When you want only the date in the reference line without the label use > alternative =93e=94 (you don=92t even have to clear the label because it = isn=92t > used). > > \setupletterlayer[reference][alternative=3De] > > \setupletter[reference=3D\currentdate] > > > 1. to control the foldmarks (for US-letter-size paper, omit, etc.) > > You can disable the marks with \setupletteroptions[marking=3Dno], the > position can be changed with \setupletterlayer[topmark][y=3D7cm] > and \setupletterlayer[topmark][y=3D14cm]. > > I have consulted http://wiki.contextgarden.net/Letter but there are many > things I don't understand. What is the meaning of "alternative=3Dexamp= le"; > > > With the alternative key you select one of the predefined or used defined > styles for the reference, footer etc. blocks. > > what is the option "preset=3D" in \setuplayer[foot] ? > > > When you want to change the origin for a layer from the top left margin t= o > the bottom left you have to change the value of the location and corner > keys. As there are few often used combination for the four corners Hans > predefined the with the \definelayerpreset command. These predefined setu= ps > can be loaded with the preset key which saves some typing. Below is a sho= rt > example where I set first the arguments myself and later use the predefin= ed > setups. > > \definelayer[test][width=3D\textwidth,height=3D\textheight] > > \starttext > > \setlayer[test][corner=3D{left,top},location=3D{right,bottom}]{LT 1} > > \setlayer[test][corner=3D{right,top},location=3D{left,bottom}]{RT 1} > > \setlayer[test][corner=3D{left,bottom},location=3D{right,top}]{LB 1} > > \setlayer[test][corner=3D{right,bottom},location=3D{left,top}]{RB 1} > > \flushlayer[test] > > \setlayer[test][preset=3Dlefttop]{LT 2} > > \setlayer[test][preset=3Drighttop]{RT 2} > > \setlayer[test][preset=3Dleftbottom]{LB 2} > > \setlayer[test][preset=3Drightbottom]{RB 2} > > \flushlayer[test] > > \stoptext > > > Also is there a better way to manage color? I \definecolor, \startcolor, > \stopcolor, but maybe there is a better way to indicate that certain > sections of the letter should be in a color. Thanks. > > > All block elements provide color and style keys which can be used to set > the font and color for them, e.g. > \setupletterlayer[foot][color=3Dblue,style=3Dsans]. > > Wolfgang > > --=20 Michael Ash, Chair, Department of Economics Professor of Economics and Public Policy University of Massachusetts Amherst Amherst, MA 01003 Email mash@econs.umass.edu Tel +1-413-545-2590 Twitter https://twitter.com/michaelaoash --20cf307ca5140c0e6004e1bee8a9 Content-Type: text/html; charset=windows-1252 Content-Transfer-Encoding: quoted-printable Dear Wolfgang,

Thank you very much. =A0This is very help= ful.

One note is that to center the footer require= d=A0

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

(NOT \setupletterlayer. =A0Per=A0http://wiki.contextgarden.net/Letter#Setup= )


A couple more questions.
(1) is there a more e= fficient way to indent only the content of the letter:

\setupindenting[yes,small]
\setuplettersection[opening][= indenting=3Dno]
\setuplettersection[subject][indenting=3Dno]
\setuplettersection[closing][indenting=3Dno]
\setupletterse= ction[signature][indenting=3Dno]


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

Thank you again.

Best,
Michael


On Wed, Jul 17, 2013 at 4:08 PM, Wolfga= ng Schuster <schuster.wolfgang@gmail.com> wrote:

Am 15.07.2013 um 18:34 schrieb Michael Ash <mash@econs.umass.edu>:

Dear all,

(This is a repeat post. I apologize if tha= t's rude, but I would appreciate some assistance with the letter module= or a pointer to documentation. Thanks.)


I am using the letter module that came with c= ontext. =A0 A sample of a basic letter is below; I have put in "dummy&= quot; for the logo and the signature, but these are working fine when I inc= lude the files.=A0

I have several questions:
  1. to center t= he footer. =A0
You can use the= align key but you have to use a valid value, e.g. middle.

\setupletterlayer[foot][align=3Dmiddle]
<= blockquote type=3D"cite">
    to lower the =A0footer (closer to the bottom of the page)
=
You can control the distance between the margins and the footer = block with the x and y keys for \setupletterlayer.

\setupletterlayer[foot][y=3D10pt]
  1. to delete the word &quo= t;Date" above the date.
T= here is no key for \setupletterstyle etc. to disable/enable the label but y= ou can clear the label text.

\setuplettertext[en][date=3D]
    to put the date=A0above the recipient address (and how in general do= I adjust the vertical space here).
Move the layer up with the \setupletterlayer command.

\setupletterlayer[reference][y=3D4cm]
  1. to left-justify the date.
When y= ou want only the date in the reference line without the label use alternati= ve =93e=94 (you don=92t even have to clear the label because it isn=92t use= d).

\setupletterlayer[reference][alternative=3De]

\setupletter[reference=3D\currentdate]
  1. to control the foldmarks (for US-letter-size paper, omit, etc.)
You can disable the marks with \se= tupletteroptions[marking=3Dno], the position can be changed with \setuplett= erlayer[topmark][y=3D7cm] and=A0\setupletterlayer[topmark][y=3D14cm].
=

I have consul= ted=A0ht= tp://wiki.contextgarden.net/Letter=A0but there are many things I don= 9;t understand. =A0 What is the meaning =A0of "alternative=3Dexample&q= uot;;

With the alternative key you s= elect one of the predefined or used defined styles for the reference, foote= r etc. blocks.

what is the option "preset=3D" =A0in \setuplayer[foot] ?

When you want to ch= ange the origin for a layer from the top left margin to the bottom left you= have to change the value of the location and corner keys. As there are =A0= few often used combination for the four corners Hans predefined the with th= e \definelayerpreset command. These predefined setups can be loaded with th= e preset key which saves some typing. Below is a short example where I set = first the arguments myself and later use the predefined setups.

\definelayer[test][width=3D\textwidth,height=3D\te= xtheight]

\starttext

\set= layer[test][corner=3D{left,top},location=3D{right,bottom}]{LT 1}
=
\setlayer[test][corner=3D{right,top},location=3D{left,bottom}]{R= T 1}

\setlayer[test][corner=3D{left,bottom},locati= on=3D{right,top}]{LB 1}

\setlayer[test][corner=3D{= right,bottom},location=3D{left,top}]{RB 1}

\flushlayer[test]

\setlayer[te= st][preset=3Dlefttop]{LT 2}

\setlayer[test][preset= =3Drighttop]{RT 2}

\setlayer[test][preset=3Dleftbo= ttom]{LB 2}

\setlayer[test][preset=3Drightbottom]{RB 2}
<= br>
\flushlayer[test]

\stoptext


Also is there a better way to manage color? =A0I \definecolor, \startc= olor, \stopcolor, but maybe there is a better way to indicate that certain = sections of the letter should be in a color. =A0Thanks.

All block elements provide color an= d style keys which can be used to set the font and color for them, e.g. \se= tupletterlayer[foot][color=3Dblue,style=3Dsans].

Wolfgang



--
Michael Ash, Chair, Department of = Economics
Professor=A0of Economics and Public Policy=A0 =A0 =A0 =A0=A0= =A0
University of Massachusetts Amherst
Amherst, MA 01003
Email=A0mash@econs.umass.edu
Tel +1-413-545-2590=A0Twitter=A0https://twitter= .com/michaelaoash
--20cf307ca5140c0e6004e1bee8a9-- --===============1447562953== 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 ___________________________________________________________________________________ --===============1447562953==--