]> git.lyx.org Git - lyx.git/blob - lib/examples/serial_letter1.lyx
Also display the info about BibTeX databases in the TeX info panel.
[lyx.git] / lib / examples / serial_letter1.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 german
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 Address
216 \begin_inset ERT
217 status open
218
219 \begin_layout Plain Layout
220
221 #2 #1
222 \backslash
223
224 \backslash
225
226 \end_layout
227
228 \begin_layout Plain Layout
229
230 #3
231 \end_layout
232
233 \end_inset
234
235
236 \end_layout
237
238 \begin_layout Opening
239 \begin_inset ERT
240 status open
241
242 \begin_layout Plain Layout
243
244
245 \backslash
246 if #5m{Dear Mr.~#1,} 
247 \backslash
248 fi
249 \end_layout
250
251 \begin_layout Plain Layout
252
253
254 \backslash
255 if #5f{Dear Mrs.~#1,} 
256 \backslash
257 fi
258 \end_layout
259
260 \end_inset
261
262
263 \end_layout
264
265 \begin_layout Standard
266 this example is a serial letter to 
267 \series bold
268 all persons
269 \series default
270  in an address database.
271  The design of address databases is described in the documentation listed
272  below.
273 \end_layout
274
275 \begin_layout Standard
276 This template illustrates the use of the new scrlttr2 class (introduced
277  with KOMA-script v.
278  2.9).
279  This letter class is very flexible.
280  Have a look at 
281 \family sans
282 Layout\SpecialChar \menuseparator
283 Document\SpecialChar \menuseparator
284 Preamble
285 \family default
286  for the most common parameters.
287  Please consult the KOMA Script documentation
288 \begin_inset Foot
289 status collapsed
290
291 \begin_layout Plain Layout
292 \begin_inset CommandInset href
293 LatexCommand href
294 target "http://www.ctan.org/tex-archive/macros/latex/contrib/koma-script/scrguien.pdf"
295
296 \end_inset
297
298
299 \end_layout
300
301 \end_inset
302
303  for a detailed description.
304 \end_layout
305
306 \begin_layout Closing
307 Have fun with it,
308 \end_layout
309
310 \begin_layout PS
311 p.
312 \begin_inset space \thinspace{}
313 \end_inset
314
315 s.: The blue colored items have to be before the address, the magenta colored
316  after it.
317 \end_layout
318
319 \begin_layout CC
320 The LyX Users
321 \end_layout
322
323 \begin_layout EndLetter
324 \begin_inset Note Note
325 status collapsed
326
327 \begin_layout Plain Layout
328 keep this environment empty
329 \end_layout
330
331 \end_inset
332
333
334 \end_layout
335
336 \begin_layout Standard
337 \begin_inset ERT
338 status open
339
340 \begin_layout Plain Layout
341
342 }
343 \end_layout
344
345 \end_inset
346
347
348 \begin_inset Note Note
349 status collapsed
350
351 \begin_layout Plain Layout
352 closes the above 
353 \series bold
354
355 \backslash
356 renewcommand*
357 \series default
358  command
359 \end_layout
360
361 \end_inset
362
363
364 \end_layout
365
366 \begin_layout Standard
367 \begin_inset CommandInset include
368 LatexCommand input
369 filename "addressExample.adr"
370
371 \end_inset
372
373
374 \end_layout
375
376 \end_body
377 \end_document