blob: 3234b7ebc7e24b4bc04c13ac30d46c266d9ad57b (
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
|
%D \module
%D [ file=knuth,
%D version=2008.11.29,
%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
\getbuffer[address]
\stopsetups
\startsetups[\v!letter:\v!content]
\getbuffer[body]
\stopsetups
\startsetups[\v!letter:\v!closing]
\leftskip=4in
\obeylines
\def\par{\normalpar\vskip1cm\let\par\normalpar}
\getbuffer[closing]
\stopsetups
\protect \endinput
|