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