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