]> git.lyx.org Git - lyx.git/blob - lib/examples/serial_letter3.lyx
* BufferView::putSelectionAt(): Ensure a redraw in any case.
[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 314
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 \graphics default
74 \paperfontsize 11
75 \spacing other 1.15
76 \use_hyperref true
77 \pdf_bookmarks false
78 \pdf_bookmarksnumbered false
79 \pdf_bookmarksopen false
80 \pdf_bookmarksopenlevel 1
81 \pdf_breaklinks false
82 \pdf_pdfborder true
83 \pdf_colorlinks false
84 \pdf_backref false
85 \pdf_pagebackref 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 danish
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 \newline
117 SVN City
118 \end_layout
119
120 \begin_layout Telephone
121 0011/222\InsetSpace \thinspace{}
122 333
123 \end_layout
124
125 \begin_layout E-Mail
126 lyx-users@lists.lyx.org
127 \end_layout
128
129 \begin_layout URL
130 www.lyx.org
131 \end_layout
132
133 \begin_layout Backaddress
134 The LyX Developers Team
135 \newline
136 140 Map Road
137 \newline
138 SVN City
139 \end_layout
140
141 \begin_layout Signature
142 The LyX Team
143 \end_layout
144
145 \begin_layout Subject
146 New KOMA letter layout
147 \end_layout
148
149 \begin_layout Place
150 The Internet
151 \end_layout
152
153 \begin_layout Date
154 \begin_inset ERT
155 status collapsed
156
157 \begin_layout Standard
158
159
160 \backslash
161 today
162 \end_layout
163
164 \end_inset
165
166
167 \end_layout
168
169 \begin_layout Standard
170 \begin_inset ERT
171 status open
172
173 \begin_layout Standard
174
175
176 \backslash
177 renewcommand*{
178 \backslash
179 adrentry}[8]{
180 \end_layout
181
182 \end_inset
183
184
185 \end_layout
186
187 \begin_layout Standard
188 \begin_inset ERT
189 status open
190
191 \begin_layout Standard
192
193
194 \backslash
195 if #5w
196 \end_layout
197
198 \end_inset
199
200
201 \begin_inset Note Note
202 status open
203
204 \begin_layout Standard
205 when person is female
206 \end_layout
207
208 \end_inset
209
210
211 \end_layout
212
213 \begin_layout Address
214 \begin_inset ERT
215 status collapsed
216
217 \begin_layout Standard
218
219 #2 #1
220 \backslash
221
222 \backslash
223 #3
224 \end_layout
225
226 \end_inset
227
228
229 \end_layout
230
231 \begin_layout Opening
232 Dear Mrs.\InsetSpace ~
233
234 \begin_inset ERT
235 status collapsed
236
237 \begin_layout Standard
238
239 #1
240 \end_layout
241
242 \end_inset
243
244 ,
245 \end_layout
246
247 \begin_layout Standard
248 this example is a serial letter to 
249 \series bold
250 all female persons
251 \series default
252  in an address database.
253  The design of address databases is described in the documentation listed
254  below.
255 \end_layout
256
257 \begin_layout Standard
258 This template illustrates the use of the new scrlttr2 class (introduced
259  with KOMA-script v.
260  2.9).
261  This letter class is very flexible.
262  Have a look at 
263 \family sans
264 Layout\SpecialChar \menuseparator
265 Document\SpecialChar \menuseparator
266 Preamble
267 \family default
268  for the most common parameters.
269  Please consult the KOMA Script documentation
270 \begin_inset Foot
271 status collapsed
272
273 \begin_layout Standard
274 \begin_inset CommandInset href
275 LatexCommand href
276 target "http://www.ctan.org/tex-archive/macros/latex/contrib/koma-script/scrguien.pdf"
277
278 \end_inset
279
280
281 \end_layout
282
283 \end_inset
284
285  for a detailed description.
286 \end_layout
287
288 \begin_layout Closing
289 Have fun with it,
290 \end_layout
291
292 \begin_layout PS
293 p.\InsetSpace \thinspace{}
294 s.: The blue colored items have to be before the address, the magenta colored
295  after it.
296 \end_layout
297
298 \begin_layout CC
299 The LyX Users
300 \end_layout
301
302 \begin_layout EndLetter
303 \begin_inset Note Note
304 status collapsed
305
306 \begin_layout Standard
307 keep this environment empty
308 \end_layout
309
310 \end_inset
311
312
313 \end_layout
314
315 \begin_layout Standard
316 \begin_inset ERT
317 status open
318
319 \begin_layout Standard
320
321
322 \backslash
323 fi
324 \end_layout
325
326 \end_inset
327
328
329 \begin_inset Note Note
330 status collapsed
331
332 \begin_layout Standard
333 Schließt obigen 
334 \series bold
335
336 \backslash
337 if
338 \series default
339  Befehl ab.
340 \end_layout
341
342 \end_inset
343
344
345 \end_layout
346
347 \begin_layout Standard
348 \begin_inset ERT
349 status open
350
351 \begin_layout Standard
352
353 }
354 \end_layout
355
356 \end_inset
357
358
359 \begin_inset Note Note
360 status collapsed
361
362 \begin_layout Standard
363 Schließt obigen 
364 \series bold
365
366 \backslash
367 renewcommand*
368 \series default
369  Befehl ab.
370 \end_layout
371
372 \end_inset
373
374
375 \end_layout
376
377 \begin_layout Standard
378 \begin_inset CommandInset include
379 LatexCommand input
380 filename "addressExample.adr"
381
382 \end_inset
383
384
385 \end_layout
386
387 \end_body
388 \end_document