]> git.lyx.org Git - lyx.git/blob - lib/layouts/scrlettr.layout
DocBook: implement modern CV.
[lyx.git] / lib / layouts / scrlettr.layout
1 #% Do not delete the line below; configure depends on this
2 #  \DeclareLaTeXClass{KOMA-Script Letter (V. 1, Obsolete)}
3 #  \DeclareCategory{Obsolete}
4 # KOMA scrlettr textclass definition file.
5 # Bernd Rellermeyer <100.41728@germanynet.de>, 1999/2/17.
6
7 Format 85
8
9 Style Standard
10         Category              MainText
11         LatexName             dummy
12         ParSep                0.4
13         AlignPossible         Block, Left, Right, Center
14         DocBookTag            para
15 End
16
17 Input stdlists.inc
18 Input stdcounters.inc
19 Input stdinsets.inc
20
21 Style Description
22         LabelFont
23           Family              Sans
24         EndFont
25 End
26
27
28 Style Labeling
29         CopyStyle             List
30         LatexName             labeling
31         # overwrite the preamble code definition
32         Preamble
33         EndPreamble
34 End
35
36 Style List
37         Obsoletedby           Labeling
38 End
39
40 Input stdlayouts.inc
41
42
43
44 Style Letter
45         Category              Letter
46         LatexType             Command
47         LatexName             letter
48         KeepEmpty             1
49         LabelSep              xx
50         TopSep                1.5
51         BottomSep             1.5
52         ParSep                1.5
53         Align                 Left
54         LabelType             Static
55         LabelString           "L"
56         LabelFont
57           Series              Bold
58           Shape               Italic
59           Size                Small
60           Color               Blue
61         EndFont
62         # TODO: not supported by DocBook, it's related to having several letters in one document.
63 End
64
65
66 Style Opening
67         CopyStyle             Letter
68         LatexName             lyxopening
69         LabelString           "O"
70         Preamble
71           \newcommand{\lyxopening}[1]{\pagebreak\startbreaks\opening{#1}}
72         EndPreamble
73         DocBookTag            para
74         DocBookAttr           role='opening'
75 End
76
77
78 Style Closing
79         Category              Letter
80         LatexType             Command
81         LatexName             closing
82         KeepEmpty             0
83         TopSep                1.5
84         BottomSep             1.5
85         ParSep                1.5
86         Align                 Left
87         DocBookTag            para
88         DocBookAttr           role='closing'
89 End
90
91
92 Style PS
93         LatexType             Command
94         LatexName             ps
95         TopSep                0.4
96         BottomSep             0.4
97         ParSep                0.4
98         Align                 Left
99         DocBookTag            para
100         DocBookAttr           role='post-scriptum'
101 End
102
103
104 Style CC
105         LatexType             Command
106         LatexName             cc
107         LeftMargin            xxxx::xx
108         LabelSep              xx
109         TopSep                0.4
110         BottomSep             0.4
111         ParSep                0.4
112         Align                 Left
113         LabelType             Static
114         LabelString           "cc:"
115         DocBookTag            para
116         DocBookAttr           role='carbon-copy'
117 End
118
119
120 Style Encl
121         CopyStyle             CC
122         LatexName             encl
123         LabelString           "encl:"
124         DocBookTag            para
125         DocBookAttr           role='enclosed'
126 End
127
128
129 Style Name
130         Category              Letter
131         LatexType             Command
132         LatexName             name
133         KeepEmpty             1
134         LeftMargin            xxxxxxxxxxxx::xx
135         LabelSep              xx
136         TopSep                0.4
137         BottomSep             0.4
138         ParSep                0.4
139         Align                 Left
140         LabelType             Static
141         LabelString           "Name:"
142         LabelFont
143           Series              Bold
144           Shape               Italic
145           Color               Blue
146         EndFont
147         DocBookTag            personname
148         DocBookTagType        paragraph
149         DocBookWrapperTag     author
150         DocBookWrapperTagType inline
151         DocBookInInfo         always 
152 End
153
154
155 Style Signature
156         CopyStyle             Name
157         LatexName             signature
158         LabelString           "Signature:"
159         DocBookTag            para
160         DocBookAttr           role='signature'
161 End
162
163
164 Style Address
165         CopyStyle             Name
166         LatexName             address
167         LabelString           "Address:"
168     DocBookTag            NONE
169     DocBookWrapperTag     address
170         DocBookWrapperAttr    role='send-to-address'
171     DocBookWrapperMergeWithPrevious  true
172     DocBookInInfo         always
173 End
174
175
176 Style Telephone
177         CopyStyle             Name
178         LatexName             telephone
179         LabelString           "Telephone:"
180         # TODO: to be valid DocBook, this should be in the address.
181         DocBookTag            phone
182         DocBookTagType        paragraph
183         DocBookWrapperTag     author
184         DocBookWrapperTagType paragraph
185         DocBookWrapperMergeWithPrevious true
186         DocBookInInfo         always    
187 End
188
189
190 Style Place
191         CopyStyle             Name
192         LatexName             place
193         LabelString           "Place:"
194         DocBookTag            country
195         DocBookTagType        paragraph
196         DocBookWrapperTag     address
197         DocBookWrapperTagType paragraph
198         DocBookWrapperMergeWithPrevious true
199         DocBookInInfo         always
200 End
201
202
203 Style Date
204         CopyStyle             Name
205         LatexName             date
206         LabelString           "Date:"
207         DocBookTag            date
208         DocBookTagType        paragraph
209         DocBookWrapperTag     NONE
210         DocBookInInfo         always
211 End
212
213
214 Style Backaddress
215         CopyStyle             Name
216         LatexName             backaddress
217         LabelString           "Backaddress:"
218         DocBookTag            NONE
219         DocBookWrapperTag     address
220         DocBookWrapperTagType paragraph
221         DocBookWrapperMergeWithPrevious true
222         DocBookInInfo         always
223 End
224
225
226 Style Specialmail
227         CopyStyle             Name
228         LatexName             specialmail
229         LabelString           "Specialmail:"
230         # TODO: not implemented for DocBook, what is the meaning of this?
231 End
232
233
234 Style Location
235         CopyStyle             Name
236         LatexName             location
237         LabelString           "Location:"
238         # TODO: not implemented for DocBook, what is the meaning of this?
239 End
240
241
242 Style Title
243         CopyStyle             Name
244         LatexName             title
245         LabelString           "Title:"
246         HTMLTitle             true
247         DocBookTag            title
248         DocBookAttr           role='title' # As opposed to subject.
249         DocBookTagType        paragraph
250         DocBookWrapperTag     NONE
251         DocBookInInfo         maybe
252 End
253
254
255 Style Subject
256         CopyStyle             Name
257         LatexName             subject
258         LabelString           "Subject:"
259         DocBookTag            title
260         DocBookAttr           role='title'
261         DocBookTagType        paragraph
262         DocBookWrapperTag     NONE
263         DocBookInInfo         maybe
264 End
265
266
267 Style Yourref
268         CopyStyle             Name
269         LatexName             yourref
270         LabelString           "Your ref.:"
271         LabelFont
272           Family              Sans
273           Series              Medium
274           Shape               Up
275           Size                Small
276           Color               None
277         EndFont
278 End
279
280
281 Style Yourmail
282         CopyStyle             Yourref
283         LatexName             yourmail
284         LabelString           "Your letter of:"
285 End
286
287
288 Style Myref
289         CopyStyle             Yourref
290         LatexName             myref
291         LabelString           "Our ref.:"
292 End
293
294
295 Style Customer
296         CopyStyle             Yourref
297         LatexName             customer
298         LabelString           "Customer no.:"
299 End
300
301
302 Style Invoice
303         CopyStyle             Yourref
304         LatexName             invoice
305         LabelString           "Invoice no.:"
306 End