ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Some questions about the letter module
@ 2013-07-12 14:11 Michael Ash
  2013-07-12 14:26 ` Michael Ash
  2013-07-15 16:34 ` Michael Ash
  0 siblings, 2 replies; 8+ messages in thread
From: Michael Ash @ 2013-07-12 14:11 UTC (permalink / raw)
  To: ntg-context


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

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

[-- Attachment #1.2: Type: text/html, Size: 4705 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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: Some questions about the letter module
  2013-07-12 14:11 Some questions about the letter module Michael Ash
@ 2013-07-12 14:26 ` Michael Ash
  2013-07-12 16:44   ` Hans Hagen
  2013-07-15 16:34 ` Michael Ash
  1 sibling, 1 reply; 8+ messages in thread
From: Michael Ash @ 2013-07-12 14:26 UTC (permalink / raw)
  To: ntg-context


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

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: Some questions about the letter module
  2013-07-12 14:26 ` Michael Ash
@ 2013-07-12 16:44   ` Hans Hagen
  0 siblings, 0 replies; 8+ messages in thread
From: Hans Hagen @ 2013-07-12 16:44 UTC (permalink / raw)
  To: ntg-context

On 7/12/2013 4:26 PM, Michael Ash wrote:
> 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.

afaik it has to be done on a finished document (postprocessing) so best 
if to call a program like qpdf afterwards or so

-----------------------------------------------------------------
                                           Hans Hagen | PRAGMA ADE
               Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
     tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
                                              | www.pragma-pod.nl
-----------------------------------------------------------------
___________________________________________________________________________________
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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 8+ messages in thread

* Some questions about the letter module
  2013-07-12 14:11 Some questions about the letter module Michael Ash
  2013-07-12 14:26 ` Michael Ash
@ 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>
  1 sibling, 2 replies; 8+ messages in thread
From: Michael Ash @ 2013-07-15 16:34 UTC (permalink / raw)
  To: ntg-context


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

Dear all,

(This is a repeat post. I apologize if that'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 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

[-- Attachment #1.2: Type: text/html, Size: 5166 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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: Some questions about the letter module
  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>
  1 sibling, 0 replies; 8+ messages in thread
From: Wolfgang Schuster @ 2013-07-17 20:08 UTC (permalink / raw)
  To: mailing list for ConTeXt users; +Cc: Michael Ash


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


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

> Dear all,
> 
> (This is a repeat post. I apologize if that'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 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:
> to center the footer.  
You can use the align key but you have to use a valid value, e.g. middle.

\setupletterlayer[foot][align=middle]
> to lower the  footer (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=10pt]
> to delete the word "Date" above the date.
There is no key for \setupletterstyle etc. to disable/enable the label but you can clear the label text.

\setuplettertext[en][date=]
> 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=4cm]
> to left-justify the date.
When you want only the date in the reference line without the label use alternative “e” (you don’t even have to clear the label because it isn’t used).

\setupletterlayer[reference][alternative=e]

\setupletter[reference=\currentdate]
> to control the foldmarks (for US-letter-size paper, omit, etc.)
You can disable the marks with \setupletteroptions[marking=no], the position can be changed with \setupletterlayer[topmark][y=7cm] and \setupletterlayer[topmark][y=14cm].

> I have consulted http://wiki.contextgarden.net/Letter but there are many things I don't understand.   What is the meaning  of "alternative=example";

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="  in \setuplayer[foot] ?

When you want to change 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  few often used combination for the four corners Hans predefined the with the \definelayerpreset command. These predefined setups can be loaded with the 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=\textwidth,height=\textheight]

\starttext

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

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

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

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

\flushlayer[test]

\setlayer[test][preset=lefttop]{LT 2}

\setlayer[test][preset=righttop]{RT 2}

\setlayer[test][preset=leftbottom]{LB 2}

\setlayer[test][preset=rightbottom]{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=blue,style=sans].

Wolfgang


[-- Attachment #1.2: Type: text/html, Size: 5451 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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: Some questions about the letter module
       [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
  0 siblings, 2 replies; 8+ messages in thread
From: Michael Ash @ 2013-07-18  1:12 UTC (permalink / raw)
  To: ntg-context


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

Dear Wolfgang,

Thank you very much.  This is very helpful.

One note is that to center the footer required

\setupletterframe[foot][align=middle]

(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=no]
\setuplettersection[subject][indenting=no]
\setuplettersection[closing][indenting=no]
\setuplettersection[signature][indenting=no]


(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=e]

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 <mash@econs.umass.edu>:
>
> Dear all,
>
> (This is a repeat post. I apologize if that'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 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.
>
> You can use the align key but you have to use a valid value, e.g. middle.
>
> \setupletterlayer[foot][align=middle]
>
>
>    1. to lower the  footer (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=10pt]
>
>
>    1. to delete the word "Date" above the date.
>
> There is no key for \setupletterstyle etc. to disable/enable the label but
> you can clear the label text.
>
> \setuplettertext[en][date=]
>
>
>    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=4cm]
>
>
>    1. to left-justify the date.
>
> When you want only the date in the reference line without the label use
> alternative “e” (you don’t even have to clear the label because it isn’t
> used).
>
> \setupletterlayer[reference][alternative=e]
>
> \setupletter[reference=\currentdate]
>
>
>    1. to control the foldmarks (for US-letter-size paper, omit, etc.)
>
> You can disable the marks with \setupletteroptions[marking=no], the
> position can be changed with \setupletterlayer[topmark][y=7cm]
> and \setupletterlayer[topmark][y=14cm].
>
> I have consulted http://wiki.contextgarden.net/Letter but there are many
> things I don't understand.   What is the meaning  of "alternative=example";
>
>
> 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="  in \setuplayer[foot] ?
>
>
> When you want to change 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  few often used combination for the four corners Hans
> predefined the with the \definelayerpreset command. These predefined setups
> can be loaded with the 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=\textwidth,height=\textheight]
>
> \starttext
>
> \setlayer[test][corner={left,top},location={right,bottom}]{LT 1}
>
> \setlayer[test][corner={right,top},location={left,bottom}]{RT 1}
>
> \setlayer[test][corner={left,bottom},location={right,top}]{LB 1}
>
> \setlayer[test][corner={right,bottom},location={left,top}]{RB 1}
>
> \flushlayer[test]
>
> \setlayer[test][preset=lefttop]{LT 2}
>
> \setlayer[test][preset=righttop]{RT 2}
>
> \setlayer[test][preset=leftbottom]{LB 2}
>
> \setlayer[test][preset=rightbottom]{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=blue,style=sans].
>
> Wolfgang
>
>


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

[-- Attachment #1.2: Type: text/html, Size: 7434 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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: Some questions about the letter module
  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
  1 sibling, 0 replies; 8+ messages in thread
From: Wolfgang Schuster @ 2013-07-18 12:57 UTC (permalink / raw)
  To: mailing list for ConTeXt users


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


Am 18.07.2013 um 03:12 schrieb Michael Ash <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=middle]

Of course, the alignment is a framed feature.

> (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=no]
> \setuplettersection[subject][indenting=no]
> \setuplettersection[closing][indenting=no]
> \setuplettersection[signature][indenting=no]

You can use \setupletteroptions[indenting=…] 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=e]

This should be alternative c and not e.


\usemodule[letter]

\setupletterlayer[reference][alternative=c]

%\setupletterlayer[reference][alternative=c,list=reference] % default: list=date
%\setupletter[reference=\currentdate]

\setupletteroptions[indenting={yes,medium,next}]

\startletter
\input knuth
\stopletter


Wolfgang


[-- Attachment #1.2: Type: text/html, Size: 2274 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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: Can this layout be done in Context?
  2013-07-18  1:12     ` Michael Ash
  2013-07-18 12:57       ` Wolfgang Schuster
@ 2013-07-19  0:06       ` Russell Urquhart
  1 sibling, 0 replies; 8+ messages in thread
From: Russell Urquhart @ 2013-07-19  0:06 UTC (permalink / raw)
  To: mailing list for ConTeXt users

[-- Attachment #1: Type: text/plain, Size: 250 bytes --]



Hi,

I've attached a page from a ZOndervan NIV bible. I love the layout of this and was wondering if the Context experts out there could tell me if a similar layout could be done in Context.

(For when i want to write my Bible!) :)

thanks,


Russ

[-- Attachment #2: 639863_6_sam_2.jpg --]
[-- Type: image/jpeg, Size: 89453 bytes --]

[-- Attachment #3: 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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2013-07-19  0:06 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-07-12 14:11 Some questions about the letter module Michael Ash
2013-07-12 14:26 ` Michael Ash
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

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).