]> git.lyx.org Git - lyx.git/blob - lib/layouts/europasscv.layout
2b8f8a43170f0bc5591681e83a696a55b5d284a8
[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 68
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         PassThru        true
174         LabelString     "Picture:"
175         Argument 1
176           LabelString   "Width"
177           Tooltip       "Resize photo to this width"
178         EndArgument
179 End
180
181 Style AfterPicture
182         CopyStyle       Name
183         LatexName       ecvafterpicture
184         LabelString     "Space after picture:"
185 End
186
187 Style Section
188         Category Sectioning
189         Margin          Dynamic
190         LatexType       Command
191         LatexName       ecvsection
192         NeedProtect     1
193         NextNoIndent    1
194         Argument 1
195           LabelString   "Vertical Space"
196           Tooltip       "Additional vertical space"
197         EndArgument
198         ParSkip         0.4
199         TopSep          1.3
200         BottomSep       0.7
201         ParSep          0.7
202         Align           Block
203         LabelSep        xxx
204         LabelType       No_Label
205         Font
206           Family        Sans
207           Series        Bold
208         EndFont
209         TocLevel        1
210 End
211
212 Style Item
213         Margin          Dynamic
214         LatexType       Command
215         LatexName       ecvitem
216         Category        MainText
217         Argument 1
218           LabelString   "Vertical Space"
219           Tooltip       "Additional vertical space"
220         EndArgument
221         Argument 2
222           Mandatory     1
223           AutoInsert    0
224           LabelString   "Summary"
225           Tooltip       "Summary of the item, can also be the time span"
226         EndArgument
227         ParSkip         0.4
228         Align           Block
229         LabelSep        xx
230         LabelType       Static
231         LabelString     "Item:"
232         LabelFont
233           Series        Bold
234           Color         Blue
235         EndFont
236 End
237
238 # The following Inset was defined in order to
239 # realize the following construct:
240 #
241 #  \ecvitem{}{
242 #    \begin{ecvitemize}
243 #        \item 1
244 #        \item 2
245 #    \end{ecvitemize}
246 #  }
247 #
248 InsetLayout Flex:ItemInset
249         LyxType         custom
250         LatexType       command
251         LatexName       ecvitem
252         Decoration      Classic
253         Argument 1
254           LabelString   "Vertical Space"
255           Tooltip       "Additional vertical space"
256         EndArgument
257         Argument 2
258           Mandatory     1
259           AutoInsert    1
260           LabelString   "Summary"
261           Tooltip       "Summary of the item, can also be the time span"
262         EndArgument
263         LabelString     "Subitems"
264         LabelFont
265           Series        Bold
266           Color         Black
267         EndFont
268 End
269
270 Style TitleItem
271         CopyStyle       Item
272         LatexName       ecvtitle
273         TopSep          1.0
274         LabelString     "Title item:"
275 End
276
277 Style TitleLevel
278         CopyStyle       Item
279         LatexName       ecvtitlelevel
280         TopSep          1.0
281         LabelString     "Title level:"
282         Argument 3
283           Mandatory     1
284           AutoInsert    1
285           LabelString   "Text (right side)"
286           Tooltip       "Text (right side)"
287         EndArgument
288 End
289
290 Style BlueItem
291         CopyStyle       Item
292         LatexName       ecvblueitem
293         LabelString     "Blue item:"
294 End
295
296 InsetLayout Flex:BlueItemInset
297         CopyStyle       Flex:ItemInset
298         LatexName       ecvblueitem
299         LabelString     "Blue subitems"
300         LabelFont
301           Series        Bold
302           Color         Blue
303         EndFont
304 End
305
306 Style BigItem
307         CopyStyle       Item
308         LatexName       ecvbigitem
309         LabelString     "Big Item:"
310 End
311
312 Style EcvItemize
313         Category              List
314         Margin                Static
315         LatexType             Item_Environment
316         LatexName             ecvitemize
317         NextNoIndent          1
318         LeftMargin            MMN
319         LabelSep              xx
320         ItemSep               0.2
321         TopSep                0.7
322         BottomSep             0.7
323         ParSep                0.3
324         Align                 Block
325         AlignPossible         Block, Left
326         LabelType             Itemize
327         HTMLTag               ul
328         HTMLItem              li
329         HTMLLabel             NONE
330         Argument item:1
331                 LabelString   "Custom Item|s"
332                 Tooltip       "A customized item string"
333         EndArgument
334 End
335
336 Style MotherTongue
337         Margin          Dynamic
338         LatexType       Command
339         LatexName       ecvmothertongue
340         Category        Language
341         ParSkip         0.4
342         Align           Block
343         LabelSep        xx
344         LabelType       Static
345         LabelString     "Mother Tongue:"
346         Font
347           Series        Bold
348         EndFont
349         LabelFont
350           Series        Bold
351           Color         Blue
352         EndFont
353 End
354
355 Style LangHeader
356         CopyStyle       MotherTongue
357         LatexType       Command
358         LatexName       ecvlanguageheader
359         LabelString     "Language Header:"
360         KeepEmpty       1
361         TopSep          0.2
362         BottomSep       0.2
363         ParSkip         0.4
364         Align           Block
365         LabelSep        xx
366         LabelType       Static
367         LabelFont
368           Series        Bold
369           Color         Green
370         EndFont
371 End
372
373 Style Language
374         CopyStyle       LangHeader
375         LatexName       ecvlanguage
376         LabelString     "Language:"
377         Argument 1
378           Mandatory     1
379           AutoInsert    1
380           LabelString   "Language"
381           Tooltip       "Name of the language"
382         EndArgument
383         Argument 2
384           Mandatory     1
385           AutoInsert    1
386           LabelString   "Listening"
387           Tooltip       "Level how good you think you can listen"
388         EndArgument
389         Argument 3
390           Mandatory     1
391           AutoInsert    1
392           LabelString   "Reading"
393           Tooltip       "Level how good you think you can read"
394         EndArgument
395         Argument 4
396           Mandatory     1
397           AutoInsert    1
398           LabelString   "Interaction"
399           Tooltip       "Level how good you think you can conversate"
400         EndArgument
401         Argument 5
402           Mandatory     1
403           AutoInsert    1
404           LabelString   "Production"
405           Tooltip       "Level how good you think you can freely talk"
406         EndArgument
407 End
408
409 Style LastLanguage
410         CopyStyle       Language
411         LatexName       ecvlastlanguage
412         LabelString     "Last Language:"
413 End
414
415 Style LangFooter
416         CopyStyle       LangHeader
417         LatexName       ecvlanguagefooter
418         LabelString     "Language Footer:"
419 End
420
421 Style End
422         Margin          Dynamic
423         LatexType       Command
424         LatexName       end{europasscv}
425         Category        BackMatter
426         KeepEmpty       1
427         TopSep          1
428         ParSkip         0.4
429         Align           Block
430         LabelSep        xx
431         LabelType       Static
432         LabelString     "End of CV"
433         LabelFont
434           Series        Bold
435           Color         Green
436         EndFont
437         Preamble
438                 \cvclosedtrue
439         EndPreamble
440 End
441
442 InsetLayout "Flex:Highlight"
443         LyxType         charstyle
444         LatexType       command
445         LatexName       ecvhighlight
446         Decoration      Conglomerate
447         LabelString     "Highlight"
448         Font
449           Color         red
450           Size          Small
451           Family        Roman
452           Shape         Up
453           Series        Medium
454           Misc          No_Emph
455           Misc          No_Noun
456           Misc          No_Bar
457         EndFont
458         LabelFont
459           Color         green
460           Size          Small
461         EndFont
462 End
463