]> git.lyx.org Git - lyx.git/blobdiff - lib/layouts/moderncv.layout
Tools(listFontWithLang.pl): Added type for small capitals.
[lyx.git] / lib / layouts / moderncv.layout
index 11e013fac64fd05f63d148388e1b8ecc130797a4..0ee4c7a2708ce8a929970cfc92eb2ec66f4882c3 100644 (file)
@@ -1,5 +1,5 @@
 #% Do not delete the line below; configure depends on this
-#  \DeclareLaTeXClass[moderncv,color.sty,ebgaramond.sty,fancyhdr.sty,fontawesome.sty,hyperref.sty,ifpdf.sty,marvosym.sty,suffix.sty]{Modern CV}
+#  \DeclareLaTeXClass[moderncv,ebgaramond.sty,fancyhdr.sty,fontawesome.sty,ifpdf.sty,marvosym.sty]{Modern CV}
 #  \DeclareCategory{Curricula Vitae}
 # textclass definition file for modernCV 2.0.x
 # (also works with modernCV 1.5.x)
@@ -7,7 +7,7 @@
 
 
 # General textclass parameters
-Format 54
+Format 81
        Columns         1
        Sides           1
        SecNumDepth     -1
@@ -48,6 +48,10 @@ Style CVStyle
          Series        Bold
          Color         Blue
        EndFont
+       Argument 1
+         LabelString   "Style Options"
+         Tooltip               "Options for the CV style"
+       EndArgument
 End
 
 Style CVColor
@@ -56,15 +60,27 @@ Style CVColor
        LabelString     "CV Color Scheme:"
 End
 
+Style CVIcons
+       CopyStyle       CVStyle
+       LatexName       moderncvicons
+       LabelString     "CV Icon Set:"
+End
+
+Style CVColumnWidth
+       CopyStyle       CVStyle
+       LatexName       setlength{\hintscolumnwidth}
+       LabelString     "Column Width:"
+End
+
 Style PDF_Page_Mode
        CopyStyle       CVStyle
        LatexName       renewcommand{\pdfpagemode}
        LabelString     "PDF Page Mode:"
 End
 
-Style FirstName
+Style Name
        LatexType       command
-       LatexName       firstname
+       LatexName       name
        Category        FrontMatter
        InPreamble      1
        TopSep          0.7
@@ -73,6 +89,18 @@ Style FirstName
          Family        Sans
          Size          Largest
        EndFont
+       Argument 1
+         LabelString   "First Name"
+         Tooltip       "First name"
+         Mandatory     1
+       EndArgument
+End
+
+Style FirstName
+       CopyStyle       Name
+       LatexName       firstname
+       ResetArgs       0
+       ObsoletedBy     Name
 End
 
 Style FamilyName
@@ -80,6 +108,7 @@ Style FamilyName
        LatexName       familyname
        TopSep          0.3
        LabelString     "Family Name:"
+       ObsoletedBy     Name
 End
 
 Style Title
@@ -110,35 +139,39 @@ Style Address
        BottomSep       0.3
        TopSep          0
        Argument 1
-         LeftDelim     {
-         RightDelim    }
          LabelString   "Line 1"
          Tooltip       "Optional address line"
+         Mandatory     1
        EndArgument
        Argument 2
-         LeftDelim     {
-         RightDelim    }
          LabelString   "Line 2"
          Tooltip       "Optional address line"
+         Mandatory     1
        EndArgument
 End
 
-Style Mobile
-       CopyStyle       CVStyle
-       LatexName       mobile
-       LabelString     "Mobile:"
-End
-
 Style Phone
        CopyStyle       CVStyle
        LatexName       phone
        LabelString     "Phone:"
+       Argument 1
+         LabelString   "Phone Type"
+         Tooltip       "can be fixed, mobile or fax"
+       EndArgument
+End
+
+Style Mobile
+       CopyStyle       CVStyle
+       LatexName       mobile
+       LabelString     "Mobile:"
+       ObsoletedBy     Phone
 End
 
 Style Fax
        CopyStyle       CVStyle
        LatexName       fax
        LabelString     "Fax:"
+       ObsoletedBy     Phone
 End
 
 Style Email
@@ -169,18 +202,30 @@ Style ExtraInfo
        LabelString     "Extra Info:"
 End
 
+# Path to a digital image:
 Style Photo
        CopyStyle       CVStyle
+       Font
+         Family        typewriter
+       EndFont
+       LabelFont
+         Family        Roman
+         Series        Bold
+         Color         Blue
+       EndFont
        LatexName       photo
        LabelString     "Photo:"
        Argument 1
          LabelString   "Height"
          Tooltip       "Height the photo is resized to"
+         PassThru      1
        EndArgument
        Argument 2
          LabelString   "Thickness"
          Tooltip       "Thickness of the surrounding frame"
+         PassThru      1
        EndArgument
+       PassThru        1
 End
 
 Style Quote
@@ -274,6 +319,7 @@ InsetLayout Flex:Column
        Argument 1
          LabelString   "Width"
          Tooltip       "Optional width"
+         PassThru      1
        EndArgument
        Argument 2
          Mandatory     1
@@ -295,8 +341,8 @@ Style Entry
        LatexName       cventry
        Argument 1
          Mandatory     1
-         LabelString   "Time"
-         Tooltip       "Time"
+         LabelString   "Time[[period]]"
+         Tooltip       "Time[[period]]"
        EndArgument
        Argument 2
          Mandatory     1
@@ -483,6 +529,18 @@ Style Bibliography
          Size          Larger
          Family        Sans
        EndFont
+       TocLevel        1
+       IsTocCaption    0
+       Argument listpreamble:1
+         LabelString    "Bib preamble"
+         MenuString     "Bibliography Preamble"
+         Tooltip        "LaTeX code to be inserted before the first bibliography item"
+         PassThru       1
+         Font
+           Family typewriter
+           Color latex
+         EndFont
+       EndArgument
 End
 
 Style Recipient