]> git.lyx.org Git - lyx.git/blobdiff - lib/layouts/moderncv.layout
Add a layout and template for the R Journal
[lyx.git] / lib / layouts / moderncv.layout
index 2c600ab283f3dde5a82215504eca1565cdfc853a..7512e3fa02aac7e36dc49dcf2d14f657151d570a 100644 (file)
@@ -1,12 +1,12 @@
 #% Do not delete the line below; configure depends on this
 #  \DeclareLaTeXClass[moderncv,color.sty,fancyhdr.sty,hyperref.sty,ifpdf.sty,marvosym.sty,suffix.sty]{Modern CV}
 #  \DeclareCategory{Curricula Vitae}
-# textclass definition file for modernCV 1.2.1
+# textclass definition file for modernCV 1.3.0
 # Author : Uwe Stöhr (uwestoehr@web.de)
 
 
 # General textclass parameters
-Format 43
+Format 45
        Columns         1
        Sides           1
        SecNumDepth     -1
@@ -55,6 +55,12 @@ Style CVColor
        LabelString     "CV Color Scheme:"
 End
 
+Style PDF_Page_Mode
+       CopyStyle       CVStyle
+       LatexName       renewcommand{\pdfpagemode}
+       LabelString     "PDF Page Mode:"
+End
+
 Style FirstName
        LatexType       command
        LatexName       firstname
@@ -103,9 +109,16 @@ Style Address
        BottomSep       0.3
        TopSep          0
        Argument 1
-         Mandatory     1
-         AutoInsert    1
-         LabelString   "Street"
+         LeftDelim     {
+         RightDelim    }
+         LabelString   "Line 1"
+         Tooltip       "Optional address line"
+       EndArgument
+       Argument 2
+         LeftDelim     {
+         RightDelim    }
+         LabelString   "Line 2"
+         Tooltip       "Optional address line"
        EndArgument
 End
 
@@ -193,6 +206,18 @@ Style Section
        TocLevel        1
 End
 
+Style EmptySection
+       CopyStyle       Section
+       LatexType       Command
+       LatexName       emptysection{}
+       KeepEmpty       1
+       LabelType       Static
+       LabelString     "Empty Section"
+       LabelFont
+         Color         Green
+       EndFont
+End
+
 Style Subsection
        CopyStyle       Section
        LatexName       subsection
@@ -206,6 +231,52 @@ Style Subsection
        TocLevel        2
 End
 
+Style CloseSection
+       ObsoletedBy     Standard
+End
+
+Style Columns
+       Margin          Static
+       LatexType       Environment
+       LatexName       cvcolumns
+       NextNoIndent    1
+       LeftMargin      M
+       RightMargin     M
+       ParSkip         0.4
+       BottomSep       0.5
+       ParSep          0.7
+       Align           Block
+       LabelType       Centered
+       LabelString     "Columns:"
+       LabelBottomSep  0.5
+       LabelFont
+         Series        Bold
+         Color         Blue
+       EndFont
+       TocLevel        1
+End
+
+InsetLayout Flex:Column
+       LyxType         custom
+       LatexType       Command
+       LaTeXName       cvcolumn
+       Argument 1
+         LabelString   "Width"
+         Tooltip       "Optional width"
+       EndArgument
+       Argument 2
+         Mandatory     1
+         AutoInsert    1
+         LabelString   "Header"
+         Tooltip       "Header content"
+       EndArgument
+       LabelString     "Column"
+       LabelFont
+         Series        Bold
+         Color         Blue
+       EndFont
+End
+
 Style Entry
        Margin          Dynamic
        LatexType       Command
@@ -353,44 +424,25 @@ Style Computer
        ObsoletedBy     DoubleItem
 End
 
-Style EmptySection
-       Margin          Dynamic
-       LatexType       Command
-       LatexName       emptysection{}
-       KeepEmpty       1
-       ParSkip         0.4
-       Align           Block
-       LabelSep        xx
-       LabelType       Static
-       LabelString     "Empty Section"
-       LabelFont
-         Series        Bold
-         Color         Green
-       EndFont
-End
-
-Style CloseSection
-       CopyStyle       EmptySection
-       LatexName       closesection{}
-       LabelString     "Close Section"
-End
-
 Style MakeCVtitle
        CopyStyle       EmptySection
        LatexName       makecvtitle{}
        LabelString     "Make CV Title"
-       Category        Title
+       Category        FrontMatter
+       LabelFont
+         Size          Small
+       EndFont
 End
 
 Style MakeLetterTitle
-       CopyStyle       EmptySection
+       CopyStyle       MakeCVtitle
        LatexName       makelettertitle{}
        LabelString     "Make Letter Title"
        Category        Letter
 End
 
 Style MakeLetterClosing
-       CopyStyle       EmptySection
+       CopyStyle       MakeCVtitle
        LatexName       makeletterclosing{}
        LabelString     "Close Letter"
        Category        Letter