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