1 #% Do not delete the line below; configure depends on this
2 # \DeclareLaTeXClass{KOMA-Script Letter (V. 2)}
3 # \DeclareCategory{Letters}
4 # KOMA scrlettr2 textclass definition file.
5 # Juergen Spitzmueller <spitz@lyx.org>, 2003/2/17.
6 # Uwe Stöhr <uwestoehr@web.de>, 2008/2/03.
8 # TODO: DocBook doesn't support several letters in the same file.
9 # DocBook design note: there are several ways to implement sender data, this class does it in
10 # another way that the other letters. Usually, there is a large <address> tag with author
11 # information in <info>, but there is no possibility to include a URL in this case.
12 # Therefore, here, we use a <author> in <info>, having an <address>. <author> allows a URL
13 # (<uri>) and an address. However, phone and fax numbers should be put in <address>, they
14 # are not allowed directly in <author>... The generated DocBook will not be valid due to this!
23 AlignPossible Block, Left, Right, Center
43 # overwrite the preamble code definition
64 \AtEndDocument{\ifletterclosed\else\end{letter}\fi}
67 LeftMargin xxxxxxxxxxxx::xx
74 LabelString "Address:"
82 DocBookWrapperTag address
83 DocBookWrapperMergeWithPrevious true
89 # Not supported by DocBook.
92 LatexName end{letter}\begin{letter}
94 LeftMargin xxxxxxxxxxxx::xx
101 LabelString "Next Address:"
116 LeftMargin xxxxxxxxxxxx::xx
123 LabelString "Opening:"
130 DocBookAttr role='opening'
138 LabelString "Closing:"
140 DocBookAttr role='closing'
148 LabelString "Post Scriptum:"
150 DocBookAttr role='post-scriptum'
160 DocBookAttr role='carbon-copy'
169 DocBookAttr role='enclosed'
177 LatexParam {fromname}
179 LeftMargin xxxxxxxxxxxxxxxxx::xx
186 LabelString "Sender Name:"
193 DocBookTag personname
194 DocBookTagType paragraph
195 DocBookWrapperTag author
196 DocBookWrapperTagType paragraph
197 DocBookWrapperMergeWithPrevious true
205 LatexParam {signature}
206 LabelString "Signature:"
208 DocBookWrapperTag abstract
209 DocBookWrapperAttr role='signature'
216 LatexParam {fromaddress}
217 LabelString "Sender Address:"
219 DocBookTagType paragraph
220 DocBookWrapperTag author
221 DocBookWrapperTagType paragraph
222 DocBookWrapperMergeWithPrevious true
230 LatexParam {fromphone}
231 LabelString "Sender Phone:"
232 # TODO: to be valid DocBook, this should be in the address.
234 DocBookTagType paragraph
235 DocBookWrapperTag author
236 DocBookWrapperTagType paragraph
237 DocBookWrapperMergeWithPrevious true
246 LabelString "Sender Fax:"
247 # TODO: to be valid DocBook, this should be in the address.
249 DocBookTagType paragraph
250 DocBookWrapperTag author
251 DocBookWrapperTagType paragraph
252 DocBookWrapperMergeWithPrevious true
260 LatexParam {fromemail}
261 LabelString "Sender E-Mail:"
263 DocBookTagType paragraph
264 DocBookWrapperTag author
265 DocBookWrapperTagType paragraph
266 DocBookWrapperMergeWithPrevious true
275 LabelString "Sender URL:"
277 DocBookTagType paragraph
278 DocBookWrapperTag author
279 DocBookWrapperTagType paragraph
280 DocBookWrapperMergeWithPrevious true
288 LatexParam {frombank}
290 DocBookTag personblurb
291 DocBookAttr role='bank'
292 DocBookTagType paragraph
293 DocBookWrapperTag author
294 DocBookWrapperTagType paragraph
295 DocBookWrapperMergeWithPrevious true
303 LatexParam {fromlogo}
314 DocBookTagType paragraph
315 DocBookWrapperTag address
316 DocBookWrapperTagType paragraph
317 DocBookWrapperMergeWithPrevious true
328 DocBookTagType paragraph
329 DocBookWrapperTag NONE
337 LatexParam {backaddress}
338 LabelString "Backaddress:"
340 DocBookWrapperTag address
341 DocBookWrapperTagType paragraph
342 DocBookWrapperMergeWithPrevious true
350 LatexParam {specialmail}
351 LabelString "Specialmail:"
352 # TODO: not implemented for DocBook, what is the meaning of this?
359 LatexParam {location}
360 LabelString "Location:"
361 # TODO: not implemented for DocBook, what is the meaning of this?
372 DocBookAttr role='title' # As opposed to subject.
373 DocBookTagType paragraph
374 DocBookWrapperTag NONE
383 LabelString "Subject:"
385 DocBookAttr role='title'
386 DocBookTagType paragraph
387 DocBookWrapperTag NONE
396 LabelString "Your ref.:"
411 LatexParam {yourmail}
412 LabelString "Your letter of:"
420 LabelString "Our ref.:"
427 LatexParam {customer}
428 LabelString "Customer no.:"
436 LabelString "Invoice no.:"
443 LatexName end{letter}
453 LabelString "End of letter"