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