]> git.lyx.org Git - lyx.git/blob - lib/examples/serial_letter3.lyx
Whitespace cosmetics
[lyx.git] / lib / examples / serial_letter3.lyx
1 #LyX 2.3 created this file. For more info see http://www.lyx.org/
2 \lyxformat 544
3 \begin_document
4 \begin_header
5 \save_transient_properties true
6 \origin /systemlyxdir/examples/
7 \textclass scrlttr2
8 \begin_preamble
9 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%
10 %% Here you can modify the layout of your letter
11 %% Have a look at the KOMA script documentation
12 %% for details. Most commands are commented out
13 %% here (i.e. we use default settings)
14 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%
15
16 %% Load an *.lco style file (see KOMA documentation)
17 \LoadLetterOption{DIN}%                          
18
19 %% THE CLASS OPTIONS
20 %% Remove preceeding '%' to uncomment an item
21 \KOMAoptions{%
22 %headsepline=true,%            separate the header with a line on page >1
23 %footsepline=true,%             separate the footer with a line on page >1
24 %pagenumber=botcenter,%   position of the page number (see docu)
25 %parskip=false,%          Use indent instead of skip (more options cf. docu)
26 fromalign=center,%        alignment of the address
27 fromrule=aftername,%    separate the address with a line?
28 fromphone=true,%         print sender phone number
29 %fromfax=true,%          print sender fax number
30 fromemail=true,%           print sender e-mail address
31 fromurl=true%               print sender URL
32 %fromlogo=true,%         print a logo (position depends on fromalign)
33 %addrfield=false,%        print an address field?
34 %backaddress=false,%  print the back address?
35 %subject=afteropening,titled,% alternative subject layout and position
36 %locfield=narrow,%      width of the (extra) location field
37 %foldmarks=false,%      print foldmarks?
38 %numericaldate=true,%  date layout
39 %refline=wide%             layout of the refline
40 }
41
42 %% Customize Separators
43 %\setkomavar{placeseparator}{ -- }
44 \setkomavar{backaddressseparator}{ $\cdot$ }
45 %\setkomavar{emailseparator}{ --> }
46 %\setkomavar{enclseparator}{ > }
47 %\setkomavar{faxseparator}{ --> }
48 %\setkomavar{phoneseparator}{ --> }
49 %\setkomavar{subjectseparator}{ >>> }
50
51 %% Customize fonts
52 %% Use LaTeX's standard font commands
53 %% Modify with \setkomafont or \addtokomafont
54 %% (see KOMA documentation)
55 \setkomafont{backaddress}{\rmfamily}
56 %\setkomafont{descriptionlabel}{}
57 \setkomafont{fromaddress}{\small}
58 \setkomafont{fromname}{\scshape}
59 %\setkomafont{pagefoot}{}
60 %\setkomafont{pagehead}{}
61 %\setkomafont{pagenumber}{}
62 %\setkomafont{subject}{}
63 %\setkomafont{title}{}
64 \end_preamble
65 \use_default_options false
66 \maintain_unincluded_children false
67 \language english
68 \language_package default
69 \inputencoding auto
70 \fontencoding global
71 \font_roman "palatino" "default"
72 \font_sans "default" "default"
73 \font_typewriter "default" "default"
74 \font_math "auto" "auto"
75 \font_default_family default
76 \use_non_tex_fonts false
77 \font_sc false
78 \font_osf false
79 \font_sf_scale 100 100
80 \font_tt_scale 100 100
81 \use_microtype false
82 \use_dash_ligatures false
83 \graphics default
84 \default_output_format default
85 \output_sync 0
86 \bibtex_command default
87 \index_command default
88 \paperfontsize 11
89 \spacing other 1.15
90 \use_hyperref true
91 \pdf_bookmarks false
92 \pdf_bookmarksnumbered false
93 \pdf_bookmarksopen false
94 \pdf_bookmarksopenlevel 1
95 \pdf_breaklinks false
96 \pdf_pdfborder true
97 \pdf_colorlinks false
98 \pdf_backref false
99 \pdf_pdfusetitle false
100 \papersize default
101 \use_geometry false
102 \use_package amsmath 0
103 \use_package amssymb 0
104 \use_package cancel 0
105 \use_package esint 0
106 \use_package mathdots 1
107 \use_package mathtools 0
108 \use_package mhchem 1
109 \use_package stackrel 0
110 \use_package stmaryrd 0
111 \use_package undertilde 0
112 \cite_engine basic
113 \cite_engine_type default
114 \biblio_style plain
115 \use_bibtopic false
116 \use_indices false
117 \paperorientation portrait
118 \suppress_date false
119 \justification true
120 \use_refstyle 0
121 \index Index
122 \shortcut idx
123 \color #008000
124 \end_index
125 \secnumdepth 3
126 \tocdepth 3
127 \paragraph_separation skip
128 \defskip medskip
129 \is_math_indent 0
130 \math_numbering_side default
131 \quotes_style danish
132 \papercolumns 1
133 \papersides 1
134 \paperpagestyle default
135 \tracking_changes false
136 \output_changes false
137 \html_math_output 0
138 \html_css_as_file 0
139 \html_be_strict false
140 \use_minted 0
141 \end_header
142
143 \begin_body
144
145 \begin_layout Name
146 The \SpecialChar LyX
147  Developers Team
148 \end_layout
149
150 \begin_layout SenderAddress
151 140 Map Road
152 \begin_inset Newline newline
153 \end_inset
154
155 SVN City
156 \end_layout
157
158 \begin_layout Telephone
159 0011/222
160 \begin_inset space \thinspace{}
161 \end_inset
162
163 333
164 \end_layout
165
166 \begin_layout E-Mail
167 lyx-users@lists.lyx.org
168 \end_layout
169
170 \begin_layout URL
171 www.lyx.org
172 \end_layout
173
174 \begin_layout Backaddress
175 The \SpecialChar LyX
176  Developers Team
177 \begin_inset Newline newline
178 \end_inset
179
180 140 Map Road
181 \begin_inset Newline newline
182 \end_inset
183
184 SVN City
185 \end_layout
186
187 \begin_layout Signature
188 The \SpecialChar LyX
189  Team
190 \end_layout
191
192 \begin_layout Subject
193 New KOMA letter layout
194 \end_layout
195
196 \begin_layout Place
197 The Internet
198 \end_layout
199
200 \begin_layout Date
201 \begin_inset ERT
202 status collapsed
203
204 \begin_layout Plain Layout
205
206
207 \backslash
208 today
209 \end_layout
210
211 \end_inset
212
213
214 \end_layout
215
216 \begin_layout Standard
217 \begin_inset ERT
218 status open
219
220 \begin_layout Plain Layout
221
222
223 \backslash
224 renewcommand*{
225 \backslash
226 adrentry}[8]{
227 \end_layout
228
229 \end_inset
230
231
232 \end_layout
233
234 \begin_layout Standard
235 \begin_inset ERT
236 status open
237
238 \begin_layout Plain Layout
239
240
241 \backslash
242 if #5f
243 \end_layout
244
245 \end_inset
246
247
248 \begin_inset Note Note
249 status open
250
251 \begin_layout Plain Layout
252 condition for this letter: gender [#5] must be female [f]
253 \end_layout
254
255 \end_inset
256
257
258 \end_layout
259
260 \begin_layout Address
261 \begin_inset ERT
262 status open
263
264 \begin_layout Plain Layout
265
266 #2 #1
267 \backslash
268
269 \backslash
270
271 \end_layout
272
273 \begin_layout Plain Layout
274
275 #3
276 \end_layout
277
278 \end_inset
279
280
281 \end_layout
282
283 \begin_layout Opening
284 Dear Mrs.
285 \begin_inset space ~
286 \end_inset
287
288
289 \begin_inset ERT
290 status collapsed
291
292 \begin_layout Plain Layout
293
294 #1
295 \end_layout
296
297 \end_inset
298
299 ,
300 \end_layout
301
302 \begin_layout Standard
303 this example is a serial letter to 
304 \series bold
305 all female persons
306 \series default
307  in an address database.
308  The design of address databases is described in the documentation listed
309  below.
310 \end_layout
311
312 \begin_layout Standard
313 This template illustrates the use of the new scrlttr2 class (introduced
314  with KOMA-script v.
315  2.9).
316  This letter class is very flexible.
317  Have a look at 
318 \family sans
319 Layout\SpecialChar menuseparator
320 Document\SpecialChar menuseparator
321 Preamble
322 \family default
323  for the most common parameters.
324  Please consult the KOMA Script documentation
325 \begin_inset Foot
326 status collapsed
327
328 \begin_layout Plain Layout
329 \begin_inset CommandInset href
330 LatexCommand href
331 target "http://www.ctan.org/tex-archive/macros/latex/contrib/koma-script/doc/scrguien.pdf"
332 literal "false"
333
334 \end_inset
335
336
337 \end_layout
338
339 \end_inset
340
341  for a detailed description.
342 \end_layout
343
344 \begin_layout Closing
345 Have fun with it,
346 \end_layout
347
348 \begin_layout PS
349 p.
350 \begin_inset space \thinspace{}
351 \end_inset
352
353 s.: The blue colored items have to be before the address, the magenta colored
354  after it.
355 \end_layout
356
357 \begin_layout CC
358 The \SpecialChar LyX
359  Users
360 \end_layout
361
362 \begin_layout EndLetter
363 \begin_inset Note Note
364 status collapsed
365
366 \begin_layout Plain Layout
367 keep this environment empty
368 \end_layout
369
370 \end_inset
371
372
373 \end_layout
374
375 \begin_layout Standard
376 \begin_inset ERT
377 status open
378
379 \begin_layout Plain Layout
380
381
382 \backslash
383 fi
384 \end_layout
385
386 \end_inset
387
388
389 \begin_inset Note Note
390 status collapsed
391
392 \begin_layout Plain Layout
393 Schließt obigen 
394 \series bold
395
396 \backslash
397 if
398 \series default
399  Befehl ab.
400 \end_layout
401
402 \end_inset
403
404
405 \end_layout
406
407 \begin_layout Standard
408 \begin_inset ERT
409 status open
410
411 \begin_layout Plain Layout
412
413 }
414 \end_layout
415
416 \end_inset
417
418
419 \begin_inset Note Note
420 status collapsed
421
422 \begin_layout Plain Layout
423 Schließt obigen 
424 \series bold
425
426 \backslash
427 renewcommand*
428 \series default
429  Befehl ab.
430 \end_layout
431
432 \end_inset
433
434
435 \end_layout
436
437 \begin_layout Standard
438 \begin_inset CommandInset include
439 LatexCommand input
440 filename "addressExample.adr"
441
442 \end_inset
443
444
445 \end_layout
446
447 \end_body
448 \end_document