]> git.lyx.org Git - lyx.git/blob - lib/examples/serial_letter1.lyx
Whitespace cosmetics
[lyx.git] / lib / examples / serial_letter1.lyx
1 #LyX 2.3 created this file. For more info see http://www.lyx.org/
2 \lyxformat 544
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 \math_numbering_side default
131 \quotes_style german
132 \papercolumns 1
133 \papersides 1
134 \paperpagestyle default
135 \tracking_changes false
136 \output_changes false
137 \html_math_output 0
138 \html_css_as_file 0
139 \html_be_strict false
140 \use_minted 0
141 \end_header
142
143 \begin_body
144
145 \begin_layout Name
146 The \SpecialChar LyX
147  Developers Team
148 \end_layout
149
150 \begin_layout SenderAddress
151 140 Map Road
152 \begin_inset Newline newline
153 \end_inset
154
155 SVN City
156 \end_layout
157
158 \begin_layout Telephone
159 0011/222
160 \begin_inset space \thinspace{}
161 \end_inset
162
163 333
164 \end_layout
165
166 \begin_layout E-Mail
167 lyx-users@lists.lyx.org
168 \end_layout
169
170 \begin_layout URL
171 www.lyx.org
172 \end_layout
173
174 \begin_layout Backaddress
175 The \SpecialChar LyX
176  Developers Team
177 \begin_inset Newline newline
178 \end_inset
179
180 140 Map Road
181 \begin_inset Newline newline
182 \end_inset
183
184 SVN City
185 \end_layout
186
187 \begin_layout Signature
188 The \SpecialChar LyX
189  Team
190 \end_layout
191
192 \begin_layout Subject
193 New KOMA letter layout
194 \end_layout
195
196 \begin_layout Place
197 The Internet
198 \end_layout
199
200 \begin_layout Date
201 \begin_inset ERT
202 status collapsed
203
204 \begin_layout Plain Layout
205
206
207 \backslash
208 today
209 \end_layout
210
211 \end_inset
212
213
214 \end_layout
215
216 \begin_layout Standard
217 \begin_inset ERT
218 status open
219
220 \begin_layout Plain Layout
221
222
223 \backslash
224 renewcommand*{
225 \backslash
226 adrentry}[8]{%
227 \end_layout
228
229 \end_inset
230
231
232 \end_layout
233
234 \begin_layout Address
235 \begin_inset ERT
236 status open
237
238 \begin_layout Plain Layout
239
240 #2 #1
241 \backslash
242
243 \backslash
244
245 \end_layout
246
247 \begin_layout Plain Layout
248
249 #3
250 \end_layout
251
252 \end_inset
253
254
255 \end_layout
256
257 \begin_layout Opening
258 \begin_inset ERT
259 status open
260
261 \begin_layout Plain Layout
262
263
264 \backslash
265 if #5m{Dear Mr.~#1,} 
266 \backslash
267 fi
268 \end_layout
269
270 \begin_layout Plain Layout
271
272
273 \backslash
274 if #5f{Dear Mrs.~#1,} 
275 \backslash
276 fi
277 \end_layout
278
279 \end_inset
280
281
282 \end_layout
283
284 \begin_layout Standard
285 this example is a serial letter to 
286 \series bold
287 all persons
288 \series default
289  in an address database.
290  The design of address databases is described in the documentation listed
291  below.
292 \end_layout
293
294 \begin_layout Standard
295 This template illustrates the use of the new scrlttr2 class (introduced
296  with KOMA-script v.
297  2.9).
298  This letter class is very flexible.
299  Have a look at 
300 \family sans
301 Layout\SpecialChar menuseparator
302 Document\SpecialChar menuseparator
303 Preamble
304 \family default
305  for the most common parameters.
306  Please consult the KOMA Script documentation
307 \begin_inset Foot
308 status collapsed
309
310 \begin_layout Plain Layout
311 \begin_inset CommandInset href
312 LatexCommand href
313 target "http://www.ctan.org/tex-archive/macros/latex/contrib/koma-script/doc/scrguien.pdf"
314 literal "false"
315
316 \end_inset
317
318
319 \end_layout
320
321 \end_inset
322
323  for a detailed description.
324 \end_layout
325
326 \begin_layout Closing
327 Have fun with it,
328 \end_layout
329
330 \begin_layout PS
331 p.
332 \begin_inset space \thinspace{}
333 \end_inset
334
335 s.: The blue colored items have to be before the address, the magenta colored
336  after it.
337 \end_layout
338
339 \begin_layout CC
340 The \SpecialChar LyX
341  Users
342 \end_layout
343
344 \begin_layout EndLetter
345 \begin_inset Note Note
346 status collapsed
347
348 \begin_layout Plain Layout
349 keep this environment empty
350 \end_layout
351
352 \end_inset
353
354
355 \end_layout
356
357 \begin_layout Standard
358 \begin_inset ERT
359 status open
360
361 \begin_layout Plain Layout
362
363 }
364 \end_layout
365
366 \end_inset
367
368
369 \begin_inset Note Note
370 status collapsed
371
372 \begin_layout Plain Layout
373 closes the above 
374 \series bold
375
376 \backslash
377 renewcommand*
378 \series default
379  command
380 \end_layout
381
382 \end_inset
383
384
385 \end_layout
386
387 \begin_layout Standard
388 \begin_inset CommandInset include
389 LatexCommand input
390 filename "addressExample.adr"
391
392 \end_inset
393
394
395 \end_layout
396
397 \end_body
398 \end_document