]> git.lyx.org Git - lyx.git/blob - lib/examples/serial_letter1.lyx
- external_templates: fix http://bugzilla.lyx.org/show_bug.cgi?id=5320, patch by...
[lyx.git] / lib / examples / serial_letter1.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 german
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 Address
198 \begin_inset ERT
199 status open
200
201 \begin_layout Plain Layout
202
203 #2 #1
204 \backslash
205
206 \backslash
207
208 \end_layout
209
210 \begin_layout Plain Layout
211
212 #3
213 \end_layout
214
215 \end_inset
216
217
218 \end_layout
219
220 \begin_layout Opening
221 \begin_inset ERT
222 status open
223
224 \begin_layout Plain Layout
225
226
227 \backslash
228 if #5m{Dear Mr.~#1,} 
229 \backslash
230 fi
231 \end_layout
232
233 \begin_layout Plain Layout
234
235
236 \backslash
237 if #5f{Dear Mrs.~#1,} 
238 \backslash
239 fi
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 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 Plain Layout
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.
294 \begin_inset space \thinspace{}
295 \end_inset
296
297 s.: The blue colored items have to be before the address, the magenta colored
298  after it.
299 \end_layout
300
301 \begin_layout CC
302 The LyX Users
303 \end_layout
304
305 \begin_layout EndLetter
306 \begin_inset Note Note
307 status collapsed
308
309 \begin_layout Plain Layout
310 keep this environment empty
311 \end_layout
312
313 \end_inset
314
315
316 \end_layout
317
318 \begin_layout Standard
319 \begin_inset ERT
320 status open
321
322 \begin_layout Plain Layout
323
324 }
325 \end_layout
326
327 \end_inset
328
329
330 \begin_inset Note Note
331 status collapsed
332
333 \begin_layout Plain Layout
334 closes the above 
335 \series bold
336
337 \backslash
338 renewcommand*
339 \series default
340  command
341 \end_layout
342
343 \end_inset
344
345
346 \end_layout
347
348 \begin_layout Standard
349 \begin_inset CommandInset include
350 LatexCommand input
351 filename "addressExample.adr"
352
353 \end_inset
354
355
356 \end_layout
357
358 \end_body
359 \end_document