]> git.lyx.org Git - lyx.git/blob - lib/layouts/europasscv.layout
Update layouts
[lyx.git] / lib / layouts / europasscv.layout
1 #% Do not delete the line below; configure depends on this
2 #  \DeclareLaTeXClass[europasscv,footnote.sty,tabu.sty,totpages.sty]{Europass CV (2013)}
3 #  \DeclareCategory{Curricula Vitae}
4 #
5 # Layout definition file for the europasscv class package.
6 #
7 # The europasscv package is developed and maintained by
8 # Giacomo Mazzamuto, see 
9 #       http://www.ctan.org/pkg/europasscv 
10 # and was released under the Latex Project Public 
11 # License 1.3.
12 #
13 # The actual europass CV is developed and maintained by
14 # European Centre for the Development of 
15 # Vocational Training (Cedefop), refer to
16 #       http://europass.cedefop.europa.eu .
17 #
18 # This file is loosely based on the work of Uwe Stöhr
19 # in 'europecv.layout'.
20 #
21 # Author: Stefan Swerk (stefan_lyx@swerk.priv.at)
22 # Version: 1.2 - 2015.03.15: 
23 #   Removed invalid InsetLayout arguments.
24 #   Contributions by Jürgen Spitzmüller:
25 #       - Refined TitleLatexName to eliminate the need for
26 #         manual specification of \begin{europasscv}
27 #         and \ecvpersonalinfo.
28 #       - The document will now be automatically closed
29 #         (\end{europasscv}) in case it was not ended manually.
30 #       - Fixed spelling mistakes, formatting, etc.
31 # Version: 1.1 - 2015.03.15: 
32 #   Changed InsetLayout Decoration from "Conglomerate" to "Classic".
33 #   (Thanks to Jürgen Spitzmüller for this suggestion).
34 # Version: 1.0 - 2015.03.14: Initial draft.
35
36
37 # General textclass parameters
38 Format 89
39
40 Columns          1
41 Sides            1
42 SecNumDepth     -1
43 TocDepth        -1
44 TitleLatexName  begin{europasscv}\ecvpersonalinfo
45
46 # These packages are loaded by the class
47 Provides url 1
48 Provides inputenc 1
49 Provides soul 1
50 Provides geometry 1
51 Provides hyperref 1
52
53 AddToPreamble
54         \newif\ifcvclosed
55         \AtEndDocument{\ifcvclosed\else\end{europasscv}\fi}
56 EndPreamble
57
58 # Standard style definition
59 Style Standard
60         Category        MainText
61         Margin          Static
62         LatexType       Paragraph
63         LatexName       dummy
64         ParIndent       MM
65         ParSkip         0.4
66         Align           Block
67         LabelType       No_Label
68         DocBookTag  para
69 End
70
71 Input stdcounters.inc
72 Input stdinsets.inc
73 Input stdlists.inc
74
75 Style Name
76         Margin          Static
77         LatexType       Command
78         LatexName       ecvname
79         Category        FrontMatter
80         InPreamble      1
81         InTitle         1
82         ParSkip         0.4
83         LabelSep        xx
84         LabelType       Static
85         LabelString     "Name:"
86         LeftMargin      "xxxxxxx xxxxxxxxxx:xx"
87         LabelSep        xx
88         Align           Left
89         LabelFont
90           Series        Bold
91           Color         Magenta
92         EndFont
93         DocBookTag            personname
94         DocBookTagType        paragraph
95         DocBookWrapperTag     author
96         DocBookWrapperTagType block
97         DocBookInInfo         always
98 End
99
100 Style FooterName
101         CopyStyle       Name
102         LatexName       ecvfootername
103         LabelString     "Name (footer):"
104         DocBookTag            personname
105         DocBookTagType        paragraph
106         DocBookWrapperTag     author
107         DocBookWrapperAttr    role='footer'
108         DocBookWrapperTagType block
109         DocBookInInfo         always
110 End
111
112 Style Address
113         CopyStyle       Name
114         LatexName       ecvaddress
115         LabelString     "Address:"
116         DocBookTag            NONE
117         DocBookWrapperTag     address
118         DocBookWrapperTagType block
119         DocBookWrapperMergeWithPrevious true
120         DocBookInInfo         always
121 End
122
123 Style Telephone
124         CopyStyle       Name
125         LatexName       ecvtelephone
126         LabelString     "Telephone:"
127         Argument 1
128           LabelString   "Mobile:"
129           Tooltip       "Mobile phone number"
130           DocBookTag    phrase
131           DocBookAttr   role='mobile'
132         EndArgument
133         DocBookTag            phone
134         DocBookTagType        paragraph
135         DocBookWrapperTag     address
136         DocBookWrapperTagType block
137         DocBookWrapperMergeWithPrevious true
138         DocBookInInfo         always
139 End
140
141 Style Fax
142         CopyStyle       Name
143         LatexName       ecvfax
144         LabelString     "Fax:"
145         DocBookTag            fax
146         DocBookTagType        paragraph
147         DocBookWrapperTag     address
148         DocBookWrapperTagType block
149         DocBookWrapperMergeWithPrevious true
150         DocBookInInfo         always
151 End
152
153 Style Email
154         CopyStyle       Name
155         LatexName       ecvemail
156         LabelString     "E-mail:"
157         DocBookTag            email
158         DocBookTagType        paragraph
159         DocBookWrapperTag     address
160         DocBookWrapperTagType block
161         DocBookWrapperMergeWithPrevious true
162         DocBookInInfo         always
163 End
164
165 Style Homepage
166         CopyStyle       Name
167         LatexName       ecvhomepage
168         LabelString     "Homepage:"
169         DocBookTag            uri
170         DocBookAttr           type='homepage'
171         DocBookTagType        paragraph
172         DocBookWrapperTag     address
173         DocBookWrapperTagType block
174         DocBookWrapperMergeWithPrevious true
175         DocBookInInfo         always
176 End
177
178 Style InstantMessaging
179         CopyStyle       Name
180         LatexName       ecvim
181         LabelString     "Instant Messaging:"
182         Argument 1
183           Mandatory     1
184           AutoInsert    1
185           LabelString   "IM Type:"
186           Tooltip       "IM Type (e.g., AOL Messenger)"
187           DocBookTag    emphasis
188           DocBookAttr   role='type'
189         EndArgument
190         DocBookTag            uri
191         DocBookAttr           type='instant-messaging'
192         DocBookTagType        paragraph
193         DocBookWrapperTag     address
194         DocBookWrapperTagType block
195         DocBookWrapperMergeWithPrevious true
196         DocBookInInfo         always
197 End
198
199 Style Birthday
200         CopyStyle       Name
201         LatexName       ecvdateofbirth
202         LabelString     "Date of birth:"
203         DocBookTag            date
204         DocBookAttr           role='birthday'
205         DocBookInInfo         always
206         DocBookWrapperTag     NONE
207 End
208
209 Style Nationality
210         CopyStyle       Name
211         LatexName       ecvnationality
212         LabelString     "Nationality:"
213         DocBookTag            date
214         DocBookAttr           role='nationality'
215         DocBookInInfo         always
216         DocBookWrapperTag     NONE
217 End
218
219 Style Gender
220         CopyStyle       Name
221         LatexName       ecvgender
222         LabelString     "Gender:"
223         DocBookTag            date
224         DocBookAttr           role='gender'
225         DocBookInInfo         always
226         DocBookWrapperTag     NONE
227 End
228
229 Style BeforePicture
230         CopyStyle       Name
231         LatexName       ecvbeforepicture
232         LabelString     "Space before picture:"
233         DocBookTag          IGNORE
234         DocBookWrapperTag   NONE
235 End
236
237 Style Picture
238         CopyStyle       Name
239         LatexName       ecvpicture
240         PassThru        true
241         LabelString     "Picture:"
242         Argument 1
243           LabelString   "Width"
244           Tooltip       "Resize photo to this width"
245         EndArgument
246         DocBookTag            date
247         DocBookAttr           role='picture'
248         DocBookInInfo         always
249         DocBookWrapperTag     NONE
250 End
251
252 Style AfterPicture
253         CopyStyle       Name
254         LatexName       ecvafterpicture
255         LabelString     "Space after picture:"
256         DocBookTag          IGNORE
257         DocBookWrapperTag   NONE
258 End
259
260 Style Section
261         Category Sectioning
262         Margin          Dynamic
263         LatexType       Command
264         LatexName       ecvsection
265         NeedProtect     1
266         NextNoIndent    1
267         Argument 1
268           LabelString   "Vertical Space"
269           Tooltip       "Additional vertical space"
270         EndArgument
271         ParSkip         0.4
272         TopSep          1.3
273         BottomSep       0.7
274         ParSep          0.7
275         Align           Block
276         LabelSep        xxx
277         LabelType       No_Label
278         Font
279           Family        Sans
280           Series        Bold
281         EndFont
282         TocLevel        1
283         DocBookTag  title
284         DocBookTagType paragraph
285 End
286
287 Style Item
288         Margin          Dynamic
289         LatexType       Command
290         LatexName       ecvitem
291         Category        MainText
292         Argument 1
293           LabelString   "Vertical Space"
294           Tooltip       "Additional vertical space"
295         EndArgument
296         Argument 2
297           Mandatory     1
298           AutoInsert    0
299           LabelString   "Summary"
300           Tooltip       "Summary of the item, can also be the time span"
301           DocBookTag    emphasis
302           # TODO: For DocBook, this should rather be title, but it would be output in the paragraph, and not before the paragraph.
303         EndArgument
304         ParSkip         0.4
305         Align           Block
306         LabelSep        xx
307         LabelType       Static
308         LabelString     "Item:"
309         LabelFont
310           Series        Bold
311           Color         Blue
312         EndFont
313         DocBookTag      sidebar
314         DocBookTagType  block
315         DocBookItemTag  para
316 End
317
318 # The following Inset was defined in order to
319 # realize the following construct:
320 #
321 #  \ecvitem{}{
322 #    \begin{ecvitemize}
323 #        \item 1
324 #        \item 2
325 #    \end{ecvitemize}
326 #  }
327 #
328 InsetLayout Flex:ItemInset
329         LyxType         custom
330         LatexType       command
331         LatexName       ecvitem
332         Decoration      Classic
333         Argument 1
334           LabelString   "Vertical Space"
335           Tooltip       "Additional vertical space"
336         EndArgument
337         Argument 2
338           Mandatory     1
339           AutoInsert    1
340           LabelString   "Summary"
341           Tooltip       "Summary of the item, can also be the time span"
342         EndArgument
343         LabelString     "Subitems"
344         LabelFont
345           Series        Bold
346           Color         Black
347         EndFont
348 End
349
350 Style TitleItem
351         CopyStyle       Item
352         LatexName       ecvtitle
353         TopSep          1.0
354         LabelString     "Title item:"
355         DocBookAttr role='title-item'
356 End
357
358 Style TitleLevel
359         CopyStyle       Item
360         LatexName       ecvtitlelevel
361         TopSep          1.0
362         LabelString     "Title level:"
363         Argument 3
364           Mandatory     1
365           AutoInsert    1
366           LabelString   "Text (right side)"
367           Tooltip       "Text (right side)"
368         EndArgument
369 End
370
371 Style BlueItem
372         CopyStyle       Item
373         LatexName       ecvblueitem
374         LabelString     "Blue item:"
375         DocBookAttr role='blue-item'
376 End
377
378 InsetLayout Flex:BlueItemInset
379         CopyStyle       Flex:ItemInset
380         LatexName       ecvblueitem
381         LabelString     "Blue subitems"
382         LabelFont
383           Series        Bold
384           Color         Blue
385         EndFont
386 End
387
388 Style BigItem
389         CopyStyle       Item
390         LatexName       ecvbigitem
391         LabelString     "Big Item:"
392         DocBookAttr role='big-item'
393 End
394
395 Style EcvItemize
396         Category              List
397         Margin                Static
398         LatexType             Item_Environment
399         LatexName             ecvitemize
400         Argument listpreamble:1
401                 LabelString    "List preamble"
402                 MenuString     "List Preamble"
403                 Tooltip        "LaTeX code to be inserted before the first item"
404                 PassThru       1
405                 Font
406                         Family typewriter
407                         Color latex
408                 EndFont
409         EndArgument
410         NextNoIndent          1
411         LeftMargin            MMN
412         LabelSep              xx
413         ItemSep               0.2
414         TopSep                0.7
415         BottomSep             0.7
416         ParSep                0.3
417         Align                 Block
418         AlignPossible         Block, Left
419         LabelType             Itemize
420         HTMLTag               ul
421         HTMLItem              li
422         HTMLLabel             NONE
423         Argument item:1
424                 LabelString   "Custom Item|s"
425                 Tooltip       "A customized item string"
426         EndArgument
427         DocBookTag            itemizedlist
428         DocBookItemTag        listitem
429         DocBookItemInnerTag   para
430 End
431
432 Style MotherTongue
433         Margin          Dynamic
434         LatexType       Command
435         LatexName       ecvmothertongue
436         Category        Language
437         ParSkip         0.4
438         Align           Block
439         LabelSep        xx
440         LabelType       Static
441         LabelString     "Mother Tongue:"
442         Font
443           Series        Bold
444         EndFont
445         LabelFont
446           Series        Bold
447           Color         Blue
448         EndFont
449         DocBookTag  para
450         DocBookAttr role='mother-tongue'
451 End
452
453 Style LangHeader
454         CopyStyle       MotherTongue
455         LatexType       Command
456         LatexName       ecvlanguageheader
457         LabelString     "Language Header:"
458         KeepEmpty       1
459         TopSep          0.2
460         BottomSep       0.2
461         ParSkip         0.4
462         Align           Block
463         LabelSep        xx
464         LabelType       Static
465         LabelFont
466           Series        Bold
467           Color         Green
468         EndFont
469 End
470
471 Style Language
472         CopyStyle       LangHeader
473         LatexName       ecvlanguage
474         LabelString     "Language:"
475         Argument 1
476           Mandatory     1
477           AutoInsert    1
478           LabelString   "Language"
479           Tooltip       "Name of the language"
480           DocBookTag    phrase
481           DocBookAttr   role='language-name'
482         EndArgument
483         Argument 2
484           Mandatory     1
485           AutoInsert    1
486           LabelString   "Listening"
487           Tooltip       "Level how good you think you can listen"
488           DocBookTag    phrase
489           DocBookAttr   role='listening'
490         EndArgument
491         Argument 3
492           Mandatory     1
493           AutoInsert    1
494           LabelString   "Reading"
495           Tooltip       "Level how good you think you can read"
496           DocBookTag    phrase
497           DocBookAttr   role='reading'
498         EndArgument
499         Argument 4
500           Mandatory     1
501           AutoInsert    1
502           LabelString   "Interaction"
503           Tooltip       "Level how good you think you can conversate"
504           DocBookTag    phrase
505           DocBookAttr   role='speaking'
506         EndArgument
507         Argument 5
508           Mandatory     1
509           AutoInsert    1
510           LabelString   "Production"
511           Tooltip       "Level how good you think you can freely talk"
512           DocBookTag    phrase
513           DocBookAttr   role='writing'
514         EndArgument
515         DocBookTag  para
516         DocBookAttr role='language'
517 End
518
519 Style LastLanguage
520         CopyStyle       Language
521         LatexName       ecvlastlanguage
522         LabelString     "Last Language:"
523 End
524
525 Style LangFooter
526         CopyStyle       LangHeader
527         LatexName       ecvlanguagefooter
528         LabelString     "Language Footer:"
529 End
530
531 Style End
532         Margin          Dynamic
533         LatexType       Command
534         LatexName       end{europasscv}
535         Category        BackMatter
536         KeepEmpty       1
537         TopSep          1
538         ParSkip         0.4
539         Align           Block
540         LabelSep        xx
541         LabelType       Static
542         LabelString     "End of CV"
543         LabelFont
544           Series        Bold
545           Color         Green
546         EndFont
547         Preamble
548                 \cvclosedtrue
549         EndPreamble
550 End
551
552 InsetLayout "Flex:Highlight"
553         LyxType         charstyle
554         LatexType       command
555         LatexName       ecvhighlight
556         Decoration      Conglomerate
557         LabelString     "Highlight"
558         Font
559           Color         red
560           Size          Small
561           Family        Roman
562           Shape         Up
563           Series        Medium
564           Misc          No_Emph
565           Misc          No_Noun
566           Misc          No_Bar
567         EndFont
568         LabelFont
569           Color         green
570           Size          Small
571         EndFont
572 End
573