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