]> git.lyx.org Git - lyx.git/blob - lib/examples/serial_letter3.lyx
Japanese splash from Koji.
[lyx.git] / lib / examples / serial_letter3.lyx
1 #LyX 1.6.0svn created this file. For more info see http://www.lyx.org/
2 \lyxformat 341
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 \language english
64 \inputencoding auto
65 \font_roman palatino
66 \font_sans default
67 \font_typewriter default
68 \font_default_family default
69 \font_sc false
70 \font_osf false
71 \font_sf_scale 100
72 \font_tt_scale 100
73
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_pagebackref false
87 \pdf_pdfusetitle false
88 \papersize default
89 \use_geometry false
90 \use_amsmath 0
91 \use_esint 0
92 \cite_engine basic
93 \use_bibtopic false
94 \paperorientation portrait
95 \secnumdepth 3
96 \tocdepth 3
97 \paragraph_separation skip
98 \defskip medskip
99 \quotes_language danish
100 \papercolumns 1
101 \papersides 1
102 \paperpagestyle default
103 \tracking_changes false
104 \output_changes false
105 \author "" 
106 \author "" 
107 \end_header
108
109 \begin_body
110
111 \begin_layout Name
112 The LyX Developers Team
113 \end_layout
114
115 \begin_layout SenderAddress
116 140 Map Road
117 \begin_inset Newline newline
118 \end_inset
119
120 SVN City
121 \end_layout
122
123 \begin_layout Telephone
124 0011/222
125 \begin_inset space \thinspace{}
126 \end_inset
127
128 333
129 \end_layout
130
131 \begin_layout E-Mail
132 lyx-users@lists.lyx.org
133 \end_layout
134
135 \begin_layout URL
136 www.lyx.org
137 \end_layout
138
139 \begin_layout Backaddress
140 The LyX Developers Team
141 \begin_inset Newline newline
142 \end_inset
143
144 140 Map Road
145 \begin_inset Newline newline
146 \end_inset
147
148 SVN City
149 \end_layout
150
151 \begin_layout Signature
152 The LyX Team
153 \end_layout
154
155 \begin_layout Subject
156 New KOMA letter layout
157 \end_layout
158
159 \begin_layout Place
160 The Internet
161 \end_layout
162
163 \begin_layout Date
164 \begin_inset ERT
165 status collapsed
166
167 \begin_layout Plain Layout
168
169
170 \backslash
171 today
172 \end_layout
173
174 \end_inset
175
176
177 \end_layout
178
179 \begin_layout Standard
180 \begin_inset ERT
181 status open
182
183 \begin_layout Plain Layout
184
185
186 \backslash
187 renewcommand*{
188 \backslash
189 adrentry}[8]{
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 if #5f
206 \end_layout
207
208 \end_inset
209
210
211 \begin_inset Note Note
212 status open
213
214 \begin_layout Plain Layout
215 condition for this letter: gender [#5] must be female [f]
216 \end_layout
217
218 \end_inset
219
220
221 \end_layout
222
223 \begin_layout Address
224 \begin_inset ERT
225 status open
226
227 \begin_layout Plain Layout
228
229 #2 #1
230 \backslash
231
232 \backslash
233
234 \end_layout
235
236 \begin_layout Plain Layout
237
238 #3
239 \end_layout
240
241 \end_inset
242
243
244 \end_layout
245
246 \begin_layout Opening
247 Dear Mrs.
248 \begin_inset space ~
249 \end_inset
250
251
252 \begin_inset ERT
253 status collapsed
254
255 \begin_layout Plain Layout
256
257 #1
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 female 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 \backslash
344 fi
345 \end_layout
346
347 \end_inset
348
349
350 \begin_inset Note Note
351 status collapsed
352
353 \begin_layout Plain Layout
354 Schließt obigen 
355 \series bold
356
357 \backslash
358 if
359 \series default
360  Befehl ab.
361 \end_layout
362
363 \end_inset
364
365
366 \end_layout
367
368 \begin_layout Standard
369 \begin_inset ERT
370 status open
371
372 \begin_layout Plain Layout
373
374 }
375 \end_layout
376
377 \end_inset
378
379
380 \begin_inset Note Note
381 status collapsed
382
383 \begin_layout Plain Layout
384 Schließt obigen 
385 \series bold
386
387 \backslash
388 renewcommand*
389 \series default
390  Befehl ab.
391 \end_layout
392
393 \end_inset
394
395
396 \end_layout
397
398 \begin_layout Standard
399 \begin_inset CommandInset include
400 LatexCommand input
401 filename "addressExample.adr"
402
403 \end_inset
404
405
406 \end_layout
407
408 \end_body
409 \end_document