]> git.lyx.org Git - lyx.git/blob - lib/examples/serial_letter3.lyx
seminar.lyx: backport Günter's recent fixes
[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 1
103 \use_package amssymb 1
104 \use_package cancel 1
105 \use_package esint 1
106 \use_package mathdots 1
107 \use_package mathtools 1
108 \use_package mhchem 1
109 \use_package stackrel 1
110 \use_package stmaryrd 1
111 \use_package undertilde 1
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 \use_minted 0
122 \index Index
123 \shortcut idx
124 \color #008000
125 \end_index
126 \secnumdepth 3
127 \tocdepth 3
128 \paragraph_separation skip
129 \defskip medskip
130 \is_math_indent 0
131 \math_numbering_side default
132 \quotes_style danish
133 \dynamic_quotes 0
134 \papercolumns 1
135 \papersides 1
136 \paperpagestyle default
137 \tracking_changes false
138 \output_changes false
139 \html_math_output 0
140 \html_css_as_file 0
141 \html_be_strict false
142 \end_header
143
144 \begin_body
145
146 \begin_layout Name
147 The \SpecialChar LyX
148  Developers Team
149 \end_layout
150
151 \begin_layout SenderAddress
152 140 Map Road
153 \begin_inset Newline newline
154 \end_inset
155
156 SVN City
157 \end_layout
158
159 \begin_layout Telephone
160 0011/222
161 \begin_inset space \thinspace{}
162 \end_inset
163
164 333
165 \end_layout
166
167 \begin_layout E-Mail
168 lyx-users@lists.lyx.org
169 \end_layout
170
171 \begin_layout URL
172 www.lyx.org
173 \end_layout
174
175 \begin_layout Backaddress
176 The \SpecialChar LyX
177  Developers Team
178 \begin_inset Newline newline
179 \end_inset
180
181 140 Map Road
182 \begin_inset Newline newline
183 \end_inset
184
185 SVN City
186 \end_layout
187
188 \begin_layout Signature
189 The \SpecialChar LyX
190  Team
191 \end_layout
192
193 \begin_layout Subject
194 New KOMA letter layout
195 \end_layout
196
197 \begin_layout Place
198 The Internet
199 \end_layout
200
201 \begin_layout Date
202 \begin_inset ERT
203 status collapsed
204
205 \begin_layout Plain Layout
206
207
208 \backslash
209 today
210 \end_layout
211
212 \end_inset
213
214
215 \end_layout
216
217 \begin_layout Standard
218 \begin_inset ERT
219 status open
220
221 \begin_layout Plain Layout
222
223
224 \backslash
225 renewcommand*{
226 \backslash
227 adrentry}[8]{
228 \end_layout
229
230 \end_inset
231
232
233 \end_layout
234
235 \begin_layout Standard
236 \begin_inset ERT
237 status open
238
239 \begin_layout Plain Layout
240
241
242 \backslash
243 if #5f
244 \end_layout
245
246 \end_inset
247
248
249 \begin_inset Note Note
250 status open
251
252 \begin_layout Plain Layout
253 condition for this letter: gender [#5] must be female [f]
254 \end_layout
255
256 \end_inset
257
258
259 \end_layout
260
261 \begin_layout Address
262 \begin_inset ERT
263 status open
264
265 \begin_layout Plain Layout
266
267 #2 #1
268 \backslash
269
270 \backslash
271
272 \end_layout
273
274 \begin_layout Plain Layout
275
276 #3
277 \end_layout
278
279 \end_inset
280
281
282 \end_layout
283
284 \begin_layout Opening
285 Dear Mrs.
286 \begin_inset space ~
287 \end_inset
288
289
290 \begin_inset ERT
291 status collapsed
292
293 \begin_layout Plain Layout
294
295 #1
296 \end_layout
297
298 \end_inset
299
300 ,
301 \end_layout
302
303 \begin_layout Standard
304 this example is a serial letter to 
305 \series bold
306 all female persons
307 \series default
308  in an address database.
309  The design of address databases is described in the documentation listed
310  below.
311 \end_layout
312
313 \begin_layout Standard
314 This template illustrates the use of the new scrlttr2 class (introduced
315  with KOMA-script v.
316  2.9).
317  This letter class is very flexible.
318  Have a look at 
319 \family sans
320 Layout\SpecialChar menuseparator
321 Document\SpecialChar menuseparator
322 Preamble
323 \family default
324  for the most common parameters.
325  Please consult the KOMA Script documentation
326 \begin_inset Foot
327 status collapsed
328
329 \begin_layout Plain Layout
330 \begin_inset CommandInset href
331 LatexCommand href
332 target "http://www.ctan.org/tex-archive/macros/latex/contrib/koma-script/doc/scrguien.pdf"
333 literal "false"
334
335 \end_inset
336
337
338 \end_layout
339
340 \end_inset
341
342  for a detailed description.
343 \end_layout
344
345 \begin_layout Closing
346 Have fun with it,
347 \end_layout
348
349 \begin_layout PS
350 p.
351 \begin_inset space \thinspace{}
352 \end_inset
353
354 s.: The blue colored items have to be before the address, the magenta colored
355  after it.
356 \end_layout
357
358 \begin_layout CC
359 The \SpecialChar LyX
360  Users
361 \end_layout
362
363 \begin_layout EndLetter
364 \begin_inset Note Note
365 status collapsed
366
367 \begin_layout Plain Layout
368 keep this environment empty
369 \end_layout
370
371 \end_inset
372
373
374 \end_layout
375
376 \begin_layout Standard
377 \begin_inset ERT
378 status open
379
380 \begin_layout Plain Layout
381
382
383 \backslash
384 fi
385 \end_layout
386
387 \end_inset
388
389
390 \begin_inset Note Note
391 status collapsed
392
393 \begin_layout Plain Layout
394 Schließt obigen 
395 \series bold
396
397 \backslash
398 if
399 \series default
400  Befehl ab.
401 \end_layout
402
403 \end_inset
404
405
406 \end_layout
407
408 \begin_layout Standard
409 \begin_inset ERT
410 status open
411
412 \begin_layout Plain Layout
413
414 }
415 \end_layout
416
417 \end_inset
418
419
420 \begin_inset Note Note
421 status collapsed
422
423 \begin_layout Plain Layout
424 Schließt obigen 
425 \series bold
426
427 \backslash
428 renewcommand*
429 \series default
430  Befehl ab.
431 \end_layout
432
433 \end_inset
434
435
436 \end_layout
437
438 \begin_layout Standard
439 \begin_inset CommandInset include
440 LatexCommand input
441 filename "addressExample.adr"
442
443 \end_inset
444
445
446 \end_layout
447
448 \end_body
449 \end_document