From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/83583 Path: news.gmane.org!not-for-mail From: Michael Ash Newsgroups: gmane.comp.tex.context Subject: Left-justifying the date in the letter module Date: Tue, 30 Jul 2013 21:32:13 -0400 Message-ID: Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0864413708==" X-Trace: ger.gmane.org 1375234370 3564 80.91.229.3 (31 Jul 2013 01:32:50 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 31 Jul 2013 01:32:50 +0000 (UTC) To: ntg-context@ntg.nl Original-X-From: ntg-context-bounces@ntg.nl Wed Jul 31 03:32:53 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 1V4LHX-0000FA-CW for gctc-ntg-context-518@m.gmane.org; Wed, 31 Jul 2013 03:32:51 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 4DB91101E9; Wed, 31 Jul 2013 03:32:21 +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 4ZGlBJALXObp; Wed, 31 Jul 2013 03:32:19 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id 91E06101E5; Wed, 31 Jul 2013 03:32:19 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 6858A101E5 for ; Wed, 31 Jul 2013 03:32:17 +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 6AgTPsgXTbej for ; Wed, 31 Jul 2013 03:32:07 +0200 (CEST) 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 5DE83101E4 for ; Wed, 31 Jul 2013 03:32:07 +0200 (CEST) Original-Received: from mailhub2.oit.umass.edu (mailhub2.oit.umass.edu [128.119.103.54]) by filter3-ams.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id r6V1WYvG032189 for ; Wed, 31 Jul 2013 03:32:35 +0200 Original-Received: from mailhub2.oit.umass.edu (localhost [127.0.0.1]) by localhost (Postfix) with SMTP id B5AED479BE5 for ; Tue, 30 Jul 2013 21:32:33 -0400 (EDT) Original-Received: from mail-ve0-f178.google.com (mail-ve0-f178.google.com [209.85.128.178]) (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 8BEDC47885C for ; Tue, 30 Jul 2013 21:32:33 -0400 (EDT) Original-Received: by mail-ve0-f178.google.com with SMTP id ox1so122638veb.37 for ; Tue, 30 Jul 2013 18:32:33 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:from:date:message-id:subject:to:content-type; bh=FVuxQc2DzDP3uboTOcwQda+10WU8saZyH/cJcRO5inc=; b=QZM4Dhlv/k9VhguOyBUA0LEQh071R7dAeEzsPQMIjvd/W6yBrG6gG0wMlV6rer6nmP 4gaAPLlSfrU5x9GcS9izk3Lfu5WPFy8F/5I/PM99ET9IHYC4E7Dr6F0w4CLrpaWDd+3I Qp1p869RmYRh2PNFDw3UgvXlAN+5bHfd8dzteqKtbiqya88AnYos9QVo2t7EQnUhGYX+ K9OWo+jqMuR3G2vpv77xWBoQ0CSPck/yLknpz/wT+U3HgJNbbjZAGV9Pf+D9x8B7e5Bc 0jsaoZs8AjKwV5Rg4MeXCj8MMjlFPPlJrI8r+AJt5uwPWKURd5EqDaznvUhyYEtCJOlq r2Wg== X-Received: by 10.52.155.1 with SMTP id vs1mr16777417vdb.94.1375234353147; Tue, 30 Jul 2013 18:32:33 -0700 (PDT) Original-Received: by 10.52.185.102 with HTTP; Tue, 30 Jul 2013 18:32:13 -0700 (PDT) X-PMX-Version: 6.0.3.2322014, Antispam-Engine: 2.7.2.2107409, Antispam-Data: 2013.7.31.12118 X-PMX-Spam: Gauge=IIIIIIII, Probability=8%, Report=' HTML_NO_HTTP 0.1, BODYTEXTH_SIZE_10000_LESS 0, BODYTEXTP_SIZE_3000_LESS 0, BODY_SIZE_2000_2999 0, BODY_SIZE_5000_LESS 0, BODY_SIZE_7000_LESS 0, CTYPE_MULTIPART_NO_QUOTE 0, DATE_TZ_NA 0, NO_URI_FOUND 0, WEBMAIL_SOURCE 0, __CT 0, __CTYPE_HAS_BOUNDARY 0, __CTYPE_MULTIPART 0, __CTYPE_MULTIPART_ALT 0, __HAS_FROM 0, __HAS_HTML 0, __HAS_MSGID 0, __HELO_GMAIL 0, __MIME_HTML 0, __MIME_VERSION 0, __PHISH_SPEAR_HTTP_RECEIVED 0, __RDNS_GMAIL 0, __SANE_MSGID 0, __SUBJ_ALPHA_END 0, __TO_MALFORMED_2 0, __TO_NO_NAME 0, __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: 03K6NwyuQ - 5f7600508137 - 20130731 (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:83583 Archived-At: --===============0864413708== Content-Type: multipart/alternative; boundary=089e0160caac1a36ab04e2c4b300 --089e0160caac1a36ab04e2c4b300 Content-Type: text/plain; charset=ISO-8859-1 I am still having a problem with left-justifying the date in letters. The date is towards the left but is aligned several mm to the right of the other text. \usemodule[letter] %% Omit the word "Date", attempt to left-justify date (doesn't align perfectly) \setupletterlayer[reference][alternative=c] \defineletterelement[layer][address][example]{\correspondenceparameter{toname}\par} \setupletterlayer[address][alternative=example] \starttext \startletter[ toname={The Addressee}, opening={Dear Addressee:}, closing={Best regards,}, signature={I.M. Sender}] \input knuth \stopletter \stoptext BTW are the values for the "alternative" key ("example", "e", "c", etc.) documented somewhere? Thank you again. Best, Michael --089e0160caac1a36ab04e2c4b300 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
I am still h= aving a problem with left-justifying the date in letters. =A0The date is to= wards the left but is aligned several mm to the right of the other text.


\usemodule[letter]

%% Omit the word "Date", attempt to left-justify date (d= oesn't align perfectly)
\setupletterlayer[reference][alternat= ive=3Dc]

\defineletterelement[layer][address][example]{\correspo= ndenceparameter{toname}\par}
\setupletterlayer[address][alternati= ve=3Dexample]
=A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0= =A0 =A0 =A0 =A0 =A0 =A0
\starttext
\startletter[
=A0 toname=3D{The Addressee},
=A0 op= ening=3D{Dear Addressee:},
=A0 closing=3D{Best regards,},
=A0 signature=3D{I.M. Sender}]

=A0 \input knuth=

\stopletter
\stoptext

<= br>


BTW are the values for the &quo= t;alternative" key ("example", "e", "c",= etc.) documented somewhere?

Thank you again.

Best,
Michael

=A0
--089e0160caac1a36ab04e2c4b300-- --===============0864413708== 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 ___________________________________________________________________________________ --===============0864413708==--