summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/context/third/letter/style/memo.nls
blob: ce68d3b56c933774ce91674f72f8d2e88f4131d5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
%D \module
%D   [       file=memo,
%D        version=2009.09.21,
%D          title=\CONTEXT\ Letter Style,
%D       subtitle=Memo style,
%D         author=Wolfgang Schuster,
%D           date=\currentdate,
%D      copyright=Wolfgang Schuster,
%D          email=schuster.wolfgang@googlemail.com,
%D        license=Public Domain]

\unprotect

\useletterstyle[blockstyle]

\def\letter!order!sections
  {\v!date\v!line,\v!reference\v!line,\v!inside\v!address,
   \v!letter\v!head,\v!special\v!notation,\v!title,
   \v!opening,\v!subject,\v!content,\v!closing,\v!appendices}

\setupletterstyle
  [\v!letter\v!head,\v!reference\v!line,
   \v!special\v!notation,\v!inside\v!address,
   \v!title,\v!subject]
  [\c!before={\blank[\v!nowhite]},
   \c!after={\blank[\v!nowhite]}]

\setupletterstyle
  [\v!subject,\v!content,\v!closing]
  [\c!after={\blank[\v!line]}]

\setupletterstyle
  [\v!closing]
  [\c!leftmargin=.5\textwidth]

\setupletterstyle
  [\v!firstpage,\v!secondpage]
  [\c!backspace=1in,
   \c!width=\v!middle,
   \c!topspace=1in,
   \c!header=0in,
   \c!footer=0in,
   \c!height=\v!fit]

\setupletterstyle
  [\v!option]
  [\c!whitespace=\v!line,
   \c!opening=\v!no,
   \c!reference\c!line=\v!no,
   \v!special\v!notation=\v!no,
   \c!title=\v!no]

\startsetups[\v!letter:\v!date\v!line]
\labeltext{\v!memo:\c!date}\lettervalue\c!date
\stopsetups

\startsetups[\v!letter:\v!letter\v!head]
\let\\\crlf
\labeltext{\v!memo:\c!fromname}\lettervalue\c!fromname
\stopsetups

\startsetups[\v!letter:\v!inside\v!address]
\let\\\crlf
\labeltext{\v!memo:\c!toname}\lettervalue\c!toname
\stopsetups

\startsetups[\v!letter:subject]
\let\\\crlf
\labeltext{\v!memo:\c!subject}\lettervalue\c!subject
\stopsetups

\protect \endinput