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