]> git.lyx.org Git - lyx.git/blob - lib/layouts/moderncv.layout
New Theorems Module. Contributed by Udicoudco <udifoglle@gmail.com> on the mailing...
[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 99
11
12 Columns         1
13 Sides           1
14 SecNumDepth     -1
15 TocDepth        -1
16
17 Provides hyperref       1
18 Provides url            1
19
20
21 # Standard style definition
22 Style Standard
23         Category        MainText
24         Margin          Static
25         LatexType       Paragraph
26         LatexName       dummy
27         ParIndent       MM
28         ParSkip         0.4
29         Align           Block
30         AlignPossible   Block, Left, Right, Center
31         LabelType       No_Label
32         DocBookTag  para
33 End
34
35 Input stdcounters.inc
36 Input stdinsets.inc
37 Input stdlists.inc
38
39 Style CVStyle
40         Margin          Dynamic
41         LatexType       Command
42         LatexName       moderncvstyle
43         Category        FrontMatter
44         InPreamble      1
45         ParSkip         0.4
46         LabelSep        xx
47         LabelType       Static
48         LabelString     "CV Style:"
49         LabelFont
50           Series        Bold
51           Color         textlabel1
52         EndFont
53         Argument 1
54           LabelString   "Style Options"
55           Tooltip               "Options for the CV style"
56         EndArgument
57         # For DocBook, in <info>, so that the next tags can be there. 
58         DocBookTag     IGNORE
59         DocBookInInfo  maybe
60 End
61
62 Style CVColor
63         CopyStyle       CVStyle
64         LatexName       moderncvcolor
65         LabelString     "CV Color Scheme:"
66         # For DocBook, in <info>, so that the next tags can be there. 
67         DocBookTag     IGNORE
68         DocBookInInfo  maybe
69 End
70
71 Style CVIcons
72         CopyStyle       CVStyle
73         LatexName       moderncvicons
74         LabelString     "CV Icon Set:"
75         # For DocBook, in <info>, so that the next tags can be there. 
76         DocBookTag     IGNORE
77         DocBookInInfo  maybe
78 End
79
80 Style CVColumnWidth
81         CopyStyle       CVStyle
82         LatexName       setlength{\hintscolumnwidth}
83         LabelString     "Column Width:"
84         # For DocBook, in <info>, so that the next tags can be there. 
85         DocBookTag     IGNORE
86         DocBookInInfo  maybe
87 End
88
89 Style PDF_Page_Mode
90         CopyStyle       CVStyle
91         LatexName       renewcommand{\pdfpagemode}
92         LabelString     "PDF Page Mode:"
93         # For DocBook, in <info>, so that the next tags can be there. 
94         DocBookTag     IGNORE
95         DocBookInInfo  maybe
96 End
97
98 Style Name
99         LatexType       command
100         LatexName       name
101         Category        FrontMatter
102         InPreamble      1
103         TopSep          0.7
104         Align           Center
105         Font
106           Family        Sans
107           Size          Largest
108         EndFont
109         Argument 1
110           LabelString   "First Name"
111           Tooltip       "First name"
112           Mandatory     1
113           # TODO: If this produces a DocBook tag <firstname>, the rest must be in <givename>, but that's not possible yet.
114         EndArgument
115         DocBookTag            personname
116         DocBookTagType        paragraph
117         DocBookWrapperTag     author
118         DocBookWrapperTagType block
119         DocBookInInfo         always
120 End
121
122 Style FirstName
123         CopyStyle       Name
124         LatexName       firstname
125         ResetArgs       0
126         ObsoletedBy     Name
127 End
128
129 Style FamilyName
130         CopyStyle       FirstName
131         LatexName       familyname
132         TopSep          0.3
133         LabelString     "Family Name:"
134         ObsoletedBy     Name
135 End
136
137 Style Title
138         Margin          Static
139         LatexType       Command
140         Category        FrontMatter
141         InPreamble      1
142         LatexName       title
143         ParSkip         0.4
144         ItemSep         0
145         TopSep          0.7
146         BottomSep       0.7
147         ParSep          1
148         Align           Center
149         LabelType       No_Label
150         Font
151           Size          Larger
152           Shape         Italic
153           EndFont
154         HTMLTag         h1
155         HTMLTitle       true
156         DocBookTag     title
157         DocBookTagType paragraph
158         DocBookInInfo  maybe
159 End
160
161 Style Address
162         CopyStyle       CVStyle
163         LatexName       address
164         LabelString     "Address:"
165         BottomSep       0.3
166         TopSep          0
167         Argument 1
168           LabelString   "Line 1"
169           Tooltip       "Optional address line"
170           Mandatory     1
171         EndArgument
172         Argument 2
173           LabelString   "Line 2"
174           Tooltip       "Optional address line"
175           Mandatory     1
176         EndArgument
177         DocBookTag            NONE
178         DocBookWrapperTag     address
179         DocBookWrapperTagType block
180         DocBookWrapperMergeWithPrevious true
181         DocBookInInfo         always
182 End
183
184 Style Phone
185         CopyStyle       CVStyle
186         LatexName       phone
187         LabelString     "Phone:"
188         Argument 1
189           LabelString   "Phone Type"
190           Tooltip       "can be fixed, mobile or fax"
191           # TODO: for DocBook, this should be translated into a role.
192           DocBookTag      emphasis
193           DocBookTagType  inline
194         EndArgument
195         DocBookTag            phone
196         DocBookTagType        paragraph
197         DocBookWrapperTag     address
198         DocBookWrapperTagType block
199         DocBookWrapperMergeWithPrevious true
200         DocBookInInfo         always
201 End
202
203 Style Mobile
204         CopyStyle       CVStyle
205         LatexName       mobile
206         LabelString     "Mobile:"
207         ObsoletedBy     Phone
208 End
209
210 Style Fax
211         CopyStyle       CVStyle
212         LatexName       fax
213         LabelString     "Fax:"
214         ObsoletedBy     Phone
215 End
216
217 Style Email
218         CopyStyle       CVStyle
219         LatexName       email
220         LabelString     "Email:"
221         DocBookTag            email
222         DocBookTagType        paragraph
223         DocBookWrapperTag     address
224         DocBookWrapperTagType block
225         DocBookWrapperMergeWithPrevious true
226         DocBookInInfo         always
227 End
228
229 Style Homepage
230         CopyStyle       CVStyle
231         LatexName       homepage
232         LabelString     "Homepage:"
233         DocBookTag            uri
234         DocBookAttr           type='homepage'
235         DocBookTagType        paragraph
236         DocBookWrapperTag     address
237         DocBookWrapperTagType block
238         DocBookWrapperMergeWithPrevious true
239         DocBookInInfo         always
240 End
241
242 Style Social
243         CopyStyle       CVStyle
244         LatexName       social
245         LabelString     "Social:"
246         Argument 1
247           LabelString   "Name"
248           Tooltip       "Name of the social network"
249           # TODO: for DocBook, this should be translated into a role.
250           DocBookTag      emphasis
251           DocBookTagType  inline
252         EndArgument
253         DocBookTag            uri
254         DocBookAttr           type='social-network'
255         DocBookTagType        paragraph
256         DocBookWrapperTag     address
257         DocBookWrapperTagType block
258         DocBookWrapperMergeWithPrevious true
259         DocBookInInfo         always
260 End
261
262 Style ExtraInfo
263         CopyStyle       CVStyle
264         LatexName       extrainfo
265         LabelString     "Extra Info:"
266         DocBookTag            otheraddr
267         DocBookTagType        paragraph
268         DocBookWrapperTag     address
269         DocBookWrapperTagType block
270         DocBookWrapperMergeWithPrevious true
271         DocBookInInfo         always
272 End
273
274 # Path to a digital image:
275 Style Photo
276         CopyStyle       CVStyle
277         Font
278           Family        typewriter
279         EndFont
280         LabelFont
281           Family        Roman
282           Series        Bold
283           Color         textlabel1
284         EndFont
285         LatexName       photo
286         LabelString     "Photo:"
287         Argument 1
288           LabelString   "Height"
289           Tooltip       "Height the photo is resized to"
290           PassThru      1
291         EndArgument
292         Argument 2
293           LabelString   "Thickness"
294           Tooltip       "Thickness of the surrounding frame"
295           PassThru      1
296         EndArgument
297         PassThru        1
298         DocBookTag            date
299         DocBookAttr           role='picture'
300         DocBookInInfo         always
301         DocBookWrapperTag     NONE
302     DocBookNoFontInside   true
303 End
304
305 Style Quote
306         CopyStyle       CVStyle
307         LatexName       quote
308         LabelType       No_Label
309         Align           Center
310         BottomSep       0.7
311         TopSep          0.5
312         Font
313           Shape         Italic
314           Size          Large
315         EndFont
316         DocBookTag     para
317         DocBookWrapperTag  blockquote
318         DocBookInInfo  false
319 End
320
321 Style Section
322         Category        Sectioning
323         Margin          Dynamic
324         LatexType       Command
325         LatexName       section
326         NeedProtect     1
327         NextNoIndent    1
328         ParSkip         0.4
329         TopSep          1.3
330         BottomSep       0.7
331         ParSep          0.7
332         Align           Block
333         LabelSep        xxx
334         LabelType       No_Label
335         Font
336           Family        Sans
337           Series        Bold
338         EndFont
339         TocLevel        1
340         DocBookTag      title
341         DocBookTagType  paragraph
342 End
343
344 Style EmptySection
345         CopyStyle       Section
346         LatexType       Command
347         LatexName       emptysection{}
348         KeepEmpty       1
349         LabelType       Static
350         LabelString     "Empty Section"
351         LabelFont
352           Color         textlabel2
353         EndFont
354 End
355
356 Style Subsection
357         CopyStyle       Section
358         LatexName       subsection
359         TopSep          0.9
360         BottomSep       0
361         ParSep          0.5
362         Font
363           Family        Sans
364           Series        Medium
365         EndFont
366         TocLevel        2
367 End
368
369 Style CloseSection
370         ObsoletedBy     Standard
371 End
372
373 Style Columns
374         Margin          Static
375         LatexType       Environment
376         LatexName       cvcolumns
377         NextNoIndent    1
378         LeftMargin      M
379         RightMargin     M
380         ParSkip         0.4
381         BottomSep       0.5
382         ParSep          0.7
383         Align           Block
384         LabelType       Centered
385         LabelString     "Columns:"
386         LabelBottomSep  0.5
387         LabelFont
388           Series        Bold
389           Color         textlabel1
390         EndFont
391         TocLevel        1
392         DocBookTag  NONE
393 End
394
395 InsetLayout Flex:Column
396         LyxType         custom
397         LatexType       Command
398         LaTeXName       cvcolumn
399         Argument 1
400           LabelString   "Width"
401           Tooltip       "Optional width"
402           PassThru      1
403           DocBookTag  IGNORE
404         EndArgument
405         Argument 2
406           Mandatory     1
407           AutoInsert    1
408           LabelString   "Header"
409           Tooltip       "Header content"
410           DocBookTag  title
411         EndArgument
412         LabelString     "Column"
413         LabelFont
414           Series        Bold
415           Color         textlabel1
416         EndFont
417         ResetsFont true
418         DocBookTag  sidebar
419         # TODO: issue with paragraphs inside, they do not get properly wrapped in <para> if required. Using a wrapper tag makes everything under <para>, including the title.
420 End
421
422 Style Entry
423         Margin          Dynamic
424         LatexType       Command
425         LatexName       cventry
426         Argument 1
427           Mandatory     1
428           LabelString   "Years"
429           Tooltip       "Years"
430           DocBookTag    phrase
431           DocBookAttr   role='years'
432         EndArgument
433         Argument 2
434           Mandatory     1
435           LabelString   "Title"
436           Tooltip       "Degree or job title"
437           Font
438             Series      Bold
439           EndFont
440           DocBookTag    phrase
441           DocBookAttr   role='title'
442         EndArgument
443         Argument 3
444           Mandatory     1
445           LabelString   "Affiliation"
446           Tooltip       "Institution or employer"
447           Font
448             Shape       Italic
449           EndFont
450           DocBookTag    phrase
451           DocBookAttr   role='affiliation'
452         EndArgument
453         Argument 4
454           Mandatory     1
455           LabelString   "Localization"
456           Tooltip       "City or country"
457           DocBookTag    phrase
458           DocBookAttr   role='localization'
459         EndArgument
460         Argument 5
461           Mandatory     1
462           LabelString   "Optional"
463           Tooltip       "Grade or other info"
464           DocBookTag    phrase
465           DocBookAttr   role='optional'
466         EndArgument
467         ParSkip         0.4
468         Align           Block
469         LabelSep        xx
470         LabelType       Static
471         LabelString     "Entry:"
472         LabelFont
473           Series        Bold
474           Color         textlabel1
475         EndFont
476         DocBookTag  para
477 End
478
479 Style Item
480         Margin          Dynamic
481         LatexType       Command
482         LatexName       cvitem
483         Argument 1
484           Mandatory     1
485           AutoInsert    1
486           LabelString   "Summary"
487           Tooltip       "Summary"
488           DocBookTag    phrase
489           DocBookAttr   role='summary'
490         EndArgument
491         ParSkip         0.4
492         Align           Block
493         LabelSep        xx
494         LabelType       Static
495         LabelString     "Item:"
496         LabelFont
497           Series        Bold
498           Color         textlabel1
499         EndFont
500         DocBookTag  para
501 End
502
503 Style ItemWithComment
504         CopyStyle       Item
505         LatexName       cvitemwithcomment
506         LabelString     "Item with Comment:"
507         KeepEmpty       1
508         ResetArgs       1
509         Argument 1
510           Mandatory     1
511           LabelString   "Summary"
512           Tooltip       "Summary"
513           DocBookTag    phrase
514           DocBookAttr   role='summary'
515         EndArgument
516         Argument 2
517           Mandatory     1
518           LabelString   "Text"
519           Tooltip       "Text"
520           Font
521             Series      Bold
522             Shape       Up
523           EndFont
524           DocBookTag    phrase
525           DocBookAttr   role='text'
526         EndArgument
527         Font
528           Shape         Italic
529         EndFont
530         LabelFont
531           Series        Bold
532           Color         textlabel1
533           Shape         Up
534         EndFont
535         DocBookTag  para
536 End
537
538 Style ListItem
539         CopyStyle       Item
540         LatexName       cvlistitem
541         LabelString     "List Item:"
542         ResetArgs       1
543 End
544
545 Style DoubleItem
546         CopyStyle       ListItem
547         LatexName       cvdoubleitem
548         LabelString     "Double Item:"
549         KeepEmpty       1
550         Argument 1
551           Mandatory     1
552           LabelString   "Left Summary"
553           Tooltip       "Left summary"
554         EndArgument
555         Argument 2
556           Mandatory     1
557           LabelString   "Left Text"
558           Tooltip       "Left text"
559         EndArgument
560         Argument 3
561           Mandatory     1
562           LabelString   "Right Summary"
563           Tooltip       "Right summary"
564         EndArgument
565 End
566
567 Style DoubleListItem
568         CopyStyle       ListItem
569         LatexName       cvlistdoubleitem
570         LabelString     "Double List Item:"
571         ResetArgs       1
572         Argument 1
573           Mandatory     1
574           AutoInsert    1
575           LabelString   "First Item"
576           Tooltip       "First item"
577         EndArgument
578 End
579
580 Style Language
581         ObsoletedBy     ItemWithComment
582 End
583
584 Style Computer
585         ObsoletedBy     DoubleItem
586 End
587
588 Style MakeCVtitle
589         CopyStyle       EmptySection
590         LatexName       makecvtitle{}
591         LabelString     "Make CV Title"
592         Category        FrontMatter
593         LabelFont
594           Size          Small
595         EndFont
596 End
597
598 Style MakeLetterTitle
599         CopyStyle       MakeCVtitle
600         LatexName       makelettertitle{}
601         LabelString     "Make Letter Title"
602         Category        Letter
603 End
604
605 Style MakeLetterClosing
606         CopyStyle       MakeCVtitle
607         LatexName       makeletterclosing{}
608         LabelString     "Close Letter"
609         Category        Letter
610 End
611
612 Style Bibliography
613         Category        BackMatter
614         Margin          First_Dynamic
615         LatexType       Bib_Environment
616         LatexName       thebibliography
617         NextNoIndent    1
618         ToggleIndent    Never
619         LeftMargin      MM
620         ParSkip         0.4
621         ItemSep         0
622         TopSep          0.7
623         BottomSep       0.7
624         ParSep          0.5
625         Align           Block
626         AlignPossible   Block, Left
627         LabelType       Bibliography
628         LabelString     "References"
629         LabelBottomSep  1.2
630         LabelFont
631           Series        Bold
632           Size          Larger
633           Family        Sans
634         EndFont
635         TocLevel        1
636         IsTocCaption    0
637         Argument listpreamble:1
638           LabelString    "Bib preamble"
639           MenuString     "Bibliography Preamble"
640           Tooltip        "LaTeX code to be inserted before the first bibliography item"
641           PassThru       1
642           Font
643             Family typewriter
644             Color latex
645           EndFont
646         EndArgument
647 End
648
649 Style Recipient
650         Margin          Dynamic
651         LatexType       Command
652         LatexName       recipient
653         Category        Letter
654         Argument 1
655           Mandatory     1
656           AutoInsert    1
657           LabelString   "Company Name"
658           Tooltip       "Company name"
659           #Font
660           #  Series     Bold
661           #EndFont
662         EndArgument
663         NextNoIndent    1
664         ParSkip         0.4
665         TopSep          1.3
666         BottomSep       0
667         ParSep          0.7
668         Align           Left
669         LabelSep        xxx
670         LabelType       No_Label
671         Font
672           Shape         Italic
673         EndFont
674 End
675
676 Style Date
677         CopyStyle       Recipient
678         LatexName       date
679         ResetArgs       1
680         TopSep          0
681         BottomSep       0
682         Align           Right
683         Font
684           Series        Medium
685         EndFont
686 End
687
688 Style Opening
689         CopyStyle       Date
690         LatexName       opening
691         TopSep          0
692         BottomSep       0.5
693         Align           Left
694 End
695
696 Style Closing
697         CopyStyle       Opening
698         LatexName       closing
699 End
700
701 Style Enclosing
702         Margin          Dynamic
703         CopyStyle       Opening
704         LatexName       enclosure
705         Argument 1
706           LabelString   "Alternative Name"
707           Tooltip       "Alternative instead of 'Enclosure'"
708         EndArgument
709         LabelSep        xx
710         LabelType       Static
711         LabelString     "Enclosing:"
712         Font
713           Shape         Italic
714         EndFont
715         LabelFont
716           Shape         Up
717           Series        Bold
718           Color         textlabel1
719         EndFont
720         
721 End
722