]> git.lyx.org Git - lyx.git/blob - lib/examples/serial_letter3.lyx
- Spanish documentation updates by Ignacio
[lyx.git] / lib / examples / serial_letter3.lyx
1 #LyX 1.6.0svn created this file. For more info see http://www.lyx.org/
2 \lyxformat 314
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 \language english
64 \inputencoding auto
65 \font_roman palatino
66 \font_sans default
67 \font_typewriter default
68 \font_default_family default
69 \font_sc false
70 \font_osf false
71 \font_sf_scale 100
72 \font_tt_scale 100
73 \graphics default
74 \paperfontsize 11
75 \spacing other 1.15
76 \use_hyperref true
77 \pdf_bookmarks false
78 \pdf_bookmarksnumbered false
79 \pdf_bookmarksopen false
80 \pdf_bookmarksopenlevel 1
81 \pdf_breaklinks false
82 \pdf_pdfborder true
83 \pdf_colorlinks false
84 \pdf_backref false
85 \pdf_pagebackref 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 \newline
117 SVN City
118 \end_layout
119
120 \begin_layout Telephone
121 0011/222\InsetSpace \thinspace{}
122 333
123 \end_layout
124
125 \begin_layout E-Mail
126 lyx-users@lists.lyx.org
127 \end_layout
128
129 \begin_layout URL
130 www.lyx.org
131 \end_layout
132
133 \begin_layout Backaddress
134 The LyX Developers Team
135 \newline
136 140 Map Road
137 \newline
138 SVN City
139 \end_layout
140
141 \begin_layout Signature
142 The LyX Team
143 \end_layout
144
145 \begin_layout Subject
146 New KOMA letter layout
147 \end_layout
148
149 \begin_layout Place
150 The Internet
151 \end_layout
152
153 \begin_layout Date
154 \begin_inset ERT
155 status collapsed
156
157 \begin_layout Standard
158
159
160 \backslash
161 today
162 \end_layout
163
164 \end_inset
165
166
167 \end_layout
168
169 \begin_layout Standard
170 \begin_inset ERT
171 status open
172
173 \begin_layout Standard
174
175
176 \backslash
177 renewcommand*{
178 \backslash
179 adrentry}[8]{
180 \end_layout
181
182 \end_inset
183
184
185 \end_layout
186
187 \begin_layout Standard
188 \begin_inset ERT
189 status open
190
191 \begin_layout Standard
192
193
194 \backslash
195 if #5f
196 \end_layout
197
198 \end_inset
199
200
201 \begin_inset Note Note
202 status open
203
204 \begin_layout Standard
205 condition for this letter: gender [#5] must be female [f]
206 \end_layout
207
208 \end_inset
209
210
211 \end_layout
212
213 \begin_layout Address
214 \begin_inset ERT
215 status open
216
217 \begin_layout Standard
218
219 #2 #1
220 \backslash
221
222 \backslash
223
224 \end_layout
225
226 \begin_layout Standard
227
228 #3
229 \end_layout
230
231 \end_inset
232
233
234 \end_layout
235
236 \begin_layout Opening
237 Dear Mrs.\InsetSpace ~
238
239 \begin_inset ERT
240 status collapsed
241
242 \begin_layout Standard
243
244 #1
245 \end_layout
246
247 \end_inset
248
249 ,
250 \end_layout
251
252 \begin_layout Standard
253 this example is a serial letter to 
254 \series bold
255 all female persons
256 \series default
257  in an address database.
258  The design of address databases is described in the documentation listed
259  below.
260 \end_layout
261
262 \begin_layout Standard
263 This template illustrates the use of the new scrlttr2 class (introduced
264  with KOMA-script v.
265  2.9).
266  This letter class is very flexible.
267  Have a look at 
268 \family sans
269 Layout\SpecialChar \menuseparator
270 Document\SpecialChar \menuseparator
271 Preamble
272 \family default
273  for the most common parameters.
274  Please consult the KOMA Script documentation
275 \begin_inset Foot
276 status collapsed
277
278 \begin_layout Standard
279 \begin_inset CommandInset href
280 LatexCommand href
281 target "http://www.ctan.org/tex-archive/macros/latex/contrib/koma-script/scrguien.pdf"
282
283 \end_inset
284
285
286 \end_layout
287
288 \end_inset
289
290  for a detailed description.
291 \end_layout
292
293 \begin_layout Closing
294 Have fun with it,
295 \end_layout
296
297 \begin_layout PS
298 p.\InsetSpace \thinspace{}
299 s.: The blue colored items have to be before the address, the magenta colored
300  after it.
301 \end_layout
302
303 \begin_layout CC
304 The LyX Users
305 \end_layout
306
307 \begin_layout EndLetter
308 \begin_inset Note Note
309 status collapsed
310
311 \begin_layout Standard
312 keep this environment empty
313 \end_layout
314
315 \end_inset
316
317
318 \end_layout
319
320 \begin_layout Standard
321 \begin_inset ERT
322 status open
323
324 \begin_layout Standard
325
326
327 \backslash
328 fi
329 \end_layout
330
331 \end_inset
332
333
334 \begin_inset Note Note
335 status collapsed
336
337 \begin_layout Standard
338 Schließt obigen 
339 \series bold
340
341 \backslash
342 if
343 \series default
344  Befehl ab.
345 \end_layout
346
347 \end_inset
348
349
350 \end_layout
351
352 \begin_layout Standard
353 \begin_inset ERT
354 status open
355
356 \begin_layout Standard
357
358 }
359 \end_layout
360
361 \end_inset
362
363
364 \begin_inset Note Note
365 status collapsed
366
367 \begin_layout Standard
368 Schließt obigen 
369 \series bold
370
371 \backslash
372 renewcommand*
373 \series default
374  Befehl ab.
375 \end_layout
376
377 \end_inset
378
379
380 \end_layout
381
382 \begin_layout Standard
383 \begin_inset CommandInset include
384 LatexCommand input
385 filename "addressExample.adr"
386
387 \end_inset
388
389
390 \end_layout
391
392 \end_body
393 \end_document