]> git.lyx.org Git - lyx.git/blob - lib/layouts/moderncv.layout
0b0970e6a282714efb59d73b8493d413c60e6c3b
[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         Margin          Dynamic
176         LatexType       Command
177         LatexName       section
178         NeedProtect     1
179         NextNoIndent    1
180         ParSkip         0.4
181         TopSep          1.3
182         BottomSep       0.7
183         ParSep          0.7
184         Align           Block
185         LabelSep        xxx
186         LabelType       No_Label
187         Font
188           Family        Sans
189           Series        Bold
190         EndFont
191         TocLevel        1
192 End
193
194 Style Subsection
195         CopyStyle       Section
196         LatexName       subsection
197         TopSep          0.9
198         BottomSep       0
199         ParSep          0.5
200         Font
201           Family        Sans
202           Series        Medium
203         EndFont
204         TocLevel        2
205 End
206
207 Style Entry
208         Margin          Dynamic
209         LatexType       Command
210         LatexName       cventry
211         Argument 1
212           Mandatory     1
213           LabelString   "Time"
214           Tooltip       "Time"
215         EndArgument
216         Argument 2
217           Mandatory     1
218           LabelString   "What?"
219           Tooltip       "What?"
220           Font
221             Series      Bold
222           EndFont
223         EndArgument
224         Argument 3
225           Mandatory     1
226           LabelString   "Affiliation"
227           Tooltip       "Affiliation"
228           Font
229             Shape       Italic
230           EndFont
231         EndArgument
232         Argument 4
233           Mandatory     1
234           LabelString   "City"
235           Tooltip       "City"
236         EndArgument
237         Argument 5
238           Mandatory     1
239           LabelString   "Country"
240           Tooltip       "Country"
241         EndArgument
242         ParSkip         0.4
243         Align           Block
244         LabelSep        xx
245         LabelType       Static
246         LabelString     "Entry:"
247         LabelFont
248           Series        Bold
249           Color         Blue
250         EndFont
251 End
252
253 Style Item
254         Margin          Dynamic
255         LatexType       Command
256         LatexName       cvitem
257         Argument 1
258           Mandatory     1
259           LabelString   "Summary"
260           Tooltip       "Summary"
261         EndArgument
262         ParSkip         0.4
263         Align           Block
264         LabelSep        xx
265         LabelType       Static
266         LabelString     "Item:"
267         LabelFont
268           Series        Bold
269           Color         Blue
270         EndFont
271 End
272
273 Style ItemWithComment
274         CopyStyle       Item
275         LatexName       cvitemwithcomment
276         LabelString     "Item with comment:"
277         KeepEmpty       1
278         ResetArgs       1
279         Argument 1
280           Mandatory     1
281           LabelString   "Summary"
282           Tooltip       "Summary"
283         EndArgument
284         Argument 2
285           Mandatory     1
286           LabelString   "Text"
287           Tooltip       "Text"
288           Font
289             Series      Bold
290             Shape       Up
291           EndFont
292         EndArgument
293         Font
294           Shape         Italic
295         EndFont
296         LabelFont
297           Series        Bold
298           Color         Blue
299           Shape         Up
300         EndFont
301 End
302
303 Style ListItem
304         CopyStyle       Item
305         LatexName       cvlistitem
306         LabelString     "List Item:"
307         ResetArgs       1
308 End
309
310 Style DoubleItem
311         CopyStyle       ListItem
312         LatexName       cvdoubleitem
313         LabelString     "Double Item:"
314         KeepEmpty       1
315         Argument 1
316           Mandatory     1
317           LabelString   "Left summary"
318           Tooltip       "Left summary"
319         EndArgument
320         Argument 2
321           Mandatory     1
322           LabelString   "Left text"
323           Tooltip       "Left text"
324         EndArgument
325         Argument 3
326           Mandatory     1
327           LabelString   "Right summary"
328           Tooltip       "Right summary"
329         EndArgument
330 End
331
332 Style DoubleListItem
333         CopyStyle       ListItem
334         LatexName       cvlistdoubleitem
335         LabelString     "Double List Item:"
336         ResetArgs       1
337         Argument 1
338           Mandatory     1
339           LabelString   "First Item"
340           Tooltip       "First Item"
341         EndArgument
342 End
343
344 Style Language
345         ObsoletedBy     ItemWithComment
346 End
347
348 Style Computer
349         ObsoletedBy     DoubleItem
350 End
351
352 Style EmptySection
353         Margin          Dynamic
354         LatexType       Command
355         LatexName       emptysection{}
356         KeepEmpty       1
357         ParSkip         0.4
358         Align           Block
359         LabelSep        xx
360         LabelType       Static
361         LabelString     "Empty Section"
362         LabelFont
363           Series        Bold
364           Color         Green
365         EndFont
366 End
367
368 Style CloseSection
369         CopyStyle       EmptySection
370         LatexName       closesection{}
371         LabelString     "Close Section"
372 End
373
374 Style MakeCVtitle
375         CopyStyle       EmptySection
376         LatexName       makecvtitle{}
377         LabelString     "Make CV title"
378         Category        Title
379 End
380
381 Style MakeLetterTitle
382         CopyStyle       EmptySection
383         LatexName       makelettertitle{}
384         LabelString     "Make letter title"
385         Category        Letter
386 End
387
388 Style MakeLetterClosing
389         CopyStyle       EmptySection
390         LatexName       makeletterclosing{}
391         LabelString     "Close Letter"
392         Category        Letter
393 End
394
395 Style Bibliography
396         Margin          First_Dynamic
397         LatexType       Bib_Environment
398         LatexName       thebibliography
399         NextNoIndent    1
400         LeftMargin      MM
401         ParSkip         0.4
402         ItemSep         0
403         TopSep          0.7
404         BottomSep       0.7
405         ParSep          0.5
406         Align           Block
407         AlignPossible   Block, Left
408         LabelType       Bibliography
409         LabelString     "References"
410         LabelBottomSep  1.2
411         LabelFont
412           Series        Bold
413           Size          Larger
414           Family        Sans
415         EndFont
416 End
417
418 Style --Separator--
419         KeepEmpty       1
420         Margin          Dynamic
421         LatexType       Paragraph
422         LatexName       dummy
423         ParIndent       MM
424         Align           Block
425         LabelType       Static
426         LabelString     "--- Separate Environment ---"
427         LabelFont
428           Family        Roman
429           Series        Medium
430           Size          Normal
431           Color         Blue
432         EndFont
433         HTMLLabel       NONE
434 End
435
436 Style Recipient
437         Margin          Dynamic
438         LatexType       Command
439         LatexName       recipient
440         Category        Letter
441         Argument 1
442           Mandatory     1
443           LabelString   "Company name"
444           Tooltip       "Company name"
445           #Font
446           #  Series     Bold
447           #EndFont
448         EndArgument
449         NextNoIndent    1
450         ParSkip         0.4
451         TopSep          1.3
452         BottomSep       0
453         ParSep          0.7
454         Align           Left
455         LabelSep        xxx
456         LabelType       No_Label
457         Font
458           Shape         Italic
459         EndFont
460 End
461
462 Style Date
463         CopyStyle       Recipient
464         LatexName       date
465         ResetArgs       1
466         TopSep          0
467         BottomSep       0
468         Align           Right
469         Font
470           Series        Medium
471         EndFont
472 End
473
474 Style Opening
475         CopyStyle       Date
476         LatexName       opening
477         TopSep          0
478         BottomSep       0.5
479         Align           Left
480 End
481
482 Style Closing
483         CopyStyle       Opening
484         LatexName       closing
485 End
486
487 Style Enclosing
488         Margin          Dynamic
489         CopyStyle       Opening
490         LatexName       enclosure
491         Argument 1
492           LabelString   "Alternative name"
493           Tooltip       "Alternative instead of 'Enclosure'"
494         EndArgument
495         LabelSep        xx
496         LabelType       Static
497         LabelString     "Enclosing:"
498         Font
499           Shape         Italic
500         EndFont
501         LabelFont
502           Shape         Up
503           Series        Bold
504           Color         Blue
505         EndFont
506         
507 End
508