]> git.lyx.org Git - lyx.git/blob - lib/layouts/moderncv.layout
RJournal: use 'classic' decoration for email inset
[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 45
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 ExtraInfo
156         CopyStyle       CVStyle
157         LatexName       extrainfo
158         LabelString     "Extra Info:"
159 End
160
161 Style Photo
162         CopyStyle       CVStyle
163         LatexName       photo
164         LabelString     "Photo:"
165         Argument 1
166           LabelString   "Height"
167           Tooltip       "Height the photo is resized to"
168         EndArgument
169         Argument 2
170           LabelString   "Thickness"
171           Tooltip       "Thickness of the surrounding frame"
172         EndArgument
173 End
174
175 Style Quote
176         CopyStyle       CVStyle
177         LatexName       quote
178         LabelType       No_Label
179         Align           Center
180         BottomSep       0.7
181         TopSep          0.5
182         Font
183           Shape         Italic
184           Size          Large
185         EndFont
186 End
187
188 Style Section
189         Category        Sectioning
190         Margin          Dynamic
191         LatexType       Command
192         LatexName       section
193         NeedProtect     1
194         NextNoIndent    1
195         ParSkip         0.4
196         TopSep          1.3
197         BottomSep       0.7
198         ParSep          0.7
199         Align           Block
200         LabelSep        xxx
201         LabelType       No_Label
202         Font
203           Family        Sans
204           Series        Bold
205         EndFont
206         TocLevel        1
207 End
208
209 Style EmptySection
210         CopyStyle       Section
211         LatexType       Command
212         LatexName       emptysection{}
213         KeepEmpty       1
214         LabelType       Static
215         LabelString     "Empty Section"
216         LabelFont
217           Color         Green
218         EndFont
219 End
220
221 Style Subsection
222         CopyStyle       Section
223         LatexName       subsection
224         TopSep          0.9
225         BottomSep       0
226         ParSep          0.5
227         Font
228           Family        Sans
229           Series        Medium
230         EndFont
231         TocLevel        2
232 End
233
234 Style CloseSection
235         ObsoletedBy     Standard
236 End
237
238 Style Columns
239         Margin          Static
240         LatexType       Environment
241         LatexName       cvcolumns
242         NextNoIndent    1
243         LeftMargin      M
244         RightMargin     M
245         ParSkip         0.4
246         BottomSep       0.5
247         ParSep          0.7
248         Align           Block
249         LabelType       Centered
250         LabelString     "Columns:"
251         LabelBottomSep  0.5
252         LabelFont
253           Series        Bold
254           Color         Blue
255         EndFont
256         TocLevel        1
257 End
258
259 InsetLayout Flex:Column
260         LyxType         custom
261         LatexType       Command
262         LaTeXName       cvcolumn
263         Argument 1
264           LabelString   "Width"
265           Tooltip       "Optional width"
266         EndArgument
267         Argument 2
268           Mandatory     1
269           AutoInsert    1
270           LabelString   "Header"
271           Tooltip       "Header content"
272         EndArgument
273         LabelString     "Column"
274         LabelFont
275           Series        Bold
276           Color         Blue
277         EndFont
278 End
279
280 Style Entry
281         Margin          Dynamic
282         LatexType       Command
283         LatexName       cventry
284         Argument 1
285           Mandatory     1
286           LabelString   "Time"
287           Tooltip       "Time"
288         EndArgument
289         Argument 2
290           Mandatory     1
291           LabelString   "What?"
292           Tooltip       "What?"
293           Font
294             Series      Bold
295           EndFont
296         EndArgument
297         Argument 3
298           Mandatory     1
299           LabelString   "Affiliation"
300           Tooltip       "Affiliation"
301           Font
302             Shape       Italic
303           EndFont
304         EndArgument
305         Argument 4
306           Mandatory     1
307           LabelString   "City"
308           Tooltip       "City"
309         EndArgument
310         Argument 5
311           Mandatory     1
312           LabelString   "Country"
313           Tooltip       "Country"
314         EndArgument
315         ParSkip         0.4
316         Align           Block
317         LabelSep        xx
318         LabelType       Static
319         LabelString     "Entry:"
320         LabelFont
321           Series        Bold
322           Color         Blue
323         EndFont
324 End
325
326 Style Item
327         Margin          Dynamic
328         LatexType       Command
329         LatexName       cvitem
330         Argument 1
331           Mandatory     1
332           AutoInsert    1
333           LabelString   "Summary"
334           Tooltip       "Summary"
335         EndArgument
336         ParSkip         0.4
337         Align           Block
338         LabelSep        xx
339         LabelType       Static
340         LabelString     "Item:"
341         LabelFont
342           Series        Bold
343           Color         Blue
344         EndFont
345 End
346
347 Style ItemWithComment
348         CopyStyle       Item
349         LatexName       cvitemwithcomment
350         LabelString     "Item with Comment:"
351         KeepEmpty       1
352         ResetArgs       1
353         Argument 1
354           Mandatory     1
355           LabelString   "Summary"
356           Tooltip       "Summary"
357         EndArgument
358         Argument 2
359           Mandatory     1
360           LabelString   "Text"
361           Tooltip       "Text"
362           Font
363             Series      Bold
364             Shape       Up
365           EndFont
366         EndArgument
367         Font
368           Shape         Italic
369         EndFont
370         LabelFont
371           Series        Bold
372           Color         Blue
373           Shape         Up
374         EndFont
375 End
376
377 Style ListItem
378         CopyStyle       Item
379         LatexName       cvlistitem
380         LabelString     "List Item:"
381         ResetArgs       1
382 End
383
384 Style DoubleItem
385         CopyStyle       ListItem
386         LatexName       cvdoubleitem
387         LabelString     "Double Item:"
388         KeepEmpty       1
389         Argument 1
390           Mandatory     1
391           LabelString   "Left Summary"
392           Tooltip       "Left summary"
393         EndArgument
394         Argument 2
395           Mandatory     1
396           LabelString   "Left Text"
397           Tooltip       "Left text"
398         EndArgument
399         Argument 3
400           Mandatory     1
401           LabelString   "Right Summary"
402           Tooltip       "Right summary"
403         EndArgument
404 End
405
406 Style DoubleListItem
407         CopyStyle       ListItem
408         LatexName       cvlistdoubleitem
409         LabelString     "Double List Item:"
410         ResetArgs       1
411         Argument 1
412           Mandatory     1
413           AutoInsert    1
414           LabelString   "First Item"
415           Tooltip       "First item"
416         EndArgument
417 End
418
419 Style Language
420         ObsoletedBy     ItemWithComment
421 End
422
423 Style Computer
424         ObsoletedBy     DoubleItem
425 End
426
427 Style MakeCVtitle
428         CopyStyle       EmptySection
429         LatexName       makecvtitle{}
430         LabelString     "Make CV Title"
431         Category        FrontMatter
432         LabelFont
433           Size          Small
434         EndFont
435 End
436
437 Style MakeLetterTitle
438         CopyStyle       MakeCVtitle
439         LatexName       makelettertitle{}
440         LabelString     "Make Letter Title"
441         Category        Letter
442 End
443
444 Style MakeLetterClosing
445         CopyStyle       MakeCVtitle
446         LatexName       makeletterclosing{}
447         LabelString     "Close Letter"
448         Category        Letter
449 End
450
451 Style Bibliography
452         Category        BackMatter
453         Margin          First_Dynamic
454         LatexType       Bib_Environment
455         LatexName       thebibliography
456         NextNoIndent    1
457         LeftMargin      MM
458         ParSkip         0.4
459         ItemSep         0
460         TopSep          0.7
461         BottomSep       0.7
462         ParSep          0.5
463         Align           Block
464         AlignPossible   Block, Left
465         LabelType       Bibliography
466         LabelString     "References"
467         LabelBottomSep  1.2
468         LabelFont
469           Series        Bold
470           Size          Larger
471           Family        Sans
472         EndFont
473 End
474
475 Style --Separator--
476         KeepEmpty       1
477         Margin          Dynamic
478         LatexType       Paragraph
479         LatexName       dummy
480         ParIndent       MM
481         Align           Block
482         LabelType       Static
483         LabelString     "--- Separate Environment ---"
484         LabelFont
485           Family        Roman
486           Series        Medium
487           Size          Normal
488           Color         Blue
489         EndFont
490         HTMLLabel       NONE
491 End
492
493 Style Recipient
494         Margin          Dynamic
495         LatexType       Command
496         LatexName       recipient
497         Category        Letter
498         Argument 1
499           Mandatory     1
500           AutoInsert    1
501           LabelString   "Company Name"
502           Tooltip       "Company name"
503           #Font
504           #  Series     Bold
505           #EndFont
506         EndArgument
507         NextNoIndent    1
508         ParSkip         0.4
509         TopSep          1.3
510         BottomSep       0
511         ParSep          0.7
512         Align           Left
513         LabelSep        xxx
514         LabelType       No_Label
515         Font
516           Shape         Italic
517         EndFont
518 End
519
520 Style Date
521         CopyStyle       Recipient
522         LatexName       date
523         ResetArgs       1
524         TopSep          0
525         BottomSep       0
526         Align           Right
527         Font
528           Series        Medium
529         EndFont
530 End
531
532 Style Opening
533         CopyStyle       Date
534         LatexName       opening
535         TopSep          0
536         BottomSep       0.5
537         Align           Left
538 End
539
540 Style Closing
541         CopyStyle       Opening
542         LatexName       closing
543 End
544
545 Style Enclosing
546         Margin          Dynamic
547         CopyStyle       Opening
548         LatexName       enclosure
549         Argument 1
550           LabelString   "Alternative Name"
551           Tooltip       "Alternative instead of 'Enclosure'"
552         EndArgument
553         LabelSep        xx
554         LabelType       Static
555         LabelString     "Enclosing:"
556         Font
557           Shape         Italic
558         EndFont
559         LabelFont
560           Shape         Up
561           Series        Bold
562           Color         Blue
563         EndFont
564         
565 End
566