]> git.lyx.org Git - lyx.git/blob - lib/layouts/europasscv.layout
Update covington support in linguistics module (file format change)
[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 100
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         textlabel3
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     DocBookNoFontInside   true
208 End
209
210 Style Nationality
211         CopyStyle       Name
212         LatexName       ecvnationality
213         LabelString     "Nationality:"
214         DocBookTag            date
215         DocBookAttr           role='nationality'
216         DocBookInInfo         always
217         DocBookWrapperTag     NONE
218     DocBookNoFontInside   true
219 End
220
221 Style Gender
222         CopyStyle       Name
223         LatexName       ecvgender
224         LabelString     "Gender:"
225         DocBookTag            date
226         DocBookAttr           role='gender'
227         DocBookInInfo         always
228         DocBookWrapperTag     NONE
229     DocBookNoFontInside   true
230 End
231
232 Style BeforePicture
233         CopyStyle       Name
234         LatexName       ecvbeforepicture
235         LabelString     "Space before picture:"
236         DocBookTag          IGNORE
237         DocBookWrapperTag   NONE
238 End
239
240 Style Picture
241         CopyStyle       Name
242         LatexName       ecvpicture
243         PassThru        true
244         LabelString     "Picture:"
245         Argument 1
246           LabelString   "Width"
247           Tooltip       "Resize photo to this width"
248         EndArgument
249         DocBookTag            date
250         DocBookAttr           role='picture'
251         DocBookInInfo         always
252         DocBookWrapperTag     NONE
253     DocBookNoFontInside   true
254 End
255
256 Style AfterPicture
257         CopyStyle       Name
258         LatexName       ecvafterpicture
259         LabelString     "Space after picture:"
260         DocBookTag          IGNORE
261         DocBookWrapperTag   NONE
262 End
263
264 Style Section
265         Category Sectioning
266         Margin          Dynamic
267         LatexType       Command
268         LatexName       ecvsection
269         NeedProtect     1
270         NextNoIndent    1
271         Argument 1
272           LabelString   "Vertical Space"
273           Tooltip       "Additional vertical space"
274         EndArgument
275         ParSkip         0.4
276         TopSep          1.3
277         BottomSep       0.7
278         ParSep          0.7
279         Align           Block
280         LabelSep        xxx
281         LabelType       No_Label
282         Font
283           Family        Sans
284           Series        Bold
285         EndFont
286         TocLevel        1
287     HTMLTag     h2
288         DocBookTag  title
289         DocBookTagType paragraph
290 End
291
292 Style Item
293         Margin          Dynamic
294         LatexType       Command
295         LatexName       ecvitem
296         Category        MainText
297         Argument 1
298           LabelString   "Vertical Space"
299           Tooltip       "Additional vertical space"
300         EndArgument
301         Argument 2
302           Mandatory     1
303           AutoInsert    0
304           LabelString   "Summary"
305           Tooltip       "Summary of the item, can also be the time span"
306           DocBookTag    emphasis
307           # TODO: For DocBook, this should rather be title, but it would be output in the paragraph, and not before the paragraph.
308         EndArgument
309         ParSkip         0.4
310         Align           Block
311         LabelSep        xx
312         LabelType       Static
313         LabelString     "Item:"
314         LabelFont
315           Series        Bold
316           Color         textlabel1
317         EndFont
318         DocBookTag      sidebar
319         DocBookTagType  block
320         DocBookItemTag  para
321 End
322
323 # The following Inset was defined in order to
324 # realize the following construct:
325 #
326 #  \ecvitem{}{
327 #    \begin{ecvitemize}
328 #        \item 1
329 #        \item 2
330 #    \end{ecvitemize}
331 #  }
332 #
333 InsetLayout Flex:ItemInset
334         LyxType         custom
335         LatexType       command
336         LatexName       ecvitem
337         Decoration      Classic
338         Argument 1
339           LabelString   "Vertical Space"
340           Tooltip       "Additional vertical space"
341         EndArgument
342         Argument 2
343           Mandatory     1
344           AutoInsert    1
345           LabelString   "Summary"
346           Tooltip       "Summary of the item, can also be the time span"
347         EndArgument
348         LabelString     "Subitems"
349         LabelFont
350           Series        Bold
351           Color         foreground
352         EndFont
353 End
354
355 Style TitleItem
356         CopyStyle       Item
357         LatexName       ecvtitle
358         TopSep          1.0
359         LabelString     "Title item:"
360         DocBookAttr role='title-item'
361 End
362
363 Style TitleLevel
364         CopyStyle       Item
365         LatexName       ecvtitlelevel
366         TopSep          1.0
367         LabelString     "Title level:"
368         Argument 3
369           Mandatory     1
370           AutoInsert    1
371           LabelString   "Text (right side)"
372           Tooltip       "Text (right side)"
373         EndArgument
374 End
375
376 Style BlueItem
377         CopyStyle       Item
378         LatexName       ecvblueitem
379         LabelString     "Blue item:"
380         DocBookAttr role='blue-item'
381 End
382
383 InsetLayout Flex:BlueItemInset
384         CopyStyle       Flex:ItemInset
385         LatexName       ecvblueitem
386         LabelString     "Blue subitems"
387         LabelFont
388           Series        Bold
389           Color         textlabel1
390         EndFont
391 End
392
393 Style BigItem
394         CopyStyle       Item
395         LatexName       ecvbigitem
396         LabelString     "Big Item:"
397         DocBookAttr role='big-item'
398 End
399
400 Style EcvItemize
401         Category              List
402         Margin                Static
403         LatexType             Item_Environment
404         LatexName             ecvitemize
405         Argument listpreamble:1
406                 LabelString    "List preamble"
407                 MenuString     "List Preamble"
408                 Tooltip        "LaTeX code to be inserted before the first item"
409                 PassThru       1
410                 Font
411                         Family typewriter
412                         Color latex
413                 EndFont
414         EndArgument
415         NextNoIndent          1
416         LeftMargin            MMN
417         LabelSep              xx
418         ItemSep               0.2
419         TopSep                0.7
420         BottomSep             0.7
421         ParSep                0.3
422         Align                 Block
423         AlignPossible         Block, Left
424         LabelType             Itemize
425         HTMLTag               ul
426         HTMLItem              li
427         HTMLLabel             NONE
428         Argument item:1
429                 LabelString   "Custom Item|s"
430                 Tooltip       "A customized item string"
431         EndArgument
432         DocBookTag            itemizedlist
433         DocBookItemTag        listitem
434         DocBookItemInnerTag   para
435 End
436
437 Style MotherTongue
438         Margin          Dynamic
439         LatexType       Command
440         LatexName       ecvmothertongue
441         Category        Language
442         ParSkip         0.4
443         Align           Block
444         LabelSep        xx
445         LabelType       Static
446         LabelString     "Mother Tongue:"
447         Font
448           Series        Bold
449         EndFont
450         LabelFont
451           Series        Bold
452           Color         textlabel1
453         EndFont
454         DocBookTag  para
455         DocBookAttr role='mother-tongue'
456 End
457
458 Style LangHeader
459         CopyStyle       MotherTongue
460         LatexType       Command
461         LatexName       ecvlanguageheader
462         LabelString     "Language Header:"
463         KeepEmpty       1
464         TopSep          0.2
465         BottomSep       0.2
466         ParSkip         0.4
467         Align           Block
468         LabelSep        xx
469         LabelType       Static
470         LabelFont
471           Series        Bold
472           Color         textlabel2
473         EndFont
474 End
475
476 Style Language
477         CopyStyle       LangHeader
478         LatexName       ecvlanguage
479         LabelString     "Language:"
480         Argument 1
481           Mandatory     1
482           AutoInsert    1
483           LabelString   "Language"
484           Tooltip       "Name of the language"
485           DocBookTag    phrase
486           DocBookAttr   role='language-name'
487         EndArgument
488         Argument 2
489           Mandatory     1
490           AutoInsert    1
491           LabelString   "Listening"
492           Tooltip       "Level how good you think you can listen"
493           DocBookTag    phrase
494           DocBookAttr   role='listening'
495         EndArgument
496         Argument 3
497           Mandatory     1
498           AutoInsert    1
499           LabelString   "Reading"
500           Tooltip       "Level how good you think you can read"
501           DocBookTag    phrase
502           DocBookAttr   role='reading'
503         EndArgument
504         Argument 4
505           Mandatory     1
506           AutoInsert    1
507           LabelString   "Interaction"
508           Tooltip       "Level how good you think you can conversate"
509           DocBookTag    phrase
510           DocBookAttr   role='speaking'
511         EndArgument
512         Argument 5
513           Mandatory     1
514           AutoInsert    1
515           LabelString   "Production"
516           Tooltip       "Level how good you think you can freely talk"
517           DocBookTag    phrase
518           DocBookAttr   role='writing'
519         EndArgument
520         DocBookTag  para
521         DocBookAttr role='language'
522 End
523
524 Style LastLanguage
525         CopyStyle       Language
526         LatexName       ecvlastlanguage
527         LabelString     "Last Language:"
528 End
529
530 Style LangFooter
531         CopyStyle       LangHeader
532         LatexName       ecvlanguagefooter
533         LabelString     "Language Footer:"
534 End
535
536 Style End
537         Margin          Dynamic
538         LatexType       Command
539         LatexName       end{europasscv}
540         Category        BackMatter
541         KeepEmpty       1
542         TopSep          1
543         ParSkip         0.4
544         Align           Block
545         LabelSep        xx
546         LabelType       Static
547         LabelString     "End of CV"
548         LabelFont
549           Series        Bold
550           Color         textlabel2
551         EndFont
552         Preamble
553                 \cvclosedtrue
554         EndPreamble
555 End
556
557 InsetLayout "Flex:Highlight"
558         LyxType         charstyle
559         LatexType       command
560         LatexName       ecvhighlight
561         Decoration      Conglomerate
562         LabelString     "Highlight"
563         Font
564           Color         textlabel3
565           Size          Small
566           Family        Roman
567           Shape         Up
568           Series        Medium
569           Misc          No_Emph
570           Misc          No_Noun
571           Misc          No_Bar
572         EndFont
573         LabelFont
574           Color         textlabel2
575           Size          Small
576         EndFont
577 End
578