]> git.lyx.org Git - lyx.git/blob - lib/layouts/europasscv.layout
europasscv.layout: add dependencies
[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 59
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 End
69
70 Input stdcounters.inc
71 Input stdinsets.inc
72 Input stdlists.inc
73
74 Style Name
75         Margin          Static
76         LatexType       Command
77         LatexName       ecvname
78         Category        FrontMatter
79         InPreamble      1
80         InTitle         1
81         ParSkip         0.4
82         LabelSep        xx
83         LabelType       Static
84         LabelString     "Name:"
85         LeftMargin      "xxxxxxx xxxxxxxxxx:xx"
86         LabelSep        xx
87         Align           Left
88         LabelFont
89           Series        Bold
90           Color         Magenta
91         EndFont
92 End
93
94 Style FooterName
95         CopyStyle       Name
96         LatexName       ecvfootername
97         LabelString     "Name (footer):"
98 End
99
100 Style Address
101         CopyStyle       Name
102         LatexName       ecvaddress
103         LabelString     "Address:"
104 End
105
106 Style Telephone
107         CopyStyle       Name
108         LatexName       ecvtelephone
109         LabelString     "Telephone:"
110         Argument 1
111           LabelString   "Mobile:"
112           Tooltip       "Mobile phone number"
113         EndArgument
114 End
115
116 Style Fax
117         CopyStyle       Name
118         LatexName       ecvfax
119         LabelString     "Fax:"
120 End
121
122 Style Email
123         CopyStyle       Name
124         LatexName       ecvemail
125         LabelString     "E-mail:"
126 End
127
128 Style Homepage
129         CopyStyle       Name
130         LatexName       ecvhomepage
131         LabelString     "Homepage:"
132 End
133
134 Style InstantMessaging
135         CopyStyle       Name
136         LatexName       ecvim
137         LabelString     "Instant Messaging:"
138         Argument 1
139           Mandatory     1
140           AutoInsert    1
141           LabelString   "IM Type:"
142           Tooltip       "IM Type (e.g., AOL Messenger)"
143         EndArgument
144 End
145
146 Style Birthday
147         CopyStyle       Name
148         LatexName       ecvdateofbirth
149         LabelString     "Date of birth:"
150 End
151
152 Style Nationality
153         CopyStyle       Name
154         LatexName       ecvnationality
155         LabelString     "Nationality:"
156 End
157
158 Style Gender
159         CopyStyle       Name
160         LatexName       ecvgender
161         LabelString     "Gender:"
162 End
163
164 Style BeforePicture
165         CopyStyle       Name
166         LatexName       ecvbeforepicture
167         LabelString     "Space before picture:"
168 End
169
170 Style Picture
171         CopyStyle       Name
172         LatexName       ecvpicture
173         LabelString     "Picture:"
174         Argument 1
175           LabelString   "Width"
176           Tooltip       "Resize photo to this width"
177         EndArgument
178 End
179
180 Style AfterPicture
181         CopyStyle       Name
182         LatexName       ecvafterpicture
183         LabelString     "Space after picture:"
184 End
185
186 Style Section
187         Category Sectioning
188         Margin          Dynamic
189         LatexType       Command
190         LatexName       ecvsection
191         NeedProtect     1
192         NextNoIndent    1
193         Argument 1
194           LabelString   "Vertical Space"
195           Tooltip       "Additional vertical space"
196         EndArgument
197         ParSkip         0.4
198         TopSep          1.3
199         BottomSep       0.7
200         ParSep          0.7
201         Align           Block
202         LabelSep        xxx
203         LabelType       No_Label
204         Font
205           Family        Sans
206           Series        Bold
207         EndFont
208         TocLevel        1
209 End
210
211 Style Item
212         Margin          Dynamic
213         LatexType       Command
214         LatexName       ecvitem
215         Category        MainText
216         Argument 1
217           LabelString   "Vertical Space"
218           Tooltip       "Additional vertical space"
219         EndArgument
220         Argument 2
221           Mandatory     1
222           AutoInsert    0
223           LabelString   "Summary"
224           Tooltip       "Summary of the item, can also be the time span"
225         EndArgument
226         ParSkip         0.4
227         Align           Block
228         LabelSep        xx
229         LabelType       Static
230         LabelString     "Item:"
231         LabelFont
232           Series        Bold
233           Color         Blue
234         EndFont
235 End
236
237 # The following Inset was defined in order to
238 # realize the following construct:
239 #
240 #  \ecvitem{}{
241 #    \begin{ecvitemize}
242 #        \item 1
243 #        \item 2
244 #    \end{ecvitemize}
245 #  }
246 #
247 InsetLayout Flex:ItemInset
248         LyxType         custom
249         LatexType       command
250         LatexName       ecvitem
251         Decoration      Classic
252         Argument 1
253           LabelString   "Vertical Space"
254           Tooltip       "Additional vertical space"
255         EndArgument
256         Argument 2
257           Mandatory     1
258           AutoInsert    1
259           LabelString   "Summary"
260           Tooltip       "Summary of the item, can also be the time span"
261         EndArgument
262         LabelString     "Subitems"
263         LabelFont
264           Series        Bold
265           Color         Black
266         EndFont
267 End
268
269 Style TitleItem
270         CopyStyle       Item
271         LatexName       ecvtitle
272         TopSep          1.0
273         LabelString     "Title item:"
274 End
275
276 Style TitleLevel
277         CopyStyle       Item
278         LatexName       ecvtitlelevel
279         TopSep          1.0
280         LabelString     "Title level:"
281         Argument 3
282           Mandatory     1
283           AutoInsert    1
284           LabelString   "Text (right side)"
285           Tooltip       "Text (right side)"
286         EndArgument
287 End
288
289 Style BlueItem
290         CopyStyle       Item
291         LatexName       ecvblueitem
292         LabelString     "Blue item:"
293 End
294
295 InsetLayout Flex:BlueItemInset
296         CopyStyle       Flex:ItemInset
297         LatexName       ecvblueitem
298         LabelString     "Blue subitems"
299         LabelFont
300           Series        Bold
301           Color         Blue
302         EndFont
303 End
304
305 Style BigItem
306         CopyStyle       Item
307         LatexName       ecvbigitem
308         LabelString     "Big Item:"
309 End
310
311 Style EcvItemize
312         Category              List
313         Margin                Static
314         LatexType             Item_Environment
315         LatexName             ecvitemize
316         NextNoIndent          1
317         LeftMargin            MMN
318         LabelSep              xx
319         ItemSep               0.2
320         TopSep                0.7
321         BottomSep             0.7
322         ParSep                0.3
323         Align                 Block
324         AlignPossible         Block, Left
325         LabelType             Itemize
326         HTMLTag               ul
327         HTMLItem              li
328         HTMLLabel             NONE
329         Argument item:1
330                 LabelString   "Custom Item|s"
331                 Tooltip       "A customized item string"
332         EndArgument
333 End
334
335 Style MotherTongue
336         Margin          Dynamic
337         LatexType       Command
338         LatexName       ecvmothertongue
339         Category        Language
340         ParSkip         0.4
341         Align           Block
342         LabelSep        xx
343         LabelType       Static
344         LabelString     "Mother Tongue:"
345         Font
346           Series        Bold
347         EndFont
348         LabelFont
349           Series        Bold
350           Color         Blue
351         EndFont
352 End
353
354 Style LangHeader
355         CopyStyle       MotherTongue
356         LatexType       Command
357         LatexName       ecvlanguageheader
358         LabelString     "Language Header:"
359         KeepEmpty       1
360         TopSep          0.2
361         BottomSep       0.2
362         ParSkip         0.4
363         Align           Block
364         LabelSep        xx
365         LabelType       Static
366         LabelFont
367           Series        Bold
368           Color         Green
369         EndFont
370 End
371
372 Style Language
373         CopyStyle       LangHeader
374         LatexName       ecvlanguage
375         LabelString     "Language:"
376         Argument 1
377           Mandatory     1
378           AutoInsert    1
379           LabelString   "Language"
380           Tooltip       "Name of the language"
381         EndArgument
382         Argument 2
383           Mandatory     1
384           AutoInsert    1
385           LabelString   "Listening"
386           Tooltip       "Level how good you think you can listen"
387         EndArgument
388         Argument 3
389           Mandatory     1
390           AutoInsert    1
391           LabelString   "Reading"
392           Tooltip       "Level how good you think you can read"
393         EndArgument
394         Argument 4
395           Mandatory     1
396           AutoInsert    1
397           LabelString   "Interaction"
398           Tooltip       "Level how good you think you can conversate"
399         EndArgument
400         Argument 5
401           Mandatory     1
402           AutoInsert    1
403           LabelString   "Production"
404           Tooltip       "Level how good you think you can freely talk"
405         EndArgument
406 End
407
408 Style LastLanguage
409         CopyStyle       Language
410         LatexName       ecvlastlanguage
411         LabelString     "Last Language:"
412 End
413
414 Style LangFooter
415         CopyStyle       LangHeader
416         LatexName       ecvlanguagefooter
417         LabelString     "Language Footer:"
418 End
419
420 Style End
421         Margin          Dynamic
422         LatexType       Command
423         LatexName       end{europasscv}
424         Category        BackMatter
425         KeepEmpty       1
426         TopSep          1
427         ParSkip         0.4
428         Align           Block
429         LabelSep        xx
430         LabelType       Static
431         LabelString     "End of CV"
432         LabelFont
433           Series        Bold
434           Color         Green
435         EndFont
436         Preamble
437                 \cvclosedtrue
438         EndPreamble
439 End
440
441 InsetLayout "Flex:Highlight"
442         LyxType         charstyle
443         LatexType       command
444         LatexName       ecvhighlight
445         Decoration      Conglomerate
446         LabelString     "Highlight"
447         Font
448           Color         red
449           Size          Small
450           Family        Roman
451           Shape         Up
452           Series        Medium
453           Misc          No_Emph
454           Misc          No_Noun
455           Misc          No_Bar
456         EndFont
457         LabelFont
458           Color         green
459           Size          Small
460         EndFont
461 End
462