]> git.lyx.org Git - lyx.git/blob - lib/layouts/moderncv.layout
9738a187fdd0d6a822e5f88224b9aaab19574c91
[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 48
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 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         LeftMargin      MM
468         ParSkip         0.4
469         ItemSep         0
470         TopSep          0.7
471         BottomSep       0.7
472         ParSep          0.5
473         Align           Block
474         AlignPossible   Block, Left
475         LabelType       Bibliography
476         LabelString     "References"
477         LabelBottomSep  1.2
478         LabelFont
479           Series        Bold
480           Size          Larger
481           Family        Sans
482         EndFont
483 End
484
485 Style --Separator--
486         KeepEmpty       1
487         Margin          Dynamic
488         LatexType       Paragraph
489         LatexName       dummy
490         ParIndent       MM
491         Align           Block
492         LabelType       Static
493         LabelString     "--- Separate Environment ---"
494         LabelFont
495           Family        Roman
496           Series        Medium
497           Size          Normal
498           Color         Blue
499         EndFont
500         HTMLLabel       NONE
501 End
502
503 Style Recipient
504         Margin          Dynamic
505         LatexType       Command
506         LatexName       recipient
507         Category        Letter
508         Argument 1
509           Mandatory     1
510           AutoInsert    1
511           LabelString   "Company Name"
512           Tooltip       "Company name"
513           #Font
514           #  Series     Bold
515           #EndFont
516         EndArgument
517         NextNoIndent    1
518         ParSkip         0.4
519         TopSep          1.3
520         BottomSep       0
521         ParSep          0.7
522         Align           Left
523         LabelSep        xxx
524         LabelType       No_Label
525         Font
526           Shape         Italic
527         EndFont
528 End
529
530 Style Date
531         CopyStyle       Recipient
532         LatexName       date
533         ResetArgs       1
534         TopSep          0
535         BottomSep       0
536         Align           Right
537         Font
538           Series        Medium
539         EndFont
540 End
541
542 Style Opening
543         CopyStyle       Date
544         LatexName       opening
545         TopSep          0
546         BottomSep       0.5
547         Align           Left
548 End
549
550 Style Closing
551         CopyStyle       Opening
552         LatexName       closing
553 End
554
555 Style Enclosing
556         Margin          Dynamic
557         CopyStyle       Opening
558         LatexName       enclosure
559         Argument 1
560           LabelString   "Alternative Name"
561           Tooltip       "Alternative instead of 'Enclosure'"
562         EndArgument
563         LabelSep        xx
564         LabelType       Static
565         LabelString     "Enclosing:"
566         Font
567           Shape         Italic
568         EndFont
569         LabelFont
570           Shape         Up
571           Series        Bold
572           Color         Blue
573         EndFont
574         
575 End
576