]> git.lyx.org Git - lyx.git/blob - lib/layouts/moderncv.layout
Add Eugene (Yu Jin) to the credits
[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 80
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 # Path to a digital image:
206 Style Photo
207         CopyStyle       CVStyle
208         Font
209           Family        typewriter
210         EndFont
211         LabelFont
212           Family        Roman
213           Series        Bold
214           Color         Blue
215         EndFont
216         LatexName       photo
217         LabelString     "Photo:"
218         Argument 1
219           LabelString   "Height"
220           Tooltip       "Height the photo is resized to"
221           PassThru      1
222         EndArgument
223         Argument 2
224           LabelString   "Thickness"
225           Tooltip       "Thickness of the surrounding frame"
226           PassThru      1
227         EndArgument
228         PassThru        1
229 End
230
231 Style Quote
232         CopyStyle       CVStyle
233         LatexName       quote
234         LabelType       No_Label
235         Align           Center
236         BottomSep       0.7
237         TopSep          0.5
238         Font
239           Shape         Italic
240           Size          Large
241         EndFont
242 End
243
244 Style Section
245         Category        Sectioning
246         Margin          Dynamic
247         LatexType       Command
248         LatexName       section
249         NeedProtect     1
250         NextNoIndent    1
251         ParSkip         0.4
252         TopSep          1.3
253         BottomSep       0.7
254         ParSep          0.7
255         Align           Block
256         LabelSep        xxx
257         LabelType       No_Label
258         Font
259           Family        Sans
260           Series        Bold
261         EndFont
262         TocLevel        1
263 End
264
265 Style EmptySection
266         CopyStyle       Section
267         LatexType       Command
268         LatexName       emptysection{}
269         KeepEmpty       1
270         LabelType       Static
271         LabelString     "Empty Section"
272         LabelFont
273           Color         Green
274         EndFont
275 End
276
277 Style Subsection
278         CopyStyle       Section
279         LatexName       subsection
280         TopSep          0.9
281         BottomSep       0
282         ParSep          0.5
283         Font
284           Family        Sans
285           Series        Medium
286         EndFont
287         TocLevel        2
288 End
289
290 Style CloseSection
291         ObsoletedBy     Standard
292 End
293
294 Style Columns
295         Margin          Static
296         LatexType       Environment
297         LatexName       cvcolumns
298         NextNoIndent    1
299         LeftMargin      M
300         RightMargin     M
301         ParSkip         0.4
302         BottomSep       0.5
303         ParSep          0.7
304         Align           Block
305         LabelType       Centered
306         LabelString     "Columns:"
307         LabelBottomSep  0.5
308         LabelFont
309           Series        Bold
310           Color         Blue
311         EndFont
312         TocLevel        1
313 End
314
315 InsetLayout Flex:Column
316         LyxType         custom
317         LatexType       Command
318         LaTeXName       cvcolumn
319         Argument 1
320           LabelString   "Width"
321           Tooltip       "Optional width"
322           PassThru      1
323         EndArgument
324         Argument 2
325           Mandatory     1
326           AutoInsert    1
327           LabelString   "Header"
328           Tooltip       "Header content"
329         EndArgument
330         LabelString     "Column"
331         LabelFont
332           Series        Bold
333           Color         Blue
334         EndFont
335         ResetsFont true
336 End
337
338 Style Entry
339         Margin          Dynamic
340         LatexType       Command
341         LatexName       cventry
342         Argument 1
343           Mandatory     1
344           LabelString   "Time[[period]]"
345           Tooltip       "Time[[period]]"
346         EndArgument
347         Argument 2
348           Mandatory     1
349           LabelString   "What?"
350           Tooltip       "What?"
351           Font
352             Series      Bold
353           EndFont
354         EndArgument
355         Argument 3
356           Mandatory     1
357           LabelString   "Affiliation"
358           Tooltip       "Affiliation"
359           Font
360             Shape       Italic
361           EndFont
362         EndArgument
363         Argument 4
364           Mandatory     1
365           LabelString   "City"
366           Tooltip       "City"
367         EndArgument
368         Argument 5
369           Mandatory     1
370           LabelString   "Country"
371           Tooltip       "Country"
372         EndArgument
373         ParSkip         0.4
374         Align           Block
375         LabelSep        xx
376         LabelType       Static
377         LabelString     "Entry:"
378         LabelFont
379           Series        Bold
380           Color         Blue
381         EndFont
382 End
383
384 Style Item
385         Margin          Dynamic
386         LatexType       Command
387         LatexName       cvitem
388         Argument 1
389           Mandatory     1
390           AutoInsert    1
391           LabelString   "Summary"
392           Tooltip       "Summary"
393         EndArgument
394         ParSkip         0.4
395         Align           Block
396         LabelSep        xx
397         LabelType       Static
398         LabelString     "Item:"
399         LabelFont
400           Series        Bold
401           Color         Blue
402         EndFont
403 End
404
405 Style ItemWithComment
406         CopyStyle       Item
407         LatexName       cvitemwithcomment
408         LabelString     "Item with Comment:"
409         KeepEmpty       1
410         ResetArgs       1
411         Argument 1
412           Mandatory     1
413           LabelString   "Summary"
414           Tooltip       "Summary"
415         EndArgument
416         Argument 2
417           Mandatory     1
418           LabelString   "Text"
419           Tooltip       "Text"
420           Font
421             Series      Bold
422             Shape       Up
423           EndFont
424         EndArgument
425         Font
426           Shape         Italic
427         EndFont
428         LabelFont
429           Series        Bold
430           Color         Blue
431           Shape         Up
432         EndFont
433 End
434
435 Style ListItem
436         CopyStyle       Item
437         LatexName       cvlistitem
438         LabelString     "List Item:"
439         ResetArgs       1
440 End
441
442 Style DoubleItem
443         CopyStyle       ListItem
444         LatexName       cvdoubleitem
445         LabelString     "Double Item:"
446         KeepEmpty       1
447         Argument 1
448           Mandatory     1
449           LabelString   "Left Summary"
450           Tooltip       "Left summary"
451         EndArgument
452         Argument 2
453           Mandatory     1
454           LabelString   "Left Text"
455           Tooltip       "Left text"
456         EndArgument
457         Argument 3
458           Mandatory     1
459           LabelString   "Right Summary"
460           Tooltip       "Right summary"
461         EndArgument
462 End
463
464 Style DoubleListItem
465         CopyStyle       ListItem
466         LatexName       cvlistdoubleitem
467         LabelString     "Double List Item:"
468         ResetArgs       1
469         Argument 1
470           Mandatory     1
471           AutoInsert    1
472           LabelString   "First Item"
473           Tooltip       "First item"
474         EndArgument
475 End
476
477 Style Language
478         ObsoletedBy     ItemWithComment
479 End
480
481 Style Computer
482         ObsoletedBy     DoubleItem
483 End
484
485 Style MakeCVtitle
486         CopyStyle       EmptySection
487         LatexName       makecvtitle{}
488         LabelString     "Make CV Title"
489         Category        FrontMatter
490         LabelFont
491           Size          Small
492         EndFont
493 End
494
495 Style MakeLetterTitle
496         CopyStyle       MakeCVtitle
497         LatexName       makelettertitle{}
498         LabelString     "Make Letter Title"
499         Category        Letter
500 End
501
502 Style MakeLetterClosing
503         CopyStyle       MakeCVtitle
504         LatexName       makeletterclosing{}
505         LabelString     "Close Letter"
506         Category        Letter
507 End
508
509 Style Bibliography
510         Category        BackMatter
511         Margin          First_Dynamic
512         LatexType       Bib_Environment
513         LatexName       thebibliography
514         NextNoIndent    1
515         ToggleIndent    Never
516         LeftMargin      MM
517         ParSkip         0.4
518         ItemSep         0
519         TopSep          0.7
520         BottomSep       0.7
521         ParSep          0.5
522         Align           Block
523         AlignPossible   Block, Left
524         LabelType       Bibliography
525         LabelString     "References"
526         LabelBottomSep  1.2
527         LabelFont
528           Series        Bold
529           Size          Larger
530           Family        Sans
531         EndFont
532         TocLevel        1
533         IsTocCaption    0
534         Argument listpreamble:1
535           LabelString    "Bib preamble"
536           MenuString     "Bibliography Preamble"
537           Tooltip        "LaTeX code to be inserted before the first bibliography item"
538           PassThru       1
539           Font
540             Family typewriter
541             Color latex
542           EndFont
543         EndArgument
544 End
545
546 Style Recipient
547         Margin          Dynamic
548         LatexType       Command
549         LatexName       recipient
550         Category        Letter
551         Argument 1
552           Mandatory     1
553           AutoInsert    1
554           LabelString   "Company Name"
555           Tooltip       "Company name"
556           #Font
557           #  Series     Bold
558           #EndFont
559         EndArgument
560         NextNoIndent    1
561         ParSkip         0.4
562         TopSep          1.3
563         BottomSep       0
564         ParSep          0.7
565         Align           Left
566         LabelSep        xxx
567         LabelType       No_Label
568         Font
569           Shape         Italic
570         EndFont
571 End
572
573 Style Date
574         CopyStyle       Recipient
575         LatexName       date
576         ResetArgs       1
577         TopSep          0
578         BottomSep       0
579         Align           Right
580         Font
581           Series        Medium
582         EndFont
583 End
584
585 Style Opening
586         CopyStyle       Date
587         LatexName       opening
588         TopSep          0
589         BottomSep       0.5
590         Align           Left
591 End
592
593 Style Closing
594         CopyStyle       Opening
595         LatexName       closing
596 End
597
598 Style Enclosing
599         Margin          Dynamic
600         CopyStyle       Opening
601         LatexName       enclosure
602         Argument 1
603           LabelString   "Alternative Name"
604           Tooltip       "Alternative instead of 'Enclosure'"
605         EndArgument
606         LabelSep        xx
607         LabelType       Static
608         LabelString     "Enclosing:"
609         Font
610           Shape         Italic
611         EndFont
612         LabelFont
613           Shape         Up
614           Series        Bold
615           Color         Blue
616         EndFont
617         
618 End
619