]> git.lyx.org Git - lyx.git/blob - lib/examples/serial_letter1.lyx
Push the rest of changes of ectaart.cls (Econometrica) from Koji.
[lyx.git] / lib / examples / serial_letter1.lyx
1 #LyX 1.6.0 created this file. For more info see http://www.lyx.org/
2 \lyxformat 345
3 \begin_document
4 \begin_header
5 \use_default_options false
6 \textclass scrlttr2
7 \begin_preamble
8 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%
9 %% Here you can modify the layout of your letter
10 %% Have a look at the KOMA script documentation
11 %% for details. Most commands are commented out
12 %% here (i.e. we use default settings)
13 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%
14
15 %% Load an *.lco style file (see KOMA documentation)
16 \LoadLetterOption{DIN}%                          
17
18 %% THE CLASS OPTIONS
19 %% Remove preceeding '%' to uncomment an item
20 \KOMAoptions{%
21 %headsepline=true,%            separate the header with a line on page >1
22 %footsepline=true,%             separate the footer with a line on page >1
23 %pagenumber=botcenter,%   position of the page number (see docu)
24 %parskip=false,%          Use indent instead of skip (more options cf. docu)
25 fromalign=center,%        alignment of the address
26 fromrule=aftername,%    separate the address with a line?
27 fromphone=true,%         print sender phone number
28 %fromfax=true,%          print sender fax number
29 fromemail=true,%           print sender e-mail address
30 fromurl=true%               print sender URL
31 %fromlogo=true,%         print a logo (position depends on fromalign)
32 %addrfield=false,%        print an address field?
33 %backaddress=false,%  print the back address?
34 %subject=afteropening,titled,% alternative subject layout and position
35 %locfield=narrow,%      width of the (extra) location field
36 %foldmarks=false,%      print foldmarks?
37 %numericaldate=true,%  date layout
38 %refline=wide%             layout of the refline
39 }
40
41 %% Customize Separators
42 %\setkomavar{placeseparator}{ -- }
43 \setkomavar{backaddressseparator}{ $\cdot$ }
44 %\setkomavar{emailseparator}{ --> }
45 %\setkomavar{enclseparator}{ > }
46 %\setkomavar{faxseparator}{ --> }
47 %\setkomavar{phoneseparator}{ --> }
48 %\setkomavar{subjectseparator}{ >>> }
49
50 %% Customize fonts
51 %% Use LaTeX's standard font commands
52 %% Modify with \setkomafont or \addtokomafont
53 %% (see KOMA documentation)
54 \setkomafont{backaddress}{\rmfamily}
55 %\setkomafont{descriptionlabel}{}
56 \setkomafont{fromaddress}{\small}
57 \setkomafont{fromname}{\scshape}
58 %\setkomafont{pagefoot}{}
59 %\setkomafont{pagehead}{}
60 %\setkomafont{pagenumber}{}
61 %\setkomafont{subject}{}
62 %\setkomafont{title}{}
63 \end_preamble
64 \language english
65 \inputencoding auto
66 \font_roman palatino
67 \font_sans default
68 \font_typewriter default
69 \font_default_family default
70 \font_sc false
71 \font_osf false
72 \font_sf_scale 100
73 \font_tt_scale 100
74 \graphics default
75 \paperfontsize 11
76 \spacing other 1.15
77 \use_hyperref true
78 \pdf_bookmarks false
79 \pdf_bookmarksnumbered false
80 \pdf_bookmarksopen false
81 \pdf_bookmarksopenlevel 1
82 \pdf_breaklinks false
83 \pdf_pdfborder true
84 \pdf_colorlinks false
85 \pdf_backref false
86 \pdf_pdfusetitle false
87 \papersize default
88 \use_geometry false
89 \use_amsmath 0
90 \use_esint 0
91 \cite_engine basic
92 \use_bibtopic false
93 \paperorientation portrait
94 \secnumdepth 3
95 \tocdepth 3
96 \paragraph_separation skip
97 \defskip medskip
98 \quotes_language german
99 \papercolumns 1
100 \papersides 1
101 \paperpagestyle default
102 \tracking_changes false
103 \output_changes false
104 \author ""
105 \author ""
106 \end_header
107
108 \begin_body
109
110 \begin_layout Name
111 The LyX Developers Team
112 \end_layout
113
114 \begin_layout SenderAddress
115 140 Map Road
116 \begin_inset Newline newline
117 \end_inset
118
119 SVN City
120 \end_layout
121
122 \begin_layout Telephone
123 0011/222
124 \begin_inset space \thinspace{}
125 \end_inset
126
127 333
128 \end_layout
129
130 \begin_layout E-Mail
131 lyx-users@lists.lyx.org
132 \end_layout
133
134 \begin_layout URL
135 www.lyx.org
136 \end_layout
137
138 \begin_layout Backaddress
139 The LyX Developers Team
140 \begin_inset Newline newline
141 \end_inset
142
143 140 Map Road
144 \begin_inset Newline newline
145 \end_inset
146
147 SVN City
148 \end_layout
149
150 \begin_layout Signature
151 The LyX Team
152 \end_layout
153
154 \begin_layout Subject
155 New KOMA letter layout
156 \end_layout
157
158 \begin_layout Place
159 The Internet
160 \end_layout
161
162 \begin_layout Date
163 \begin_inset ERT
164 status collapsed
165
166 \begin_layout Plain Layout
167
168
169 \backslash
170 today
171 \end_layout
172
173 \end_inset
174
175
176 \end_layout
177
178 \begin_layout Standard
179 \begin_inset ERT
180 status open
181
182 \begin_layout Plain Layout
183
184
185 \backslash
186 renewcommand*{
187 \backslash
188 adrentry}[8]{%
189 \end_layout
190
191 \end_inset
192
193
194 \end_layout
195
196 \begin_layout Address
197 \begin_inset ERT
198 status open
199
200 \begin_layout Plain Layout
201
202 #2 #1
203 \backslash
204
205 \backslash
206
207 \end_layout
208
209 \begin_layout Plain Layout
210
211 #3
212 \end_layout
213
214 \end_inset
215
216
217 \end_layout
218
219 \begin_layout Opening
220 \begin_inset ERT
221 status open
222
223 \begin_layout Plain Layout
224
225
226 \backslash
227 if #5m{Dear Mr.~#1,} 
228 \backslash
229 fi
230 \end_layout
231
232 \begin_layout Plain Layout
233
234
235 \backslash
236 if #5f{Dear Mrs.~#1,} 
237 \backslash
238 fi
239 \end_layout
240
241 \end_inset
242
243
244 \end_layout
245
246 \begin_layout Standard
247 this example is a serial letter to 
248 \series bold
249 all persons
250 \series default
251  in an address database.
252  The design of address databases is described in the documentation listed
253  below.
254 \end_layout
255
256 \begin_layout Standard
257 This template illustrates the use of the new scrlttr2 class (introduced
258  with KOMA-script v.
259  2.9).
260  This letter class is very flexible.
261  Have a look at 
262 \family sans
263 Layout\SpecialChar \menuseparator
264 Document\SpecialChar \menuseparator
265 Preamble
266 \family default
267  for the most common parameters.
268  Please consult the KOMA Script documentation
269 \begin_inset Foot
270 status collapsed
271
272 \begin_layout Plain Layout
273 \begin_inset CommandInset href
274 LatexCommand href
275 target "http://www.ctan.org/tex-archive/macros/latex/contrib/koma-script/scrguien.pdf"
276
277 \end_inset
278
279
280 \end_layout
281
282 \end_inset
283
284  for a detailed description.
285 \end_layout
286
287 \begin_layout Closing
288 Have fun with it,
289 \end_layout
290
291 \begin_layout PS
292 p.
293 \begin_inset space \thinspace{}
294 \end_inset
295
296 s.: The blue colored items have to be before the address, the magenta colored
297  after it.
298 \end_layout
299
300 \begin_layout CC
301 The LyX Users
302 \end_layout
303
304 \begin_layout EndLetter
305 \begin_inset Note Note
306 status collapsed
307
308 \begin_layout Plain Layout
309 keep this environment empty
310 \end_layout
311
312 \end_inset
313
314
315 \end_layout
316
317 \begin_layout Standard
318 \begin_inset ERT
319 status open
320
321 \begin_layout Plain Layout
322
323 }
324 \end_layout
325
326 \end_inset
327
328
329 \begin_inset Note Note
330 status collapsed
331
332 \begin_layout Plain Layout
333 closes the above 
334 \series bold
335
336 \backslash
337 renewcommand*
338 \series default
339  command
340 \end_layout
341
342 \end_inset
343
344
345 \end_layout
346
347 \begin_layout Standard
348 \begin_inset CommandInset include
349 LatexCommand input
350 filename "addressExample.adr"
351
352 \end_inset
353
354
355 \end_layout
356
357 \end_body
358 \end_document