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