]> git.lyx.org Git - lyx.git/blob - lib/layouts/moderncv.layout
687184e80ee2a034763d15ed483ea615b043d7d2
[lyx.git] / lib / layouts / moderncv.layout
1 #% Do not delete the line below; configure depends on this
2 #  \DeclareLaTeXClass[moderncv,ebgaramond.sty,fancyhdr.sty,fontawesome.sty,ifpdf.sty,marvosym.sty]{Modern CV}
3 #  \DeclareCategory{Curricula Vitae}
4 # textclass definition file for modernCV 2.0.x
5 # (also works with modernCV 1.5.x)
6 # Author : Uwe Stöhr (uwestoehr@web.de)
7
8
9 # General textclass parameters
10 Format 68
11         Columns         1
12         Sides           1
13         SecNumDepth     -1
14         TocDepth        -1
15
16 Provides hyperref       1
17 Provides url            1
18
19
20 # Standard style definition
21 Style Standard
22         Category        MainText
23         Margin          Static
24         LatexType       Paragraph
25         LatexName       dummy
26         ParIndent       MM
27         ParSkip         0.4
28         Align           Block
29         AlignPossible   Block, Left, Right, Center
30         LabelType       No_Label
31 End
32
33 Input stdcounters.inc
34 Input stdinsets.inc
35 Input stdlists.inc
36
37 Style CVStyle
38         Margin          Dynamic
39         LatexType       Command
40         LatexName       moderncvstyle
41         Category        FrontMatter
42         InPreamble      1
43         ParSkip         0.4
44         LabelSep        xx
45         LabelType       Static
46         LabelString     "CV Style:"
47         LabelFont
48           Series        Bold
49           Color         Blue
50         EndFont
51         Argument 1
52           LabelString   "Style Options"
53           Tooltip               "Options for the CV style"
54         EndArgument
55 End
56
57 Style CVColor
58         CopyStyle       CVStyle
59         LatexName       moderncvcolor
60         LabelString     "CV Color Scheme:"
61 End
62
63 Style CVIcons
64         CopyStyle       CVStyle
65         LatexName       moderncvicons
66         LabelString     "CV Icon Set:"
67 End
68
69 Style CVColumnWidth
70         CopyStyle       CVStyle
71         LatexName       setlength{\hintscolumnwidth}
72         LabelString     "Column Width:"
73 End
74
75 Style PDF_Page_Mode
76         CopyStyle       CVStyle
77         LatexName       renewcommand{\pdfpagemode}
78         LabelString     "PDF Page Mode:"
79 End
80
81 Style Name
82         LatexType       command
83         LatexName       name
84         Category        FrontMatter
85         InPreamble      1
86         TopSep          0.7
87         Align           Center
88         Font
89           Family        Sans
90           Size          Largest
91         EndFont
92         Argument 1
93           LabelString   "First Name"
94           Tooltip       "First name"
95           Mandatory     1
96         EndArgument
97 End
98
99 Style FirstName
100         CopyStyle       Name
101         LatexName       firstname
102         ResetArgs       0
103         ObsoletedBy     Name
104 End
105
106 Style FamilyName
107         CopyStyle       FirstName
108         LatexName       familyname
109         TopSep          0.3
110         LabelString     "Family Name:"
111         ObsoletedBy     Name
112 End
113
114 Style Title
115         Margin          Static
116         LatexType       Command
117         Category        FrontMatter
118         InPreamble      1
119         LatexName       title
120         ParSkip         0.4
121         ItemSep         0
122         TopSep          0.7
123         BottomSep       0.7
124         ParSep          1
125         Align           Center
126         LabelType       No_Label
127         Font
128           Size          Larger
129           Shape         Italic
130           EndFont
131         HTMLTag         h1
132         HTMLTitle       true
133 End
134
135 Style Address
136         CopyStyle       CVStyle
137         LatexName       address
138         LabelString     "Address:"
139         BottomSep       0.3
140         TopSep          0
141         Argument 1
142           LabelString   "Line 1"
143           Tooltip       "Optional address line"
144           Mandatory     1
145         EndArgument
146         Argument 2
147           LabelString   "Line 2"
148           Tooltip       "Optional address line"
149           Mandatory     1
150         EndArgument
151 End
152
153 Style Phone
154         CopyStyle       CVStyle
155         LatexName       phone
156         LabelString     "Phone:"
157         Argument 1
158           LabelString   "Phone Type"
159           Tooltip       "can be fixed, mobile or fax"
160         EndArgument
161 End
162
163 Style Mobile
164         CopyStyle       CVStyle
165         LatexName       mobile
166         LabelString     "Mobile:"
167         ObsoletedBy     Phone
168 End
169
170 Style Fax
171         CopyStyle       CVStyle
172         LatexName       fax
173         LabelString     "Fax:"
174         ObsoletedBy     Phone
175 End
176
177 Style Email
178         CopyStyle       CVStyle
179         LatexName       email
180         LabelString     "Email:"
181 End
182
183 Style Homepage
184         CopyStyle       CVStyle
185         LatexName       homepage
186         LabelString     "Homepage:"
187 End
188
189 Style Social
190         CopyStyle       CVStyle
191         LatexName       social
192         LabelString     "Social:"
193         Argument 1
194           LabelString   "Name"
195           Tooltip       "Name of the social network"
196         EndArgument
197 End
198
199 Style ExtraInfo
200         CopyStyle       CVStyle
201         LatexName       extrainfo
202         LabelString     "Extra Info:"
203 End
204
205 Style Photo
206         CopyStyle       CVStyle
207         LatexName       photo
208         LabelString     "Photo:"
209         Argument 1
210           LabelString   "Height"
211           Tooltip       "Height the photo is resized to"
212           PassThru      1
213         EndArgument
214         Argument 2
215           LabelString   "Thickness"
216           Tooltip       "Thickness of the surrounding frame"
217           PassThru      1
218         EndArgument
219 End
220
221 Style Quote
222         CopyStyle       CVStyle
223         LatexName       quote
224         LabelType       No_Label
225         Align           Center
226         BottomSep       0.7
227         TopSep          0.5
228         Font
229           Shape         Italic
230           Size          Large
231         EndFont
232 End
233
234 Style Section
235         Category        Sectioning
236         Margin          Dynamic
237         LatexType       Command
238         LatexName       section
239         NeedProtect     1
240         NextNoIndent    1
241         ParSkip         0.4
242         TopSep          1.3
243         BottomSep       0.7
244         ParSep          0.7
245         Align           Block
246         LabelSep        xxx
247         LabelType       No_Label
248         Font
249           Family        Sans
250           Series        Bold
251         EndFont
252         TocLevel        1
253 End
254
255 Style EmptySection
256         CopyStyle       Section
257         LatexType       Command
258         LatexName       emptysection{}
259         KeepEmpty       1
260         LabelType       Static
261         LabelString     "Empty Section"
262         LabelFont
263           Color         Green
264         EndFont
265 End
266
267 Style Subsection
268         CopyStyle       Section
269         LatexName       subsection
270         TopSep          0.9
271         BottomSep       0
272         ParSep          0.5
273         Font
274           Family        Sans
275           Series        Medium
276         EndFont
277         TocLevel        2
278 End
279
280 Style CloseSection
281         ObsoletedBy     Standard
282 End
283
284 Style Columns
285         Margin          Static
286         LatexType       Environment
287         LatexName       cvcolumns
288         NextNoIndent    1
289         LeftMargin      M
290         RightMargin     M
291         ParSkip         0.4
292         BottomSep       0.5
293         ParSep          0.7
294         Align           Block
295         LabelType       Centered
296         LabelString     "Columns:"
297         LabelBottomSep  0.5
298         LabelFont
299           Series        Bold
300           Color         Blue
301         EndFont
302         TocLevel        1
303 End
304
305 InsetLayout Flex:Column
306         LyxType         custom
307         LatexType       Command
308         LaTeXName       cvcolumn
309         Argument 1
310           LabelString   "Width"
311           Tooltip       "Optional width"
312           PassThru      1
313         EndArgument
314         Argument 2
315           Mandatory     1
316           AutoInsert    1
317           LabelString   "Header"
318           Tooltip       "Header content"
319         EndArgument
320         LabelString     "Column"
321         LabelFont
322           Series        Bold
323           Color         Blue
324         EndFont
325         ResetsFont true
326 End
327
328 Style Entry
329         Margin          Dynamic
330         LatexType       Command
331         LatexName       cventry
332         Argument 1
333           Mandatory     1
334           LabelString   "Time[[period]]"
335           Tooltip       "Time[[period]]"
336         EndArgument
337         Argument 2
338           Mandatory     1
339           LabelString   "What?"
340           Tooltip       "What?"
341           Font
342             Series      Bold
343           EndFont
344         EndArgument
345         Argument 3
346           Mandatory     1
347           LabelString   "Affiliation"
348           Tooltip       "Affiliation"
349           Font
350             Shape       Italic
351           EndFont
352         EndArgument
353         Argument 4
354           Mandatory     1
355           LabelString   "City"
356           Tooltip       "City"
357         EndArgument
358         Argument 5
359           Mandatory     1
360           LabelString   "Country"
361           Tooltip       "Country"
362         EndArgument
363         ParSkip         0.4
364         Align           Block
365         LabelSep        xx
366         LabelType       Static
367         LabelString     "Entry:"
368         LabelFont
369           Series        Bold
370           Color         Blue
371         EndFont
372 End
373
374 Style Item
375         Margin          Dynamic
376         LatexType       Command
377         LatexName       cvitem
378         Argument 1
379           Mandatory     1
380           AutoInsert    1
381           LabelString   "Summary"
382           Tooltip       "Summary"
383         EndArgument
384         ParSkip         0.4
385         Align           Block
386         LabelSep        xx
387         LabelType       Static
388         LabelString     "Item:"
389         LabelFont
390           Series        Bold
391           Color         Blue
392         EndFont
393 End
394
395 Style ItemWithComment
396         CopyStyle       Item
397         LatexName       cvitemwithcomment
398         LabelString     "Item with Comment:"
399         KeepEmpty       1
400         ResetArgs       1
401         Argument 1
402           Mandatory     1
403           LabelString   "Summary"
404           Tooltip       "Summary"
405         EndArgument
406         Argument 2
407           Mandatory     1
408           LabelString   "Text"
409           Tooltip       "Text"
410           Font
411             Series      Bold
412             Shape       Up
413           EndFont
414         EndArgument
415         Font
416           Shape         Italic
417         EndFont
418         LabelFont
419           Series        Bold
420           Color         Blue
421           Shape         Up
422         EndFont
423 End
424
425 Style ListItem
426         CopyStyle       Item
427         LatexName       cvlistitem
428         LabelString     "List Item:"
429         ResetArgs       1
430 End
431
432 Style DoubleItem
433         CopyStyle       ListItem
434         LatexName       cvdoubleitem
435         LabelString     "Double Item:"
436         KeepEmpty       1
437         Argument 1
438           Mandatory     1
439           LabelString   "Left Summary"
440           Tooltip       "Left summary"
441         EndArgument
442         Argument 2
443           Mandatory     1
444           LabelString   "Left Text"
445           Tooltip       "Left text"
446         EndArgument
447         Argument 3
448           Mandatory     1
449           LabelString   "Right Summary"
450           Tooltip       "Right summary"
451         EndArgument
452 End
453
454 Style DoubleListItem
455         CopyStyle       ListItem
456         LatexName       cvlistdoubleitem
457         LabelString     "Double List Item:"
458         ResetArgs       1
459         Argument 1
460           Mandatory     1
461           AutoInsert    1
462           LabelString   "First Item"
463           Tooltip       "First item"
464         EndArgument
465 End
466
467 Style Language
468         ObsoletedBy     ItemWithComment
469 End
470
471 Style Computer
472         ObsoletedBy     DoubleItem
473 End
474
475 Style MakeCVtitle
476         CopyStyle       EmptySection
477         LatexName       makecvtitle{}
478         LabelString     "Make CV Title"
479         Category        FrontMatter
480         LabelFont
481           Size          Small
482         EndFont
483 End
484
485 Style MakeLetterTitle
486         CopyStyle       MakeCVtitle
487         LatexName       makelettertitle{}
488         LabelString     "Make Letter Title"
489         Category        Letter
490 End
491
492 Style MakeLetterClosing
493         CopyStyle       MakeCVtitle
494         LatexName       makeletterclosing{}
495         LabelString     "Close Letter"
496         Category        Letter
497 End
498
499 Style Bibliography
500         Category        BackMatter
501         Margin          First_Dynamic
502         LatexType       Bib_Environment
503         LatexName       thebibliography
504         NextNoIndent    1
505         ToggleIndent    Never
506         LeftMargin      MM
507         ParSkip         0.4
508         ItemSep         0
509         TopSep          0.7
510         BottomSep       0.7
511         ParSep          0.5
512         Align           Block
513         AlignPossible   Block, Left
514         LabelType       Bibliography
515         LabelString     "References"
516         LabelBottomSep  1.2
517         LabelFont
518           Series        Bold
519           Size          Larger
520           Family        Sans
521         EndFont
522         TocLevel        1
523         IsTocCaption    0
524 End
525
526 Style Recipient
527         Margin          Dynamic
528         LatexType       Command
529         LatexName       recipient
530         Category        Letter
531         Argument 1
532           Mandatory     1
533           AutoInsert    1
534           LabelString   "Company Name"
535           Tooltip       "Company name"
536           #Font
537           #  Series     Bold
538           #EndFont
539         EndArgument
540         NextNoIndent    1
541         ParSkip         0.4
542         TopSep          1.3
543         BottomSep       0
544         ParSep          0.7
545         Align           Left
546         LabelSep        xxx
547         LabelType       No_Label
548         Font
549           Shape         Italic
550         EndFont
551 End
552
553 Style Date
554         CopyStyle       Recipient
555         LatexName       date
556         ResetArgs       1
557         TopSep          0
558         BottomSep       0
559         Align           Right
560         Font
561           Series        Medium
562         EndFont
563 End
564
565 Style Opening
566         CopyStyle       Date
567         LatexName       opening
568         TopSep          0
569         BottomSep       0.5
570         Align           Left
571 End
572
573 Style Closing
574         CopyStyle       Opening
575         LatexName       closing
576 End
577
578 Style Enclosing
579         Margin          Dynamic
580         CopyStyle       Opening
581         LatexName       enclosure
582         Argument 1
583           LabelString   "Alternative Name"
584           Tooltip       "Alternative instead of 'Enclosure'"
585         EndArgument
586         LabelSep        xx
587         LabelType       Static
588         LabelString     "Enclosing:"
589         Font
590           Shape         Italic
591         EndFont
592         LabelFont
593           Shape         Up
594           Series        Bold
595           Color         Blue
596         EndFont
597         
598 End
599