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