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