]> git.lyx.org Git - lyx.git/blob - lib/layouts/moderncv.layout
Autoconf: use included boost when system boost is not available
[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 90
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 End
303
304 Style Quote
305         CopyStyle       CVStyle
306         LatexName       quote
307         LabelType       No_Label
308         Align           Center
309         BottomSep       0.7
310         TopSep          0.5
311         Font
312           Shape         Italic
313           Size          Large
314         EndFont
315         DocBookTag     para
316         DocBookWrapperTag  blockquote
317         DocBookInInfo  false
318 End
319
320 Style Section
321         Category        Sectioning
322         Margin          Dynamic
323         LatexType       Command
324         LatexName       section
325         NeedProtect     1
326         NextNoIndent    1
327         ParSkip         0.4
328         TopSep          1.3
329         BottomSep       0.7
330         ParSep          0.7
331         Align           Block
332         LabelSep        xxx
333         LabelType       No_Label
334         Font
335           Family        Sans
336           Series        Bold
337         EndFont
338         TocLevel        1
339         DocBookTag      title
340         DocBookTagType  paragraph
341 End
342
343 Style EmptySection
344         CopyStyle       Section
345         LatexType       Command
346         LatexName       emptysection{}
347         KeepEmpty       1
348         LabelType       Static
349         LabelString     "Empty Section"
350         LabelFont
351           Color         textlabel2
352         EndFont
353 End
354
355 Style Subsection
356         CopyStyle       Section
357         LatexName       subsection
358         TopSep          0.9
359         BottomSep       0
360         ParSep          0.5
361         Font
362           Family        Sans
363           Series        Medium
364         EndFont
365         TocLevel        2
366 End
367
368 Style CloseSection
369         ObsoletedBy     Standard
370 End
371
372 Style Columns
373         Margin          Static
374         LatexType       Environment
375         LatexName       cvcolumns
376         NextNoIndent    1
377         LeftMargin      M
378         RightMargin     M
379         ParSkip         0.4
380         BottomSep       0.5
381         ParSep          0.7
382         Align           Block
383         LabelType       Centered
384         LabelString     "Columns:"
385         LabelBottomSep  0.5
386         LabelFont
387           Series        Bold
388           Color         textlabel1
389         EndFont
390         TocLevel        1
391         DocBookTag  NONE
392 End
393
394 InsetLayout Flex:Column
395         LyxType         custom
396         LatexType       Command
397         LaTeXName       cvcolumn
398         Argument 1
399           LabelString   "Width"
400           Tooltip       "Optional width"
401           PassThru      1
402           DocBookTag  IGNORE
403         EndArgument
404         Argument 2
405           Mandatory     1
406           AutoInsert    1
407           LabelString   "Header"
408           Tooltip       "Header content"
409           DocBookTag  title
410         EndArgument
411         LabelString     "Column"
412         LabelFont
413           Series        Bold
414           Color         textlabel1
415         EndFont
416         ResetsFont true
417         DocBookTag  sidebar
418         # 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.
419 End
420
421 Style Entry
422         Margin          Dynamic
423         LatexType       Command
424         LatexName       cventry
425         Argument 1
426           Mandatory     1
427           LabelString   "Years"
428           Tooltip       "Years"
429           DocBookTag    phrase
430           DocBookAttr   role='years'
431         EndArgument
432         Argument 2
433           Mandatory     1
434           LabelString   "Title"
435           Tooltip       "Degree or job title"
436           Font
437             Series      Bold
438           EndFont
439           DocBookTag    phrase
440           DocBookAttr   role='title'
441         EndArgument
442         Argument 3
443           Mandatory     1
444           LabelString   "Affiliation"
445           Tooltip       "Institution or employer"
446           Font
447             Shape       Italic
448           EndFont
449           DocBookTag    phrase
450           DocBookAttr   role='affiliation'
451         EndArgument
452         Argument 4
453           Mandatory     1
454           LabelString   "Localization"
455           Tooltip       "City or country"
456           DocBookTag    phrase
457           DocBookAttr   role='localization'
458         EndArgument
459         Argument 5
460           Mandatory     1
461           LabelString   "Optional"
462           Tooltip       "Grade or other info"
463           DocBookTag    phrase
464           DocBookAttr   role='optional'
465         EndArgument
466         ParSkip         0.4
467         Align           Block
468         LabelSep        xx
469         LabelType       Static
470         LabelString     "Entry:"
471         LabelFont
472           Series        Bold
473           Color         textlabel1
474         EndFont
475         DocBookTag  para
476 End
477
478 Style Item
479         Margin          Dynamic
480         LatexType       Command
481         LatexName       cvitem
482         Argument 1
483           Mandatory     1
484           AutoInsert    1
485           LabelString   "Summary"
486           Tooltip       "Summary"
487           DocBookTag    phrase
488           DocBookAttr   role='summary'
489         EndArgument
490         ParSkip         0.4
491         Align           Block
492         LabelSep        xx
493         LabelType       Static
494         LabelString     "Item:"
495         LabelFont
496           Series        Bold
497           Color         textlabel1
498         EndFont
499         DocBookTag  para
500 End
501
502 Style ItemWithComment
503         CopyStyle       Item
504         LatexName       cvitemwithcomment
505         LabelString     "Item with Comment:"
506         KeepEmpty       1
507         ResetArgs       1
508         Argument 1
509           Mandatory     1
510           LabelString   "Summary"
511           Tooltip       "Summary"
512           DocBookTag    phrase
513           DocBookAttr   role='summary'
514         EndArgument
515         Argument 2
516           Mandatory     1
517           LabelString   "Text"
518           Tooltip       "Text"
519           Font
520             Series      Bold
521             Shape       Up
522           EndFont
523           DocBookTag    phrase
524           DocBookAttr   role='text'
525         EndArgument
526         Font
527           Shape         Italic
528         EndFont
529         LabelFont
530           Series        Bold
531           Color         textlabel1
532           Shape         Up
533         EndFont
534         DocBookTag  para
535 End
536
537 Style ListItem
538         CopyStyle       Item
539         LatexName       cvlistitem
540         LabelString     "List Item:"
541         ResetArgs       1
542 End
543
544 Style DoubleItem
545         CopyStyle       ListItem
546         LatexName       cvdoubleitem
547         LabelString     "Double Item:"
548         KeepEmpty       1
549         Argument 1
550           Mandatory     1
551           LabelString   "Left Summary"
552           Tooltip       "Left summary"
553         EndArgument
554         Argument 2
555           Mandatory     1
556           LabelString   "Left Text"
557           Tooltip       "Left text"
558         EndArgument
559         Argument 3
560           Mandatory     1
561           LabelString   "Right Summary"
562           Tooltip       "Right summary"
563         EndArgument
564 End
565
566 Style DoubleListItem
567         CopyStyle       ListItem
568         LatexName       cvlistdoubleitem
569         LabelString     "Double List Item:"
570         ResetArgs       1
571         Argument 1
572           Mandatory     1
573           AutoInsert    1
574           LabelString   "First Item"
575           Tooltip       "First item"
576         EndArgument
577 End
578
579 Style Language
580         ObsoletedBy     ItemWithComment
581 End
582
583 Style Computer
584         ObsoletedBy     DoubleItem
585 End
586
587 Style MakeCVtitle
588         CopyStyle       EmptySection
589         LatexName       makecvtitle{}
590         LabelString     "Make CV Title"
591         Category        FrontMatter
592         LabelFont
593           Size          Small
594         EndFont
595 End
596
597 Style MakeLetterTitle
598         CopyStyle       MakeCVtitle
599         LatexName       makelettertitle{}
600         LabelString     "Make Letter Title"
601         Category        Letter
602 End
603
604 Style MakeLetterClosing
605         CopyStyle       MakeCVtitle
606         LatexName       makeletterclosing{}
607         LabelString     "Close Letter"
608         Category        Letter
609 End
610
611 Style Bibliography
612         Category        BackMatter
613         Margin          First_Dynamic
614         LatexType       Bib_Environment
615         LatexName       thebibliography
616         NextNoIndent    1
617         ToggleIndent    Never
618         LeftMargin      MM
619         ParSkip         0.4
620         ItemSep         0
621         TopSep          0.7
622         BottomSep       0.7
623         ParSep          0.5
624         Align           Block
625         AlignPossible   Block, Left
626         LabelType       Bibliography
627         LabelString     "References"
628         LabelBottomSep  1.2
629         LabelFont
630           Series        Bold
631           Size          Larger
632           Family        Sans
633         EndFont
634         TocLevel        1
635         IsTocCaption    0
636         Argument listpreamble:1
637           LabelString    "Bib preamble"
638           MenuString     "Bibliography Preamble"
639           Tooltip        "LaTeX code to be inserted before the first bibliography item"
640           PassThru       1
641           Font
642             Family typewriter
643             Color latex
644           EndFont
645         EndArgument
646 End
647
648 Style Recipient
649         Margin          Dynamic
650         LatexType       Command
651         LatexName       recipient
652         Category        Letter
653         Argument 1
654           Mandatory     1
655           AutoInsert    1
656           LabelString   "Company Name"
657           Tooltip       "Company name"
658           #Font
659           #  Series     Bold
660           #EndFont
661         EndArgument
662         NextNoIndent    1
663         ParSkip         0.4
664         TopSep          1.3
665         BottomSep       0
666         ParSep          0.7
667         Align           Left
668         LabelSep        xxx
669         LabelType       No_Label
670         Font
671           Shape         Italic
672         EndFont
673 End
674
675 Style Date
676         CopyStyle       Recipient
677         LatexName       date
678         ResetArgs       1
679         TopSep          0
680         BottomSep       0
681         Align           Right
682         Font
683           Series        Medium
684         EndFont
685 End
686
687 Style Opening
688         CopyStyle       Date
689         LatexName       opening
690         TopSep          0
691         BottomSep       0.5
692         Align           Left
693 End
694
695 Style Closing
696         CopyStyle       Opening
697         LatexName       closing
698 End
699
700 Style Enclosing
701         Margin          Dynamic
702         CopyStyle       Opening
703         LatexName       enclosure
704         Argument 1
705           LabelString   "Alternative Name"
706           Tooltip       "Alternative instead of 'Enclosure'"
707         EndArgument
708         LabelSep        xx
709         LabelType       Static
710         LabelString     "Enclosing:"
711         Font
712           Shape         Italic
713         EndFont
714         LabelFont
715           Shape         Up
716           Series        Bold
717           Color         textlabel1
718         EndFont
719         
720 End
721