]> 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 82
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         Argument listpreamble:1
318                 LabelString    "List preamble"
319                 MenuString     "List Preamble"
320                 Tooltip        "LaTeX code to be inserted before the first item"
321                 PassThru       1
322                 Font
323                         Family typewriter
324                         Color latex
325                 EndFont
326         EndArgument
327         NextNoIndent          1
328         LeftMargin            MMN
329         LabelSep              xx
330         ItemSep               0.2
331         TopSep                0.7
332         BottomSep             0.7
333         ParSep                0.3
334         Align                 Block
335         AlignPossible         Block, Left
336         LabelType             Itemize
337         HTMLTag               ul
338         HTMLItem              li
339         HTMLLabel             NONE
340         Argument item:1
341                 LabelString   "Custom Item|s"
342                 Tooltip       "A customized item string"
343         EndArgument
344 End
345
346 Style MotherTongue
347         Margin          Dynamic
348         LatexType       Command
349         LatexName       ecvmothertongue
350         Category        Language
351         ParSkip         0.4
352         Align           Block
353         LabelSep        xx
354         LabelType       Static
355         LabelString     "Mother Tongue:"
356         Font
357           Series        Bold
358         EndFont
359         LabelFont
360           Series        Bold
361           Color         Blue
362         EndFont
363 End
364
365 Style LangHeader
366         CopyStyle       MotherTongue
367         LatexType       Command
368         LatexName       ecvlanguageheader
369         LabelString     "Language Header:"
370         KeepEmpty       1
371         TopSep          0.2
372         BottomSep       0.2
373         ParSkip         0.4
374         Align           Block
375         LabelSep        xx
376         LabelType       Static
377         LabelFont
378           Series        Bold
379           Color         Green
380         EndFont
381 End
382
383 Style Language
384         CopyStyle       LangHeader
385         LatexName       ecvlanguage
386         LabelString     "Language:"
387         Argument 1
388           Mandatory     1
389           AutoInsert    1
390           LabelString   "Language"
391           Tooltip       "Name of the language"
392         EndArgument
393         Argument 2
394           Mandatory     1
395           AutoInsert    1
396           LabelString   "Listening"
397           Tooltip       "Level how good you think you can listen"
398         EndArgument
399         Argument 3
400           Mandatory     1
401           AutoInsert    1
402           LabelString   "Reading"
403           Tooltip       "Level how good you think you can read"
404         EndArgument
405         Argument 4
406           Mandatory     1
407           AutoInsert    1
408           LabelString   "Interaction"
409           Tooltip       "Level how good you think you can conversate"
410         EndArgument
411         Argument 5
412           Mandatory     1
413           AutoInsert    1
414           LabelString   "Production"
415           Tooltip       "Level how good you think you can freely talk"
416         EndArgument
417 End
418
419 Style LastLanguage
420         CopyStyle       Language
421         LatexName       ecvlastlanguage
422         LabelString     "Last Language:"
423 End
424
425 Style LangFooter
426         CopyStyle       LangHeader
427         LatexName       ecvlanguagefooter
428         LabelString     "Language Footer:"
429 End
430
431 Style End
432         Margin          Dynamic
433         LatexType       Command
434         LatexName       end{europasscv}
435         Category        BackMatter
436         KeepEmpty       1
437         TopSep          1
438         ParSkip         0.4
439         Align           Block
440         LabelSep        xx
441         LabelType       Static
442         LabelString     "End of CV"
443         LabelFont
444           Series        Bold
445           Color         Green
446         EndFont
447         Preamble
448                 \cvclosedtrue
449         EndPreamble
450 End
451
452 InsetLayout "Flex:Highlight"
453         LyxType         charstyle
454         LatexType       command
455         LatexName       ecvhighlight
456         Decoration      Conglomerate
457         LabelString     "Highlight"
458         Font
459           Color         red
460           Size          Small
461           Family        Roman
462           Shape         Up
463           Series        Medium
464           Misc          No_Emph
465           Misc          No_Noun
466           Misc          No_Bar
467         EndFont
468         LabelFont
469           Color         green
470           Size          Small
471         EndFont
472 End
473