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