]> git.lyx.org Git - lyx.git/blob - lib/examples/Letters/Serial_Letter_1.lyx
Fix up 6c20e5db: let PARAGRAPH_GOTO use SCROLL_TOP again
[lyx.git] / lib / examples / Letters / Serial_Letter_1.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 german
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 Address
247 \begin_inset ERT
248 status open
249
250 \begin_layout Plain Layout
251
252 #2 #1
253 \backslash
254
255 \backslash
256
257 \end_layout
258
259 \begin_layout Plain Layout
260
261 #3
262 \end_layout
263
264 \end_inset
265
266
267 \end_layout
268
269 \begin_layout Opening
270 \begin_inset ERT
271 status open
272
273 \begin_layout Plain Layout
274
275
276 \backslash
277 if #5m{Dear Mr.~#1,} 
278 \backslash
279 fi
280 \end_layout
281
282 \begin_layout Plain Layout
283
284
285 \backslash
286 if #5f{Dear Mrs.~#1,} 
287 \backslash
288 fi
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 persons
300 \series default
301  in an address database.
302  The design of address databases is described in the documentation listed below.
303 \end_layout
304
305 \begin_layout Standard
306 This template illustrates the use of the new scrlttr2 class (introduced with KOMA-script v.
307  2.9).
308  This letter class is very flexible.
309  Have a look at 
310 \family sans
311 Layout\SpecialChar menuseparator
312 Document\SpecialChar menuseparator
313 Preamble
314 \family default
315  for the most common parameters.
316  Please consult the KOMA Script documentation
317 \begin_inset Foot
318 status collapsed
319
320 \begin_layout Plain Layout
321 \begin_inset CommandInset href
322 LatexCommand href
323 target "http://www.ctan.org/tex-archive/macros/latex/contrib/koma-script/doc/scrguien.pdf"
324 literal "false"
325
326 \end_inset
327
328
329 \end_layout
330
331 \end_inset
332
333  for a detailed description.
334 \end_layout
335
336 \begin_layout Closing
337 Have fun with it,
338 \end_layout
339
340 \begin_layout PS
341 p.
342 \begin_inset space \thinspace{}
343 \end_inset
344
345 s.:
346  The blue colored items have to be before the address,
347  the magenta colored after it.
348 \end_layout
349
350 \begin_layout CC
351 The \SpecialChar 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 \end_layout
376
377 \end_inset
378
379
380 \begin_inset Note Note
381 status collapsed
382
383 \begin_layout Plain Layout
384 closes the above 
385 \series bold
386
387 \backslash
388 renewcommand*
389 \series default
390  command
391 \end_layout
392
393 \end_inset
394
395
396 \end_layout
397
398 \begin_layout Standard
399 \begin_inset CommandInset include
400 LatexCommand input
401 filename "addressExample.adr"
402 literal "true"
403
404 \end_inset
405
406
407 \end_layout
408
409 \end_body
410 \end_document