]> git.lyx.org Git - lyx.git/blob - lib/examples/Letters/Serial_Letter_3.lyx
Protect \inputencoding in i18npreamble
[lyx.git] / lib / examples / Letters / Serial_Letter_3.lyx
1 #LyX 2.4 created this file. For more info see https://www.lyx.org/
2 \lyxformat 620
3 \begin_document
4 \begin_header
5 \save_transient_properties true
6 \origin /systemlyxdir/examples/Letters/
7 \textclass scrlttr2
8 \begin_preamble
9 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%
10 %% Here you can modify the layout of your letter
11 %% Have a look at the KOMA script documentation
12 %% for details. Most commands are commented out
13 %% here (i.e. we use default settings)
14 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%
15
16 %% Load an *.lco style file (see KOMA documentation)
17 \LoadLetterOption{DIN}%                          
18
19 %% THE CLASS OPTIONS
20 %% Remove preceeding '%' to uncomment an item
21 \KOMAoptions{%
22 %headsepline=true,%            separate the header with a line on page >1
23 %footsepline=true,%             separate the footer with a line on page >1
24 %pagenumber=botcenter,%   position of the page number (see docu)
25 %parskip=false,%          Use indent instead of skip (more options cf. docu)
26 fromalign=center,%        alignment of the address
27 fromrule=aftername,%    separate the address with a line?
28 fromphone=true,%         print sender phone number
29 %fromfax=true,%          print sender fax number
30 fromemail=true,%           print sender e-mail address
31 fromurl=true%               print sender URL
32 %fromlogo=true,%         print a logo (position depends on fromalign)
33 %addrfield=false,%        print an address field?
34 %backaddress=false,%  print the back address?
35 %subject=afteropening,titled,% alternative subject layout and position
36 %locfield=narrow,%      width of the (extra) location field
37 %foldmarks=false,%      print foldmarks?
38 %numericaldate=true,%  date layout
39 %refline=wide%             layout of the refline
40 }
41
42 %% Customize Separators
43 %\setkomavar{placeseparator}{ -- }
44 \setkomavar{backaddressseparator}{ $\cdot$ }
45 %\setkomavar{emailseparator}{ --> }
46 %\setkomavar{enclseparator}{ > }
47 %\setkomavar{faxseparator}{ --> }
48 %\setkomavar{phoneseparator}{ --> }
49 %\setkomavar{subjectseparator}{ >>> }
50
51 %% Customize fonts
52 %% Use LaTeX's standard font commands
53 %% Modify with \setkomafont or \addtokomafont
54 %% (see KOMA documentation)
55 \setkomafont{backaddress}{\rmfamily}
56 %\setkomafont{descriptionlabel}{}
57 \setkomafont{fromaddress}{\small}
58 \setkomafont{fromname}{\scshape}
59 %\setkomafont{pagefoot}{}
60 %\setkomafont{pagehead}{}
61 %\setkomafont{pagenumber}{}
62 %\setkomafont{subject}{}
63 %\setkomafont{title}{}
64 % Added by lyx2lyx
65 \setlength{\parskip}{\medskipamount}
66 \setlength{\parindent}{0pt}
67 \end_preamble
68 \use_default_options false
69 \maintain_unincluded_children no
70 \language english
71 \language_package default
72 \inputencoding utf8
73 \fontencoding auto
74 \font_roman "palatino" "default"
75 \font_sans "default" "default"
76 \font_typewriter "default" "default"
77 \font_math "auto" "auto"
78 \font_default_family default
79 \use_non_tex_fonts false
80 \font_sc false
81 \font_roman_osf false
82 \font_sans_osf false
83 \font_typewriter_osf false
84 \font_sf_scale 100 100
85 \font_tt_scale 100 100
86 \use_microtype false
87 \use_dash_ligatures false
88 \graphics default
89 \default_output_format default
90 \output_sync 0
91 \bibtex_command default
92 \index_command default
93 \paperfontsize 11
94 \spacing other 1.15
95 \use_hyperref true
96 \pdf_bookmarks false
97 \pdf_bookmarksnumbered false
98 \pdf_bookmarksopen false
99 \pdf_bookmarksopenlevel 1
100 \pdf_breaklinks false
101 \pdf_pdfborder true
102 \pdf_colorlinks false
103 \pdf_backref false
104 \pdf_pdfusetitle false
105 \papersize default
106 \use_geometry false
107 \use_package amsmath 1
108 \use_package amssymb 1
109 \use_package cancel 1
110 \use_package esint 1
111 \use_package mathdots 1
112 \use_package mathtools 1
113 \use_package mhchem 1
114 \use_package stackrel 1
115 \use_package stmaryrd 1
116 \use_package undertilde 1
117 \cite_engine basic
118 \cite_engine_type default
119 \biblio_style plain
120 \use_bibtopic false
121 \use_indices false
122 \paperorientation portrait
123 \suppress_date false
124 \justification true
125 \use_refstyle 0
126 \use_minted 0
127 \use_lineno 0
128 \index Index
129 \shortcut idx
130 \color #008000
131 \end_index
132 \secnumdepth 3
133 \tocdepth 3
134 \paragraph_separation indent
135 \paragraph_indentation default
136 \is_math_indent 0
137 \math_numbering_side default
138 \quotes_style danish
139 \dynamic_quotes 0
140 \papercolumns 1
141 \papersides 1
142 \paperpagestyle default
143 \tablestyle default
144 \tracking_changes false
145 \output_changes false
146 \change_bars false
147 \postpone_fragile_content false
148 \html_math_output 0
149 \html_css_as_file 0
150 \html_be_strict false
151 \docbook_table_output 0
152 \docbook_mathml_prefix 1
153 \end_header
154
155 \begin_body
156
157 \begin_layout Name
158 The \SpecialChar LyX
159  Developers Team
160 \end_layout
161
162 \begin_layout SenderAddress
163 140 Map Road
164 \begin_inset Newline newline
165 \end_inset
166
167 SVN City
168 \end_layout
169
170 \begin_layout Telephone
171 0011/222
172 \begin_inset space \thinspace{}
173 \end_inset
174
175 333
176 \end_layout
177
178 \begin_layout E-Mail
179 lyx-users@lists.lyx.org
180 \end_layout
181
182 \begin_layout URL
183 www.lyx.org
184 \end_layout
185
186 \begin_layout Backaddress
187 The \SpecialChar LyX
188  Developers Team
189 \begin_inset Newline newline
190 \end_inset
191
192 140 Map Road
193 \begin_inset Newline newline
194 \end_inset
195
196 SVN City
197 \end_layout
198
199 \begin_layout Signature
200 The \SpecialChar LyX
201  Team
202 \end_layout
203
204 \begin_layout Subject
205 New KOMA letter layout
206 \end_layout
207
208 \begin_layout Place
209 The Internet
210 \end_layout
211
212 \begin_layout Date
213 \begin_inset ERT
214 status collapsed
215
216 \begin_layout Plain Layout
217
218
219 \backslash
220 today
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 renewcommand*{
237 \backslash
238 adrentry}[8]{
239 \end_layout
240
241 \end_inset
242
243
244 \end_layout
245
246 \begin_layout Standard
247 \begin_inset ERT
248 status open
249
250 \begin_layout Plain Layout
251
252
253 \backslash
254 if #5f
255 \end_layout
256
257 \end_inset
258
259
260 \begin_inset Note Note
261 status open
262
263 \begin_layout Plain Layout
264 condition for this letter:
265  gender [#5] must be female [f]
266 \end_layout
267
268 \end_inset
269
270
271 \end_layout
272
273 \begin_layout Address
274 \begin_inset ERT
275 status open
276
277 \begin_layout Plain Layout
278
279 #2 #1
280 \backslash
281
282 \backslash
283
284 \end_layout
285
286 \begin_layout Plain Layout
287
288 #3
289 \end_layout
290
291 \end_inset
292
293
294 \end_layout
295
296 \begin_layout Opening
297 Dear Mrs.
298 \begin_inset space ~
299 \end_inset
300
301
302 \begin_inset ERT
303 status collapsed
304
305 \begin_layout Plain Layout
306
307 #1
308 \end_layout
309
310 \end_inset
311
312 ,
313 \end_layout
314
315 \begin_layout Standard
316 this example is a serial letter to 
317 \series bold
318 all female persons
319 \series default
320  in an address database.
321  The design of address databases is described in the documentation listed below.
322 \end_layout
323
324 \begin_layout Standard
325 This template illustrates the use of the new scrlttr2 class (introduced with KOMA-script v.
326  2.9).
327  This letter class is very flexible.
328  Have a look at 
329 \family sans
330 Layout\SpecialChar menuseparator
331 Document\SpecialChar menuseparator
332 Preamble
333 \family default
334  for the most common parameters.
335  Please consult the KOMA Script documentation
336 \begin_inset Foot
337 status collapsed
338
339 \begin_layout Plain Layout
340 \begin_inset CommandInset href
341 LatexCommand href
342 target "http://www.ctan.org/tex-archive/macros/latex/contrib/koma-script/doc/scrguien.pdf"
343 literal "false"
344
345 \end_inset
346
347
348 \end_layout
349
350 \end_inset
351
352  for a detailed description.
353 \end_layout
354
355 \begin_layout Closing
356 Have fun with it,
357 \end_layout
358
359 \begin_layout PS
360 p.
361 \begin_inset space \thinspace{}
362 \end_inset
363
364 s.:
365  The blue colored items have to be before the address,
366  the magenta colored after it.
367 \end_layout
368
369 \begin_layout CC
370 The \SpecialChar LyX
371  Users
372 \end_layout
373
374 \begin_layout EndLetter
375 \begin_inset Note Note
376 status collapsed
377
378 \begin_layout Plain Layout
379 keep this environment empty
380 \end_layout
381
382 \end_inset
383
384
385 \end_layout
386
387 \begin_layout Standard
388 \begin_inset ERT
389 status open
390
391 \begin_layout Plain Layout
392
393
394 \backslash
395 fi
396 \end_layout
397
398 \end_inset
399
400
401 \begin_inset Note Note
402 status collapsed
403
404 \begin_layout Plain Layout
405 Schließt obigen 
406 \series bold
407
408 \backslash
409 if
410 \series default
411  Befehl ab.
412 \end_layout
413
414 \end_inset
415
416
417 \end_layout
418
419 \begin_layout Standard
420 \begin_inset ERT
421 status open
422
423 \begin_layout Plain Layout
424
425 }
426 \end_layout
427
428 \end_inset
429
430
431 \begin_inset Note Note
432 status collapsed
433
434 \begin_layout Plain Layout
435 Schließt obigen 
436 \series bold
437
438 \backslash
439 renewcommand*
440 \series default
441  Befehl ab.
442 \end_layout
443
444 \end_inset
445
446
447 \end_layout
448
449 \begin_layout Standard
450 \begin_inset CommandInset include
451 LatexCommand input
452 filename "addressExample.adr"
453 literal "true"
454
455 \end_inset
456
457
458 \end_layout
459
460 \end_body
461 \end_document