]> git.lyx.org Git - lyx.git/blob - lib/examples/serial_letter1.lyx
7a6898cb22765c6d0d2103df99f4a4b435c97b01
[lyx.git] / lib / examples / serial_letter1.lyx
1 #LyX 1.6.0svn created this file. For more info see http://www.lyx.org/
2 \lyxformat 314
3 \begin_document
4 \begin_header
5 \textclass scrlttr2
6 \begin_preamble
7 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%
8 %% Here you can modify the layout of your letter
9 %% Have a look at the KOMA script documentation
10 %% for details. Most commands are commented out
11 %% here (i.e. we use default settings)
12 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%
13
14 %% Load an *.lco style file (see KOMA documentation)
15 \LoadLetterOption{DIN}%                          
16
17 %% THE CLASS OPTIONS
18 %% Remove preceeding '%' to uncomment an item
19 \KOMAoptions{%
20 %headsepline=true,%            separate the header with a line on page >1
21 %footsepline=true,%             separate the footer with a line on page >1
22 %pagenumber=botcenter,%   position of the page number (see docu)
23 %parskip=false,%          Use indent instead of skip (more options cf. docu)
24 fromalign=center,%        alignment of the address
25 fromrule=aftername,%    separate the address with a line?
26 fromphone=true,%         print sender phone number
27 %fromfax=true,%          print sender fax number
28 fromemail=true,%           print sender e-mail address
29 fromurl=true%               print sender URL
30 %fromlogo=true,%         print a logo (position depends on fromalign)
31 %addrfield=false,%        print an address field?
32 %backaddress=false,%  print the back address?
33 %subject=afteropening,titled,% alternative subject layout and position
34 %locfield=narrow,%      width of the (extra) location field
35 %foldmarks=false,%      print foldmarks?
36 %numericaldate=true,%  date layout
37 %refline=wide%             layout of the refline
38 }
39
40 %% Customize Separators
41 %\setkomavar{placeseparator}{ -- }
42 \setkomavar{backaddressseparator}{ $\cdot$ }
43 %\setkomavar{emailseparator}{ --> }
44 %\setkomavar{enclseparator}{ > }
45 %\setkomavar{faxseparator}{ --> }
46 %\setkomavar{phoneseparator}{ --> }
47 %\setkomavar{subjectseparator}{ >>> }
48
49 %% Customize fonts
50 %% Use LaTeX's standard font commands
51 %% Modify with \setkomafont or \addtokomafont
52 %% (see KOMA documentation)
53 \setkomafont{backaddress}{\rmfamily}
54 %\setkomafont{descriptionlabel}{}
55 \setkomafont{fromaddress}{\small}
56 \setkomafont{fromname}{\scshape}
57 %\setkomafont{pagefoot}{}
58 %\setkomafont{pagehead}{}
59 %\setkomafont{pagenumber}{}
60 %\setkomafont{subject}{}
61 %\setkomafont{title}{}
62 \end_preamble
63 \language english
64 \inputencoding auto
65 \font_roman palatino
66 \font_sans default
67 \font_typewriter default
68 \font_default_family default
69 \font_sc false
70 \font_osf false
71 \font_sf_scale 100
72 \font_tt_scale 100
73 \graphics default
74 \paperfontsize 11
75 \spacing other 1.15
76 \use_hyperref false
77 \papersize default
78 \use_geometry false
79 \use_amsmath 0
80 \use_esint 0
81 \cite_engine basic
82 \use_bibtopic false
83 \paperorientation portrait
84 \secnumdepth 3
85 \tocdepth 3
86 \paragraph_separation skip
87 \defskip medskip
88 \quotes_language german
89 \papercolumns 1
90 \papersides 1
91 \paperpagestyle default
92 \tracking_changes false
93 \output_changes false
94 \author "" 
95 \author "" 
96 \end_header
97
98 \begin_body
99
100 \begin_layout Name
101 The LyX Developers Team
102 \end_layout
103
104 \begin_layout SenderAddress
105 140 Map Road
106 \newline
107 SVN City
108 \end_layout
109
110 \begin_layout Telephone
111 0011/222\InsetSpace \thinspace{}
112 333
113 \end_layout
114
115 \begin_layout E-Mail
116 lyx-users@lists.lyx.org
117 \end_layout
118
119 \begin_layout URL
120 www.lyx.org
121 \end_layout
122
123 \begin_layout Backaddress
124 The LyX Developers Team
125 \newline
126 140 Map Road
127 \newline
128 SVN City
129 \end_layout
130
131 \begin_layout Signature
132 The LyX Team
133 \end_layout
134
135 \begin_layout Subject
136 New KOMA letter layout
137 \end_layout
138
139 \begin_layout Place
140 The Internet
141 \end_layout
142
143 \begin_layout Date
144 \begin_inset ERT
145 status collapsed
146
147 \begin_layout Standard
148
149
150 \backslash
151 today
152 \end_layout
153
154 \end_inset
155
156
157 \end_layout
158
159 \begin_layout Standard
160 \begin_inset ERT
161 status open
162
163 \begin_layout Standard
164
165
166 \backslash
167 renewcommand*{
168 \backslash
169 adrentry}[8]{
170 \end_layout
171
172 \end_inset
173
174
175 \end_layout
176
177 \begin_layout Address
178 \begin_inset ERT
179 status collapsed
180
181 \begin_layout Standard
182
183 #2 #1
184 \backslash
185
186 \backslash
187 #3
188 \end_layout
189
190 \end_inset
191
192
193 \end_layout
194
195 \begin_layout Opening
196 \begin_inset ERT
197 status open
198
199 \begin_layout Standard
200
201
202 \backslash
203 if #5m{Dear Mr.~#1,} 
204 \backslash
205 fi
206 \end_layout
207
208 \begin_layout Standard
209
210
211 \backslash
212 if #5w{Dear Mrs.~#1,} 
213 \backslash
214 fi
215 \end_layout
216
217 \end_inset
218
219
220 \end_layout
221
222 \begin_layout Standard
223 this example is a serial letter to 
224 \series bold
225 all persons
226 \series default
227  in an address database.
228  The design of address databases is described in the documentation listed
229  below.
230 \end_layout
231
232 \begin_layout Standard
233 This template illustrates the use of the new scrlttr2 class (introduced
234  with KOMA-script v.
235  2.9).
236  This letter class is very flexible.
237  Have a look at 
238 \family sans
239 Layout\SpecialChar \menuseparator
240 Document\SpecialChar \menuseparator
241 Preamble
242 \family default
243  for the most common parameters.
244  Please consult the KOMA Script documentation
245 \begin_inset Foot
246 status collapsed
247
248 \begin_layout Standard
249 http://www.ctan.org/tex-archive/macros/latex/contrib/supported/koma-script/scrguie
250 n.pdf
251 \end_layout
252
253 \end_inset
254
255  for a detailed description.
256 \end_layout
257
258 \begin_layout Closing
259 Have fun with it,
260 \end_layout
261
262 \begin_layout PS
263 p.\InsetSpace \thinspace{}
264 s.: The blue colored items have to be before the address, the magenta colored
265  after it.
266 \end_layout
267
268 \begin_layout CC
269 The LyX Users
270 \end_layout
271
272 \begin_layout EndLetter
273 \begin_inset Note Note
274 status collapsed
275
276 \begin_layout Standard
277 keep this environment empty
278 \end_layout
279
280 \end_inset
281
282
283 \end_layout
284
285 \begin_layout Standard
286 \begin_inset ERT
287 status open
288
289 \begin_layout Standard
290
291 }
292 \end_layout
293
294 \end_inset
295
296
297 \begin_inset Note Note
298 status collapsed
299
300 \begin_layout Standard
301 closes the above 
302 \series bold
303
304 \backslash
305 renewcommand*
306 \series default
307  command
308 \end_layout
309
310 \end_inset
311
312
313 \end_layout
314
315 \begin_layout Standard
316 \begin_inset CommandInset include
317 LatexCommand input
318 filename "addressExample.adr"
319
320 \end_inset
321
322
323 \end_layout
324
325 \end_body
326 \end_document