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