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