]> git.lyx.org Git - lyx.git/blob - lib/examples/serial_letter3.lyx
Document the IBus + Qt4 known issue (#9362)
[lyx.git] / lib / examples / serial_letter3.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 danish
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 Standard
229 \begin_inset ERT
230 status open
231
232 \begin_layout Plain Layout
233
234
235 \backslash
236 if #5f
237 \end_layout
238
239 \end_inset
240
241
242 \begin_inset Note Note
243 status open
244
245 \begin_layout Plain Layout
246 condition for this letter: gender [#5] must be female [f]
247 \end_layout
248
249 \end_inset
250
251
252 \end_layout
253
254 \begin_layout Address
255 \begin_inset ERT
256 status open
257
258 \begin_layout Plain Layout
259
260 #2 #1
261 \backslash
262
263 \backslash
264
265 \end_layout
266
267 \begin_layout Plain Layout
268
269 #3
270 \end_layout
271
272 \end_inset
273
274
275 \end_layout
276
277 \begin_layout Opening
278 Dear Mrs.
279 \begin_inset space ~
280 \end_inset
281
282
283 \begin_inset ERT
284 status collapsed
285
286 \begin_layout Plain Layout
287
288 #1
289 \end_layout
290
291 \end_inset
292
293 ,
294 \end_layout
295
296 \begin_layout Standard
297 this example is a serial letter to 
298 \series bold
299 all female persons
300 \series default
301  in an address database.
302  The design of address databases is described in the documentation listed
303  below.
304 \end_layout
305
306 \begin_layout Standard
307 This template illustrates the use of the new scrlttr2 class (introduced
308  with KOMA-script v.
309  2.9).
310  This letter class is very flexible.
311  Have a look at 
312 \family sans
313 Layout\SpecialChar menuseparator
314 Document\SpecialChar menuseparator
315 Preamble
316 \family default
317  for the most common parameters.
318  Please consult the KOMA Script documentation
319 \begin_inset Foot
320 status collapsed
321
322 \begin_layout Plain Layout
323 \begin_inset CommandInset href
324 LatexCommand href
325 target "http://www.ctan.org/tex-archive/macros/latex/contrib/koma-script/scrguien.pdf"
326
327 \end_inset
328
329
330 \end_layout
331
332 \end_inset
333
334  for a detailed description.
335 \end_layout
336
337 \begin_layout Closing
338 Have fun with it,
339 \end_layout
340
341 \begin_layout PS
342 p.
343 \begin_inset space \thinspace{}
344 \end_inset
345
346 s.: The blue colored items have to be before the address, the magenta colored
347  after it.
348 \end_layout
349
350 \begin_layout CC
351 The \SpecialCharNoPassThru LyX
352  Users
353 \end_layout
354
355 \begin_layout EndLetter
356 \begin_inset Note Note
357 status collapsed
358
359 \begin_layout Plain Layout
360 keep this environment empty
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 \backslash
376 fi
377 \end_layout
378
379 \end_inset
380
381
382 \begin_inset Note Note
383 status collapsed
384
385 \begin_layout Plain Layout
386 Schließt obigen 
387 \series bold
388
389 \backslash
390 if
391 \series default
392  Befehl ab.
393 \end_layout
394
395 \end_inset
396
397
398 \end_layout
399
400 \begin_layout Standard
401 \begin_inset ERT
402 status open
403
404 \begin_layout Plain Layout
405
406 }
407 \end_layout
408
409 \end_inset
410
411
412 \begin_inset Note Note
413 status collapsed
414
415 \begin_layout Plain Layout
416 Schließt obigen 
417 \series bold
418
419 \backslash
420 renewcommand*
421 \series default
422  Befehl ab.
423 \end_layout
424
425 \end_inset
426
427
428 \end_layout
429
430 \begin_layout Standard
431 \begin_inset CommandInset include
432 LatexCommand input
433 filename "addressExample.adr"
434
435 \end_inset
436
437
438 \end_layout
439
440 \end_body
441 \end_document