ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Michael Ash <mash@econs.umass.edu>
To: ntg-context@ntg.nl
Subject: Re: Some questions about the letter module
Date: Fri, 12 Jul 2013 10:26:22 -0400	[thread overview]
Message-ID: <CAKTWfUNVhnfgjkCyJkXcyX50KJ+kuiWTSO03zxpT9YrTUaZeBg@mail.gmail.com> (raw)
In-Reply-To: <CAKTWfUNsmHAeC_APXw6=rUKtz_6Mj7Rgri49YaVQmjaTUjFZjA@mail.gmail.com>


[-- Attachment #1.1: Type: text/plain, Size: 4182 bytes --]

PS Would it be feasible to add a PDF-certificate-signer so that ConTeXt
prompts for a passphrase and produces a signed PDF?  This would be
particularly useful in the letter module but would in fact be welcome
throughout.

I have been using http://portablesigner.sourceforge.net/ to sign finished
PDF files, but it would be neat to have the process integrated in ConTeXt.

Best,
Michael


On Fri, Jul 12, 2013 at 10:11 AM, Michael Ash <mash@econs.umass.edu> wrote:

> Dear all,
>
> I am using the letter module that came with context.   A sample of a basic
> letter is below; I have put in "dummy" for the logo and the signature, but
> these are working fine when I include the files.
>
> I have several questions:
>
>    1. to center the footer.
>    2. to lower the  footer (closer to the bottom of the page)
>    3. to delete the word "Date" above the date.
>    4. to put the date *above *the recipient address (and how in general
>    do I adjust the vertical space here).
>    5. to left-justify the date.
>    6. to control the foldmarks (for US-letter-size paper, omit, etc.)
>
> I have consulted http://wiki.contextgarden.net/Letter but there are many
> things I don't understand.   What is the meaning  of "alternative=example";
> what is the option "preset="  in \setuplayer[foot] ?
>
> 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.
>
> Thank you very much for your guidance.
>
> Yours,
> Michael
>
>
>
>
>
>
>
>
> \usemodule[letter]
> \setuppapersize[letter][letter]
> \definecolor[maroon][h=990033]
>
> \setuplanguage [en] [date={dd, month, year}]
>
> \setupletteroptions
> [language=english,
> bodyfont={rm,12pt},
> ]
>
> % Define logo for the first page
> \defineletterelement[layer][head][example]%
> {\framed[background=logohead,height=25mm,frame=off,align=left]%
> {\externalfigure[dummy]}}
>
> % We put our logo in the head
> \setupletterlayer[head]
> [alternative=example,
> x=9mm,
> y=10mm
> ]
>
> \defineletterelement[layer][foot][example]%
>                     {\startcolor[maroon] \ss  \tfx The University of
> Massachusetts is an Affirmative Action/Equal Opportunity Institution.
> \stopcolor}
>    \setupletterlayer[foot][
>      align=centerbottom,
>      alternative=example]
>
> \setupletter[
> name={Michael Ash},
> dept={Department of Economics},
> building={Thompson Hall},
> street={200 Hicks Way},
> city={Amherst, MA 01003-9277},
> phone={+1-413-545-2590},
> fax={+1-413-545-2921},
> email={mash@econs.umass.edu}
> ]
>
>    \defineletterelement[layer][location][example]%
>        {\setuptabulate[bodyfont=normal]
>          \startcolor[maroon]
>        \starttabulate[|lw(.4\textwidth)|rw(.55\textwidth)|]
>        \NC \tfa \sc University of Massachusetts       \NC
>                 \NR
>        \NC \tfa \sc Amherst                           \NC
>  \correspondenceparameter{dept} \NR
>        \NC                                   \NC
>       \NR
>        \NC\correspondenceparameter{building} \NC  tel
> \correspondenceparameter{phone} \NR
>        \NC\correspondenceparameter{street} \NC fax
> \correspondenceparameter{fax}\NC\NR
>        \NC\correspondenceparameter{city} \NC
> \correspondenceparameter{email} \NC\NR
>    \stoptabulate
>  \stopcolor}
>
>  \setupletterlayer[location]
>  [alternative=example,
>  x=42mm,
>  y=4mm
>  ]
>
>
> \starttext
>
>    \startletter[
>        toname={Professor Addressee},
>        toaddress={123 West Home Ave.\\Chicago, IL 60614},
>        opening={Dear Dr. Addressee,},
>        subject={A test letter},
>        closing={Best regards,},
>        signature={\externalfigure[dummy]\\Michael Ash}
>        ]
>
>
>      Thank you very much for the invitation I am truly honored by the
>      opportunity and delighted to attend. I look forward to meeting
>      you.  Thank you again for the invitation.
>
>
>    \stopletter
>
> \stoptext
>



-- 
Michael Ash, Chair, Department of Economics
Professor of Economics and Public Policy
University of Massachusetts
Amherst, MA 01003
Email mash@econs.umass.edu
Tel +1-413-545-2590 Twitter @michaelaoash

[-- Attachment #1.2: Type: text/html, Size: 6124 bytes --]

[-- Attachment #2: Type: text/plain, Size: 485 bytes --]

___________________________________________________________________________________
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
___________________________________________________________________________________

  reply	other threads:[~2013-07-12 14:26 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-07-12 14:11 Michael Ash
2013-07-12 14:26 ` Michael Ash [this message]
2013-07-12 16:44   ` Hans Hagen
2013-07-15 16:34 ` Michael Ash
2013-07-17 20:08   ` Wolfgang Schuster
     [not found]   ` <23497_1374091731_51E6F9D3_23497_15321_1_0395100E-71DC-4F57-BBDF-EC0CA5E119EE@gmail.com>
2013-07-18  1:12     ` Michael Ash
2013-07-18 12:57       ` Wolfgang Schuster
2013-07-19  0:06       ` Can this layout be done in Context? Russell Urquhart

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CAKTWfUNVhnfgjkCyJkXcyX50KJ+kuiWTSO03zxpT9YrTUaZeBg@mail.gmail.com \
    --to=mash@econs.umass.edu \
    --cc=ntg-context@ntg.nl \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).