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