]> git.lyx.org Git - lyx.git/blob - lib/examples/serial_letter1.lyx
- Spanish documentation updates by Ignacio
[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 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 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 \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 Address
188 \begin_inset ERT
189 status open
190
191 \begin_layout Standard
192
193 #2 #1
194 \backslash
195
196 \backslash
197
198 \end_layout
199
200 \begin_layout Standard
201
202 #3
203 \end_layout
204
205 \end_inset
206
207
208 \end_layout
209
210 \begin_layout Opening
211 \begin_inset ERT
212 status open
213
214 \begin_layout Standard
215
216
217 \backslash
218 if #5m{Dear Mr.~#1,} 
219 \backslash
220 fi
221 \end_layout
222
223 \begin_layout Standard
224
225
226 \backslash
227 if #5f{Dear Mrs.~#1,} 
228 \backslash
229 fi
230 \end_layout
231
232 \end_inset
233
234
235 \end_layout
236
237 \begin_layout Standard
238 this example is a serial letter to 
239 \series bold
240 all persons
241 \series default
242  in an address database.
243  The design of address databases is described in the documentation listed
244  below.
245 \end_layout
246
247 \begin_layout Standard
248 This template illustrates the use of the new scrlttr2 class (introduced
249  with KOMA-script v.
250  2.9).
251  This letter class is very flexible.
252  Have a look at 
253 \family sans
254 Layout\SpecialChar \menuseparator
255 Document\SpecialChar \menuseparator
256 Preamble
257 \family default
258  for the most common parameters.
259  Please consult the KOMA Script documentation
260 \begin_inset Foot
261 status collapsed
262
263 \begin_layout Standard
264 \begin_inset CommandInset href
265 LatexCommand href
266 target "http://www.ctan.org/tex-archive/macros/latex/contrib/koma-script/scrguien.pdf"
267
268 \end_inset
269
270
271 \end_layout
272
273 \end_inset
274
275  for a detailed description.
276 \end_layout
277
278 \begin_layout Closing
279 Have fun with it,
280 \end_layout
281
282 \begin_layout PS
283 p.\InsetSpace \thinspace{}
284 s.: The blue colored items have to be before the address, the magenta colored
285  after it.
286 \end_layout
287
288 \begin_layout CC
289 The LyX Users
290 \end_layout
291
292 \begin_layout EndLetter
293 \begin_inset Note Note
294 status collapsed
295
296 \begin_layout Standard
297 keep this environment empty
298 \end_layout
299
300 \end_inset
301
302
303 \end_layout
304
305 \begin_layout Standard
306 \begin_inset ERT
307 status open
308
309 \begin_layout Standard
310
311 }
312 \end_layout
313
314 \end_inset
315
316
317 \begin_inset Note Note
318 status collapsed
319
320 \begin_layout Standard
321 closes the above 
322 \series bold
323
324 \backslash
325 renewcommand*
326 \series default
327  command
328 \end_layout
329
330 \end_inset
331
332
333 \end_layout
334
335 \begin_layout Standard
336 \begin_inset CommandInset include
337 LatexCommand input
338 filename "addressExample.adr"
339
340 \end_inset
341
342
343 \end_layout
344
345 \end_body
346 \end_document