blob: a4b4b17c85b4304f218e104098425b26f22a2324 (
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
|
%D \module
%D [ file=knuth,
%D version=2009.01.23,
%D title=\CONTEXT\ Letter Interface,
%D subtitle=Lettformat Interface, % Donald Knuth's own letter format
%D author=Wolfgang Schuster,
%D date=\currentdate,
%D copyright=Wolfgang Schuster,
%D email=schuster.wolfgang@googlemail.com,
%D license=Public Domain]
\unprotect
\useletterstyle[knuth]
\def\address
{\dostartbuffer[address][address][body]}
\def\body
{\dostartbuffer[body][body][closing]}
\def\closing
{\def\endletter{\setups[\v!letter:\v!place]}%
\dostartbuffer[closing][closing][endletter]}
\def\annotations
{\blank[\v!line]\leftskip=0pt}
\def\ps
{\let\par\space
\blank[\v!medium]\leftskip=0pt}
\startsetups[\v!letter:\v!reference]
\stopsetups
\startsetups[\v!letter:\v!opening]
\obeylines
\def\par{\letterstylevalue\v!opening\c!separator}
\getbuffer[address]
\stopsetups
\startsetups[\v!letter:\v!content]
\getbuffer[body]
\stopsetups
\startsetups[\v!letter:\v!closing]
\leftskip=4in
\obeylines
\def\par{\normalpar\vskip1cm\def\par{\normalpar\nowhitespace}}
\getbuffer[closing]
\stopsetups
\startsetups[\v!letter:\v!nexthead]
\getvalue{\v!letter:\v!nexthead:\v!knuth}
\stopsetups
\protect \endinput
|