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