]> git.lyx.org Git - lyx.git/blob - lib/layouts/moderncv.layout
11e013fac64fd05f63d148388e1b8ecc130797a4
[lyx.git] / lib / layouts / moderncv.layout
1 #% Do not delete the line below; configure depends on this
2 #  \DeclareLaTeXClass[moderncv,color.sty,ebgaramond.sty,fancyhdr.sty,fontawesome.sty,hyperref.sty,ifpdf.sty,marvosym.sty,suffix.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 54
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 End
52
53 Style CVColor
54         CopyStyle       CVStyle
55         LatexName       moderncvcolor
56         LabelString     "CV Color Scheme:"
57 End
58
59 Style PDF_Page_Mode
60         CopyStyle       CVStyle
61         LatexName       renewcommand{\pdfpagemode}
62         LabelString     "PDF Page Mode:"
63 End
64
65 Style FirstName
66         LatexType       command
67         LatexName       firstname
68         Category        FrontMatter
69         InPreamble      1
70         TopSep          0.7
71         Align           Center
72         Font
73           Family        Sans
74           Size          Largest
75         EndFont
76 End
77
78 Style FamilyName
79         CopyStyle       FirstName
80         LatexName       familyname
81         TopSep          0.3
82         LabelString     "Family Name:"
83 End
84
85 Style Title
86         Margin          Static
87         LatexType       Command
88         Category        FrontMatter
89         InPreamble      1
90         LatexName       title
91         ParSkip         0.4
92         ItemSep         0
93         TopSep          0.7
94         BottomSep       0.7
95         ParSep          1
96         Align           Center
97         LabelType       No_Label
98         Font
99           Size          Larger
100           Shape         Italic
101           EndFont
102         HTMLTag         h1
103         HTMLTitle       true
104 End
105
106 Style Address
107         CopyStyle       CVStyle
108         LatexName       address
109         LabelString     "Address:"
110         BottomSep       0.3
111         TopSep          0
112         Argument 1
113           LeftDelim     {
114           RightDelim    }
115           LabelString   "Line 1"
116           Tooltip       "Optional address line"
117         EndArgument
118         Argument 2
119           LeftDelim     {
120           RightDelim    }
121           LabelString   "Line 2"
122           Tooltip       "Optional address line"
123         EndArgument
124 End
125
126 Style Mobile
127         CopyStyle       CVStyle
128         LatexName       mobile
129         LabelString     "Mobile:"
130 End
131
132 Style Phone
133         CopyStyle       CVStyle
134         LatexName       phone
135         LabelString     "Phone:"
136 End
137
138 Style Fax
139         CopyStyle       CVStyle
140         LatexName       fax
141         LabelString     "Fax:"
142 End
143
144 Style Email
145         CopyStyle       CVStyle
146         LatexName       email
147         LabelString     "Email:"
148 End
149
150 Style Homepage
151         CopyStyle       CVStyle
152         LatexName       homepage
153         LabelString     "Homepage:"
154 End
155
156 Style Social
157         CopyStyle       CVStyle
158         LatexName       social
159         LabelString     "Social:"
160         Argument 1
161           LabelString   "Name"
162           Tooltip       "Name of the social network"
163         EndArgument
164 End
165
166 Style ExtraInfo
167         CopyStyle       CVStyle
168         LatexName       extrainfo
169         LabelString     "Extra Info:"
170 End
171
172 Style Photo
173         CopyStyle       CVStyle
174         LatexName       photo
175         LabelString     "Photo:"
176         Argument 1
177           LabelString   "Height"
178           Tooltip       "Height the photo is resized to"
179         EndArgument
180         Argument 2
181           LabelString   "Thickness"
182           Tooltip       "Thickness of the surrounding frame"
183         EndArgument
184 End
185
186 Style Quote
187         CopyStyle       CVStyle
188         LatexName       quote
189         LabelType       No_Label
190         Align           Center
191         BottomSep       0.7
192         TopSep          0.5
193         Font
194           Shape         Italic
195           Size          Large
196         EndFont
197 End
198
199 Style Section
200         Category        Sectioning
201         Margin          Dynamic
202         LatexType       Command
203         LatexName       section
204         NeedProtect     1
205         NextNoIndent    1
206         ParSkip         0.4
207         TopSep          1.3
208         BottomSep       0.7
209         ParSep          0.7
210         Align           Block
211         LabelSep        xxx
212         LabelType       No_Label
213         Font
214           Family        Sans
215           Series        Bold
216         EndFont
217         TocLevel        1
218 End
219
220 Style EmptySection
221         CopyStyle       Section
222         LatexType       Command
223         LatexName       emptysection{}
224         KeepEmpty       1
225         LabelType       Static
226         LabelString     "Empty Section"
227         LabelFont
228           Color         Green
229         EndFont
230 End
231
232 Style Subsection
233         CopyStyle       Section
234         LatexName       subsection
235         TopSep          0.9
236         BottomSep       0
237         ParSep          0.5
238         Font
239           Family        Sans
240           Series        Medium
241         EndFont
242         TocLevel        2
243 End
244
245 Style CloseSection
246         ObsoletedBy     Standard
247 End
248
249 Style Columns
250         Margin          Static
251         LatexType       Environment
252         LatexName       cvcolumns
253         NextNoIndent    1
254         LeftMargin      M
255         RightMargin     M
256         ParSkip         0.4
257         BottomSep       0.5
258         ParSep          0.7
259         Align           Block
260         LabelType       Centered
261         LabelString     "Columns:"
262         LabelBottomSep  0.5
263         LabelFont
264           Series        Bold
265           Color         Blue
266         EndFont
267         TocLevel        1
268 End
269
270 InsetLayout Flex:Column
271         LyxType         custom
272         LatexType       Command
273         LaTeXName       cvcolumn
274         Argument 1
275           LabelString   "Width"
276           Tooltip       "Optional width"
277         EndArgument
278         Argument 2
279           Mandatory     1
280           AutoInsert    1
281           LabelString   "Header"
282           Tooltip       "Header content"
283         EndArgument
284         LabelString     "Column"
285         LabelFont
286           Series        Bold
287           Color         Blue
288         EndFont
289         ResetsFont true
290 End
291
292 Style Entry
293         Margin          Dynamic
294         LatexType       Command
295         LatexName       cventry
296         Argument 1
297           Mandatory     1
298           LabelString   "Time"
299           Tooltip       "Time"
300         EndArgument
301         Argument 2
302           Mandatory     1
303           LabelString   "What?"
304           Tooltip       "What?"
305           Font
306             Series      Bold
307           EndFont
308         EndArgument
309         Argument 3
310           Mandatory     1
311           LabelString   "Affiliation"
312           Tooltip       "Affiliation"
313           Font
314             Shape       Italic
315           EndFont
316         EndArgument
317         Argument 4
318           Mandatory     1
319           LabelString   "City"
320           Tooltip       "City"
321         EndArgument
322         Argument 5
323           Mandatory     1
324           LabelString   "Country"
325           Tooltip       "Country"
326         EndArgument
327         ParSkip         0.4
328         Align           Block
329         LabelSep        xx
330         LabelType       Static
331         LabelString     "Entry:"
332         LabelFont
333           Series        Bold
334           Color         Blue
335         EndFont
336 End
337
338 Style Item
339         Margin          Dynamic
340         LatexType       Command
341         LatexName       cvitem
342         Argument 1
343           Mandatory     1
344           AutoInsert    1
345           LabelString   "Summary"
346           Tooltip       "Summary"
347         EndArgument
348         ParSkip         0.4
349         Align           Block
350         LabelSep        xx
351         LabelType       Static
352         LabelString     "Item:"
353         LabelFont
354           Series        Bold
355           Color         Blue
356         EndFont
357 End
358
359 Style ItemWithComment
360         CopyStyle       Item
361         LatexName       cvitemwithcomment
362         LabelString     "Item with Comment:"
363         KeepEmpty       1
364         ResetArgs       1
365         Argument 1
366           Mandatory     1
367           LabelString   "Summary"
368           Tooltip       "Summary"
369         EndArgument
370         Argument 2
371           Mandatory     1
372           LabelString   "Text"
373           Tooltip       "Text"
374           Font
375             Series      Bold
376             Shape       Up
377           EndFont
378         EndArgument
379         Font
380           Shape         Italic
381         EndFont
382         LabelFont
383           Series        Bold
384           Color         Blue
385           Shape         Up
386         EndFont
387 End
388
389 Style ListItem
390         CopyStyle       Item
391         LatexName       cvlistitem
392         LabelString     "List Item:"
393         ResetArgs       1
394 End
395
396 Style DoubleItem
397         CopyStyle       ListItem
398         LatexName       cvdoubleitem
399         LabelString     "Double Item:"
400         KeepEmpty       1
401         Argument 1
402           Mandatory     1
403           LabelString   "Left Summary"
404           Tooltip       "Left summary"
405         EndArgument
406         Argument 2
407           Mandatory     1
408           LabelString   "Left Text"
409           Tooltip       "Left text"
410         EndArgument
411         Argument 3
412           Mandatory     1
413           LabelString   "Right Summary"
414           Tooltip       "Right summary"
415         EndArgument
416 End
417
418 Style DoubleListItem
419         CopyStyle       ListItem
420         LatexName       cvlistdoubleitem
421         LabelString     "Double List Item:"
422         ResetArgs       1
423         Argument 1
424           Mandatory     1
425           AutoInsert    1
426           LabelString   "First Item"
427           Tooltip       "First item"
428         EndArgument
429 End
430
431 Style Language
432         ObsoletedBy     ItemWithComment
433 End
434
435 Style Computer
436         ObsoletedBy     DoubleItem
437 End
438
439 Style MakeCVtitle
440         CopyStyle       EmptySection
441         LatexName       makecvtitle{}
442         LabelString     "Make CV Title"
443         Category        FrontMatter
444         LabelFont
445           Size          Small
446         EndFont
447 End
448
449 Style MakeLetterTitle
450         CopyStyle       MakeCVtitle
451         LatexName       makelettertitle{}
452         LabelString     "Make Letter Title"
453         Category        Letter
454 End
455
456 Style MakeLetterClosing
457         CopyStyle       MakeCVtitle
458         LatexName       makeletterclosing{}
459         LabelString     "Close Letter"
460         Category        Letter
461 End
462
463 Style Bibliography
464         Category        BackMatter
465         Margin          First_Dynamic
466         LatexType       Bib_Environment
467         LatexName       thebibliography
468         NextNoIndent    1
469         ToggleIndent    Never
470         LeftMargin      MM
471         ParSkip         0.4
472         ItemSep         0
473         TopSep          0.7
474         BottomSep       0.7
475         ParSep          0.5
476         Align           Block
477         AlignPossible   Block, Left
478         LabelType       Bibliography
479         LabelString     "References"
480         LabelBottomSep  1.2
481         LabelFont
482           Series        Bold
483           Size          Larger
484           Family        Sans
485         EndFont
486 End
487
488 Style Recipient
489         Margin          Dynamic
490         LatexType       Command
491         LatexName       recipient
492         Category        Letter
493         Argument 1
494           Mandatory     1
495           AutoInsert    1
496           LabelString   "Company Name"
497           Tooltip       "Company name"
498           #Font
499           #  Series     Bold
500           #EndFont
501         EndArgument
502         NextNoIndent    1
503         ParSkip         0.4
504         TopSep          1.3
505         BottomSep       0
506         ParSep          0.7
507         Align           Left
508         LabelSep        xxx
509         LabelType       No_Label
510         Font
511           Shape         Italic
512         EndFont
513 End
514
515 Style Date
516         CopyStyle       Recipient
517         LatexName       date
518         ResetArgs       1
519         TopSep          0
520         BottomSep       0
521         Align           Right
522         Font
523           Series        Medium
524         EndFont
525 End
526
527 Style Opening
528         CopyStyle       Date
529         LatexName       opening
530         TopSep          0
531         BottomSep       0.5
532         Align           Left
533 End
534
535 Style Closing
536         CopyStyle       Opening
537         LatexName       closing
538 End
539
540 Style Enclosing
541         Margin          Dynamic
542         CopyStyle       Opening
543         LatexName       enclosure
544         Argument 1
545           LabelString   "Alternative Name"
546           Tooltip       "Alternative instead of 'Enclosure'"
547         EndArgument
548         LabelSep        xx
549         LabelType       Static
550         LabelString     "Enclosing:"
551         Font
552           Shape         Italic
553         EndFont
554         LabelFont
555           Shape         Up
556           Series        Bold
557           Color         Blue
558         EndFont
559         
560 End
561