]> git.lyx.org Git - features.git/blob - lib/layouts/europecv.layout
DocBook: implement European CV.
[features.git] / lib / layouts / europecv.layout
1 #% Do not delete the line below; configure depends on this
2 #  \DeclareLaTeXClass[europecv,fancyhdr.sty,longtable.sty,ucs.sty]{Europe CV}
3 #  \DeclareCategory{Curricula Vitae}
4 # europe CV textclass definition file.
5 # Author : Uwe Stöhr (uwestoehr@web.de)
6
7
8 # General textclass parameters
9 Format 85
10         Columns         1
11         Sides           1
12         SecNumDepth     -1
13         TocDepth        -1
14
15
16 # Standard style definition
17 Style Standard
18         Category        MainText
19         Margin          Static
20         LatexType       Paragraph
21         LatexName       dummy
22         ParIndent       MM
23         ParSkip         0.4
24         Align           Block
25         LabelType       No_Label
26         DocBookTag  para
27 End
28
29 Input stdcounters.inc
30 Input stdinsets.inc
31
32 Style Name
33         Margin          Dynamic
34         LatexType       Command
35         LatexName       ecvname
36         Category        FrontMatter
37         InPreamble      1
38         ParSkip         0.4
39         LabelSep        xx
40         LabelType       Static
41         LabelString     "Name:"
42         LabelFont
43           Series        Bold
44           Color         Blue
45         EndFont
46         DocBookTag            personname
47         DocBookTagType        paragraph
48         DocBookWrapperTag     author
49         DocBookWrapperTagType block
50         DocBookInInfo         always
51 End
52
53 Style FooterName
54         CopyStyle       Name
55         LatexName       ecvfootername
56         LabelString     "Footer name:"
57         DocBookTag            personname
58         DocBookTagType        paragraph
59         DocBookWrapperTag     author
60         DocBookWrapperAttr    role='footer'
61         DocBookWrapperTagType block
62         DocBookInInfo         always
63 End
64
65 Style Nationality
66         CopyStyle       Name
67         LatexName       ecvnationality
68         LabelString     "Nationality:"
69         DocBookTag            date
70         DocBookAttr           role='nationality'
71         DocBookInInfo         always
72         DocBookWrapperTag     NONE
73 End
74
75 Style Birthday
76         CopyStyle       Name
77         LatexName       ecvdateofbirth
78         LabelString     "Date of birth:"
79         DocBookTag            date
80         DocBookAttr           role='birthday'
81         DocBookInInfo         always
82         DocBookWrapperTag     NONE
83 End
84
85 Style Address
86         CopyStyle       Name
87         LatexName       ecvaddress
88         LabelString     "Address:"
89         DocBookTag            NONE
90         DocBookWrapperTag     address
91         DocBookWrapperTagType block
92         DocBookWrapperMergeWithPrevious true
93         DocBookInInfo         always
94 End
95
96 Style Email
97         CopyStyle       Name
98         LatexName       ecvemail
99         LabelString     "E-mail:"
100         DocBookTag            email
101         DocBookTagType        paragraph
102         DocBookWrapperTag     address
103         DocBookWrapperTagType block
104         DocBookWrapperMergeWithPrevious true
105         DocBookInInfo         always
106 End
107
108 Style Telephone
109         CopyStyle       Name
110         LatexName       ecvtelephone
111         LabelString     "Telephone:"
112         Argument 1
113           LabelString   "Mobile"
114           Tooltip       "Mobile phone number"
115           DocBookTag    phrase
116           DocBookAttr   role='mobile'
117         EndArgument
118         DocBookTag            phone
119         DocBookTagType        paragraph
120         DocBookWrapperTag     address
121         DocBookWrapperTagType block
122         DocBookWrapperMergeWithPrevious true
123         DocBookInInfo         always
124 End
125
126 Style Gender
127         CopyStyle       Name
128         LatexName       ecvgender
129         LabelString     "Gender:"
130         DocBookTag            date
131         DocBookAttr           role='gender'
132         DocBookInInfo         always
133         DocBookWrapperTag     NONE
134 End
135
136 Style Fax
137         CopyStyle       Name
138         LatexName       ecvfax
139         LabelString     "Fax:"
140         DocBookTag            fax
141         DocBookTagType        paragraph
142         DocBookWrapperTag     address
143         DocBookWrapperTagType block
144         DocBookWrapperMergeWithPrevious true
145         DocBookInInfo         always
146 End
147
148 Style BeforePicture
149         CopyStyle       Name
150         LatexName       ecvbeforepicture
151         LabelString     "Space before picture:"
152         DocBookTag            date
153         DocBookAttr           role='before-picture'
154         DocBookInInfo         always
155         DocBookWrapperTag     NONE
156 End
157
158 Style Picture
159         CopyStyle       Name
160         LatexName       ecvpicture
161         PassThru        true
162         LabelString     "Picture:"
163         Argument 1
164           LabelString   "Size"
165           Tooltip       "Size the photo is resized to"
166           PassThru      1
167         EndArgument
168         DocBookTag            date
169         DocBookAttr           role='picture'
170         DocBookInInfo         always
171         DocBookWrapperTag     NONE
172 End
173
174 Style AfterPicture
175         CopyStyle       Name
176         LatexName       ecvafterpicture
177         LabelString     "Space after picture:"
178         DocBookTag            date
179         DocBookAttr           role='after-picture'
180         DocBookInInfo         always
181         DocBookWrapperTag     NONE
182 End
183
184 Style Page
185         CopyStyle       Name
186         LatexName       ecvpage
187         LabelString     "Page:"
188         DocBookTag  NONE
189         DocBookWrapperTag NONE
190 End
191
192 Style Section
193         Category        Sectioning
194         Margin          Dynamic
195         LatexType       Command
196         LatexName       ecvsection
197         NeedProtect     1
198         NextNoIndent    1
199         Argument 1
200           LabelString   "Short Title|S"
201           Tooltip       "The title as it appears in the header"
202           InsertCotext  1
203           IsTocCaption  1
204         EndArgument
205         ParSkip         0.4
206         TopSep          1.3
207         BottomSep       0.7
208         ParSep          0.7
209         Align           Block
210         LabelSep        xxx
211         LabelType       No_Label
212         Font
213           Family        Sans
214           Series        Bold
215         EndFont
216         TocLevel        1
217         DocBookTag  title
218         DocBookTagType paragraph
219 End
220
221 Style Item
222         Margin          Dynamic
223         LatexType       Command
224         LatexName       ecvitem
225         Category        MainText
226         Argument 1
227           LabelString   "Vertical Space"
228           Tooltip       "Additional vertical space"
229           PassThru      1
230         EndArgument
231         Argument 2
232           Mandatory     1
233           AutoInsert    1
234           LabelString   "Summary"
235           Tooltip       "Summary of the item, can also be the time"
236           DocBookTag    emphasis
237           # TODO: For DocBook, this should rather be title, but it would be output in the paragraph, and not before the paragraph.
238         EndArgument
239         ParSkip         0.4
240         Align           Block
241         LabelSep        xx
242         LabelType       Static
243         LabelString     "Item:"
244         LabelFont
245           Series        Bold
246           Color         Blue
247         EndFont
248         DocBookTag      sidebar
249         DocBookTagType  block
250         DocBookItemTag  para
251 End
252
253 Style BulletedItem
254         CopyStyle       Item
255         LatexName       ecvitem*
256         LabelString     "Bulleted Item:"
257         DocBookAttr role='bulleted'
258 End
259
260 Style Begin
261         Margin          Dynamic
262         LatexType       Command
263         LatexName       begin{europecv}
264         Category        FrontMatter
265         KeepEmpty       1
266         TopSep          1
267         BottomSep       1
268         ParSkip         0.4
269         Align           Block
270         LabelSep        xx
271         LabelType       Static
272         LabelString     "Begin of CV"
273         LabelFont
274           Series        Bold
275           Color         Green
276         EndFont
277 End
278
279 Style PersonalInfo
280         CopyStyle       Begin
281         LatexName       ecvpersonalinfo{}
282         TopSep          0
283         BottomSep       0
284         LabelString     "Personal Info"
285 End
286
287 Style MotherTongue
288         Margin          Dynamic
289         LatexType       Command
290         LatexName       ecvmothertongue
291         Category        MainText
292         Argument 1
293           LabelString   "Vertical Space"
294           Tooltip       "Additional vertical space"
295           PassThru      1
296         EndArgument
297         ParSkip         0.4
298         Align           Block
299         LabelSep        xx
300         LabelType       Static
301         LabelString     "Mother Tongue:"
302         Font
303           Series        Bold
304         EndFont
305         LabelFont
306           Series        Bold
307           Color         Blue
308         EndFont
309         DocBookTag  para
310         DocBookAttr role='mother-tongue'
311 End
312
313 Style LangHeader
314         CopyStyle       MotherTongue
315         LatexName       ecvlanguageheader
316         ResetArgs       1
317         LabelString     "Language Header:"
318 End
319
320 Style Language
321         CopyStyle       MotherTongue
322         LatexName       ecvlanguage
323         LabelString     "Language:"
324         Argument 2
325           Mandatory     1
326           LabelString   "Language"
327           Tooltip       "Name of the language"
328           DocBookTag    phrase
329           DocBookAttr   role='language-name'
330         EndArgument
331         Argument 3
332           Mandatory     1
333           LabelString   "Listening"
334           Tooltip       "Level how good you think you can listen"
335           DocBookTag    phrase
336           DocBookAttr   role='listening'
337         EndArgument
338         Argument 4
339           Mandatory     1
340           LabelString   "Reading"
341           Tooltip       "Level how good you think you can read"
342           DocBookTag    phrase
343           DocBookAttr   role='reading'
344         EndArgument
345         Argument 5
346           Mandatory     1
347           LabelString   "Interaction"
348           Tooltip       "Level how good you think you can conversate"
349           DocBookTag    phrase
350           DocBookAttr   role='speaking'
351         EndArgument
352         Argument 6
353           Mandatory     1
354           LabelString   "Production"
355           Tooltip       "Level how good you think you can freely talk"
356           DocBookTag    phrase
357           DocBookAttr   role='writing'
358         EndArgument
359         DocBookTag  para
360         DocBookAttr role='language'
361 End
362
363 Style LastLanguage
364         CopyStyle       Language
365         LatexName       ecvlastlanguage
366         LabelString     "Last Language:"
367 End
368
369 Style LangFooter
370         CopyStyle       LangHeader
371         LatexName       ecvlanguagefooter
372         LabelString     "Language Footer:"
373 End
374
375 Style End
376         Margin          Dynamic
377         LatexType       Command
378         LatexName       end{europecv}
379         Category        BackMatter
380         KeepEmpty       1
381         TopSep          1
382         ParSkip         0.4
383         Align           Block
384         LabelSep        xx
385         LabelType       Static
386         LabelString     "End of CV"
387         LabelFont
388           Series        Bold
389           Color         Green
390         EndFont
391 End
392
393 InsetLayout "Flex:VerticalSpace"
394         LyxType         custom
395         LatexType       command
396         LatexName       ecvspace
397         Decoration      Conglomerate
398         LabelString     "Vertical space"
399         Font
400           Color         foreground
401           Size          Small
402           Family        Roman
403           Shape         Up
404           Series        Medium
405           Misc          No_Emph
406           Misc          No_Noun
407           Misc          No_Bar
408         EndFont
409         LabelFont
410           Color         green
411           Size          Small
412         EndFont
413 End
414