summaryrefslogtreecommitdiff
path: root/macros/text1/models/mergelet.texmodel
blob: de4e4fa4b2d3025f1b40054e7af66a13326f84fd (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
73
74
75
76
77
% Sample Letter for Merge File Model
%
% TEXT1 Letterhead description, change to suit your letter
%
%
\begingroup
\paragraphskip{0pt}
\centerline{{\titlefont Washington State University}}
\vs{4pt}\hrule\vs{4pt}
\centerline{{\twelvept\bd Academic Computing Service}}
\vs{-2pt}
\centerline{{\tenpt Pullman, Washington 99164-1220\lbr 509/335-0411}}
\vs{1\bl} %   number of blank lines inserted
\endgroup
\vs{\bl}
\tenpt
\nin{\today}
\vs{\bl}
\asisbegin
\noemptyspace\title\ \firstname\ \lastname
\noemptyspace\company
\address
\city, \state\ \zipcode
\phone
 
Dear \firstname:
 
\asisend
This letter is a sample for the merge file facility of \text1. Ten
data fields were created with DBASE~III on a PC and transferred to
CMS. The fields were delimited with double quotations marks
({\tt "}) and a comma placed between data fields by DBASE. Any data
base program that allows data fields to be delimited with quotation
marks could be used. A data file may also be created
directly on CMS by entering the data in the following manner:\lbr
\hs{2in}{\tt "}field one{\tt "},{\tt "}field two{\tt "},\ellipsis3,{\tt
"}last field{\tt "}\lbr
or written as \lbr
\hs{2in}{\tt "}field one{\tt ""}field two{\tt "\ellipsis3\ "}last
field{\tt "}\lbr
the commas between data fields are optional.
 
Quotation marks must be placed on either side of each field
(delimit the field) and the {\it each data field must come in the same
sequence as the data names specified in the {\tt \\fieldnames} markup}.
{\bd No \it field may be omitted}, however, a field may be empty
({\it i.e.}, {\tt "}first field{\tt ","","}third field{\tt "}
\ellipsis3 ).
 
The data markup (field names immediately preceded by a {\tt \\} )
may be used to place text anywhere in the letter, but
each field should be followed by a control space markup (\\ \ , a
backslash followed by a blank space) or \text1
will drop the space after the field. For example, the \\firstname\\
\\lastname and \\amount markup have been used to add the
recipients name and a dollar amount in the following line.
 
\cl{The \firstname\ \lastname\ account has been charged \amount\  for
printing services.}
 
The {\tt \\noemptyspace} markup may be used to prevent a blank line
if an address line is empty. Place the data field markup between the
{\tt \\noemptyspace} markup and the linebreak ({\tt \\lbr}) markup
({\it i.e.}, {\tt \\noemptyspace\\company\\lbr} would prevent a blank
line if the company data field were empty). The {\tt\\noemptyspace}
markup prevents an extra space after an empty data field. Place
it in the following manner: {\tt \\noemptyspace\\title\\
\\firstname\\ \\lastname\\lbr} The {\tt \\noemptyspace} markup will
remove the following control space ({\tt \\ }) or control line break
({\tt \\lbr}) if the specified data field
is empty.
\vs{\bl}
\noindent
Sincerely yours,
\vs{3\bl}
\noindent
John Doe