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