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