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