]> git.lyx.org Git - lyx.git/blob - lib/examples/serial_letter1.lyx
Cmake export tests: move spanish manuals tests for (xe|lua)latex and tex font to...
[lyx.git] / lib / examples / serial_letter1.lyx
1 #LyX 2.2 created this file. For more info see http://www.lyx.org/
2 \lyxformat 503
3 \begin_document
4 \begin_header
5 \origin /systemlyxdir/examples/
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 \use_default_options false
65 \maintain_unincluded_children false
66 \language english
67 \language_package default
68 \inputencoding auto
69 \fontencoding global
70 \font_roman "palatino" "default"
71 \font_sans "default" "default"
72 \font_typewriter "default" "default"
73 \font_math "auto" "auto"
74 \font_default_family default
75 \use_non_tex_fonts false
76 \font_sc false
77 \font_osf false
78 \font_sf_scale 100 100
79 \font_tt_scale 100 100
80 \graphics default
81 \default_output_format default
82 \output_sync 0
83 \bibtex_command default
84 \index_command default
85 \paperfontsize 11
86 \spacing other 1.15
87 \use_hyperref true
88 \pdf_bookmarks false
89 \pdf_bookmarksnumbered false
90 \pdf_bookmarksopen false
91 \pdf_bookmarksopenlevel 1
92 \pdf_breaklinks false
93 \pdf_pdfborder true
94 \pdf_colorlinks false
95 \pdf_backref false
96 \pdf_pdfusetitle false
97 \papersize default
98 \use_geometry false
99 \use_package amsmath 0
100 \use_package amssymb 0
101 \use_package cancel 0
102 \use_package esint 0
103 \use_package mathdots 1
104 \use_package mathtools 0
105 \use_package mhchem 1
106 \use_package stackrel 0
107 \use_package stmaryrd 0
108 \use_package undertilde 0
109 \cite_engine basic
110 \cite_engine_type default
111 \biblio_style plain
112 \use_bibtopic false
113 \use_indices false
114 \paperorientation portrait
115 \suppress_date false
116 \justification true
117 \use_refstyle 0
118 \index Index
119 \shortcut idx
120 \color #008000
121 \end_index
122 \secnumdepth 3
123 \tocdepth 3
124 \paragraph_separation skip
125 \defskip medskip
126 \quotes_language german
127 \papercolumns 1
128 \papersides 1
129 \paperpagestyle default
130 \tracking_changes false
131 \output_changes false
132 \html_math_output 0
133 \html_css_as_file 0
134 \html_be_strict false
135 \end_header
136
137 \begin_body
138
139 \begin_layout Name
140 The \SpecialCharNoPassThru LyX
141  Developers Team
142 \end_layout
143
144 \begin_layout SenderAddress
145 140 Map Road
146 \begin_inset Newline newline
147 \end_inset
148
149 SVN City
150 \end_layout
151
152 \begin_layout Telephone
153 0011/222
154 \begin_inset space \thinspace{}
155 \end_inset
156
157 333
158 \end_layout
159
160 \begin_layout E-Mail
161 lyx-users@lists.lyx.org
162 \end_layout
163
164 \begin_layout URL
165 www.lyx.org
166 \end_layout
167
168 \begin_layout Backaddress
169 The \SpecialCharNoPassThru LyX
170  Developers Team
171 \begin_inset Newline newline
172 \end_inset
173
174 140 Map Road
175 \begin_inset Newline newline
176 \end_inset
177
178 SVN City
179 \end_layout
180
181 \begin_layout Signature
182 The \SpecialCharNoPassThru LyX
183  Team
184 \end_layout
185
186 \begin_layout Subject
187 New KOMA letter layout
188 \end_layout
189
190 \begin_layout Place
191 The Internet
192 \end_layout
193
194 \begin_layout Date
195 \begin_inset ERT
196 status collapsed
197
198 \begin_layout Plain Layout
199
200
201 \backslash
202 today
203 \end_layout
204
205 \end_inset
206
207
208 \end_layout
209
210 \begin_layout Standard
211 \begin_inset ERT
212 status open
213
214 \begin_layout Plain Layout
215
216
217 \backslash
218 renewcommand*{
219 \backslash
220 adrentry}[8]{%
221 \end_layout
222
223 \end_inset
224
225
226 \end_layout
227
228 \begin_layout Address
229 \begin_inset ERT
230 status open
231
232 \begin_layout Plain Layout
233
234 #2 #1
235 \backslash
236
237 \backslash
238
239 \end_layout
240
241 \begin_layout Plain Layout
242
243 #3
244 \end_layout
245
246 \end_inset
247
248
249 \end_layout
250
251 \begin_layout Opening
252 \begin_inset ERT
253 status open
254
255 \begin_layout Plain Layout
256
257
258 \backslash
259 if #5m{Dear Mr.~#1,} 
260 \backslash
261 fi
262 \end_layout
263
264 \begin_layout Plain Layout
265
266
267 \backslash
268 if #5f{Dear Mrs.~#1,} 
269 \backslash
270 fi
271 \end_layout
272
273 \end_inset
274
275
276 \end_layout
277
278 \begin_layout Standard
279 this example is a serial letter to 
280 \series bold
281 all persons
282 \series default
283  in an address database.
284  The design of address databases is described in the documentation listed
285  below.
286 \end_layout
287
288 \begin_layout Standard
289 This template illustrates the use of the new scrlttr2 class (introduced
290  with KOMA-script v.
291  2.9).
292  This letter class is very flexible.
293  Have a look at 
294 \family sans
295 Layout\SpecialChar menuseparator
296 Document\SpecialChar menuseparator
297 Preamble
298 \family default
299  for the most common parameters.
300  Please consult the KOMA Script documentation
301 \begin_inset Foot
302 status collapsed
303
304 \begin_layout Plain Layout
305 \begin_inset CommandInset href
306 LatexCommand href
307 target "http://www.ctan.org/tex-archive/macros/latex/contrib/koma-script/scrguien.pdf"
308
309 \end_inset
310
311
312 \end_layout
313
314 \end_inset
315
316  for a detailed description.
317 \end_layout
318
319 \begin_layout Closing
320 Have fun with it,
321 \end_layout
322
323 \begin_layout PS
324 p.
325 \begin_inset space \thinspace{}
326 \end_inset
327
328 s.: The blue colored items have to be before the address, the magenta colored
329  after it.
330 \end_layout
331
332 \begin_layout CC
333 The \SpecialCharNoPassThru LyX
334  Users
335 \end_layout
336
337 \begin_layout EndLetter
338 \begin_inset Note Note
339 status collapsed
340
341 \begin_layout Plain Layout
342 keep this environment empty
343 \end_layout
344
345 \end_inset
346
347
348 \end_layout
349
350 \begin_layout Standard
351 \begin_inset ERT
352 status open
353
354 \begin_layout Plain Layout
355
356 }
357 \end_layout
358
359 \end_inset
360
361
362 \begin_inset Note Note
363 status collapsed
364
365 \begin_layout Plain Layout
366 closes the above 
367 \series bold
368
369 \backslash
370 renewcommand*
371 \series default
372  command
373 \end_layout
374
375 \end_inset
376
377
378 \end_layout
379
380 \begin_layout Standard
381 \begin_inset CommandInset include
382 LatexCommand input
383 filename "addressExample.adr"
384
385 \end_inset
386
387
388 \end_layout
389
390 \end_body
391 \end_document