]> git.lyx.org Git - lyx.git/blobdiff - lib/layouts/moderncv.layout
Change name and email in some other files
[lyx.git] / lib / layouts / moderncv.layout
index 57aa0bdf151bc2748a2e9229e4784bc14a0d5375..ec3f15b7a990d9c437289d0ac728cbc901724e5d 100644 (file)
@@ -1,12 +1,13 @@
 #% Do not delete the line below; configure depends on this
-#  \DeclareLaTeXClass[moderncv,color.sty,fancyhdr.sty,hyperref.sty,ifpdf.sty,marvosym.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 1.2.0
+# textclass definition file for modernCV 2.0.x
+# (also works with modernCV 1.5.x)
 # Author : Uwe Stöhr (uwestoehr@web.de)
 
 
 # General textclass parameters
-Format 43
+Format 89
        Columns         1
        Sides           1
        SecNumDepth     -1
@@ -27,6 +28,7 @@ Style Standard
        Align           Block
        AlignPossible   Block, Left, Right, Center
        LabelType       No_Label
+       DocBookTag  para
 End
 
 Input stdcounters.inc
@@ -42,22 +44,59 @@ Style CVStyle
        ParSkip         0.4
        LabelSep        xx
        LabelType       Static
-       LabelString     "CV style:"
+       LabelString     "CV Style:"
        LabelFont
          Series        Bold
          Color         Blue
        EndFont
+       Argument 1
+         LabelString   "Style Options"
+         Tooltip               "Options for the CV style"
+       EndArgument
+       # For DocBook, in <info>, so that the next tags can be there. 
+       DocBookTag     IGNORE
+       DocBookInInfo  maybe
 End
 
 Style CVColor
        CopyStyle       CVStyle
        LatexName       moderncvcolor
-       LabelString     "CV color scheme:"
+       LabelString     "CV Color Scheme:"
+       # For DocBook, in <info>, so that the next tags can be there. 
+       DocBookTag     IGNORE
+       DocBookInInfo  maybe
 End
 
-Style FirstName
+Style CVIcons
+       CopyStyle       CVStyle
+       LatexName       moderncvicons
+       LabelString     "CV Icon Set:"
+       # For DocBook, in <info>, so that the next tags can be there. 
+       DocBookTag     IGNORE
+       DocBookInInfo  maybe
+End
+
+Style CVColumnWidth
+       CopyStyle       CVStyle
+       LatexName       setlength{\hintscolumnwidth}
+       LabelString     "Column Width:"
+       # For DocBook, in <info>, so that the next tags can be there. 
+       DocBookTag     IGNORE
+       DocBookInInfo  maybe
+End
+
+Style PDF_Page_Mode
+       CopyStyle       CVStyle
+       LatexName       renewcommand{\pdfpagemode}
+       LabelString     "PDF Page Mode:"
+       # For DocBook, in <info>, so that the next tags can be there. 
+       DocBookTag     IGNORE
+       DocBookInInfo  maybe
+End
+
+Style Name
        LatexType       command
-       LatexName       firstname
+       LatexName       name
        Category        FrontMatter
        InPreamble      1
        TopSep          0.7
@@ -66,6 +105,24 @@ Style FirstName
          Family        Sans
          Size          Largest
        EndFont
+       Argument 1
+         LabelString   "First Name"
+         Tooltip       "First name"
+         Mandatory     1
+         # TODO: If this produces a DocBook tag <firstname>, the rest must be in <givename>, but that's not possible yet.
+       EndArgument
+       DocBookTag            personname
+       DocBookTagType        paragraph
+       DocBookWrapperTag     author
+       DocBookWrapperTagType block
+       DocBookInInfo         always
+End
+
+Style FirstName
+       CopyStyle       Name
+       LatexName       firstname
+       ResetArgs       0
+       ObsoletedBy     Name
 End
 
 Style FamilyName
@@ -73,6 +130,7 @@ Style FamilyName
        LatexName       familyname
        TopSep          0.3
        LabelString     "Family Name:"
+       ObsoletedBy     Name
 End
 
 Style Title
@@ -94,6 +152,9 @@ Style Title
          EndFont
        HTMLTag         h1
        HTMLTitle       true
+       DocBookTag     title
+       DocBookTagType paragraph
+       DocBookInInfo  maybe
 End
 
 Style Address
@@ -103,59 +164,140 @@ Style Address
        BottomSep       0.3
        TopSep          0
        Argument 1
+         LabelString   "Line 1"
+         Tooltip       "Optional address line"
          Mandatory     1
-         LabelString   "Street"
        EndArgument
-End
-
-Style Mobile
-       CopyStyle       CVStyle
-       LatexName       mobile
-       LabelString     "Mobile:"
+       Argument 2
+         LabelString   "Line 2"
+         Tooltip       "Optional address line"
+         Mandatory     1
+       EndArgument
+       DocBookTag            NONE
+       DocBookWrapperTag     address
+       DocBookWrapperTagType block
+       DocBookWrapperMergeWithPrevious true
+       DocBookInInfo         always
 End
 
 Style Phone
        CopyStyle       CVStyle
        LatexName       phone
        LabelString     "Phone:"
+       Argument 1
+         LabelString   "Phone Type"
+         Tooltip       "can be fixed, mobile or fax"
+         # TODO: for DocBook, this should be translated into a role.
+         DocBookTag      emphasis
+         DocBookTagType  inline
+       EndArgument
+       DocBookTag            phone
+       DocBookTagType        paragraph
+       DocBookWrapperTag     address
+       DocBookWrapperTagType block
+       DocBookWrapperMergeWithPrevious true
+       DocBookInInfo         always
+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
        CopyStyle       CVStyle
        LatexName       email
        LabelString     "Email:"
+       DocBookTag            email
+       DocBookTagType        paragraph
+       DocBookWrapperTag     address
+       DocBookWrapperTagType block
+       DocBookWrapperMergeWithPrevious true
+       DocBookInInfo         always
 End
 
 Style Homepage
        CopyStyle       CVStyle
        LatexName       homepage
        LabelString     "Homepage:"
+       DocBookTag            uri
+       DocBookAttr           type='homepage'
+       DocBookTagType        paragraph
+       DocBookWrapperTag     address
+       DocBookWrapperTagType block
+       DocBookWrapperMergeWithPrevious true
+       DocBookInInfo         always
+End
+
+Style Social
+       CopyStyle       CVStyle
+       LatexName       social
+       LabelString     "Social:"
+       Argument 1
+         LabelString   "Name"
+         Tooltip       "Name of the social network"
+         # TODO: for DocBook, this should be translated into a role.
+         DocBookTag      emphasis
+         DocBookTagType  inline
+       EndArgument
+       DocBookTag            uri
+       DocBookAttr           type='social-network'
+       DocBookTagType        paragraph
+       DocBookWrapperTag     address
+       DocBookWrapperTagType block
+       DocBookWrapperMergeWithPrevious true
+       DocBookInInfo         always
 End
 
 Style ExtraInfo
        CopyStyle       CVStyle
        LatexName       extrainfo
        LabelString     "Extra Info:"
+       DocBookTag            otheraddr
+       DocBookTagType        paragraph
+       DocBookWrapperTag     address
+       DocBookWrapperTagType block
+       DocBookWrapperMergeWithPrevious true
+       DocBookInInfo         always
 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
+       DocBookTag            date
+       DocBookAttr           role='picture'
+       DocBookInInfo         always
+       DocBookWrapperTag     NONE
 End
 
 Style Quote
@@ -169,10 +311,13 @@ Style Quote
          Shape         Italic
          Size          Large
        EndFont
+       DocBookTag     para
+       DocBookWrapperTag  blockquote
+       DocBookInInfo  false
 End
 
 Style Section
-       Category        Sectioning
+       Category        Sectioning
        Margin          Dynamic
        LatexType       Command
        LatexName       section
@@ -190,6 +335,20 @@ Style Section
          Series        Bold
        EndFont
        TocLevel        1
+       DocBookTag      title
+       DocBookTagType  paragraph
+End
+
+Style EmptySection
+       CopyStyle       Section
+       LatexType       Command
+       LatexName       emptysection{}
+       KeepEmpty       1
+       LabelType       Static
+       LabelString     "Empty Section"
+       LabelFont
+         Color         Green
+       EndFont
 End
 
 Style Subsection
@@ -205,40 +364,103 @@ 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
+       DocBookTag  NONE
+End
+
+InsetLayout Flex:Column
+       LyxType         custom
+       LatexType       Command
+       LaTeXName       cvcolumn
+       Argument 1
+         LabelString   "Width"
+         Tooltip       "Optional width"
+         PassThru      1
+         DocBookTag  IGNORE
+       EndArgument
+       Argument 2
+         Mandatory     1
+         AutoInsert    1
+         LabelString   "Header"
+         Tooltip       "Header content"
+         DocBookTag  title
+       EndArgument
+       LabelString     "Column"
+       LabelFont
+         Series        Bold
+         Color         Blue
+       EndFont
+       ResetsFont true
+       DocBookTag  sidebar
+       # TODO: issue with paragraphs inside, they do not get properly wrapped in <para> if required. Using a wrapper tag makes everything under <para>, including the title.
+End
+
 Style Entry
        Margin          Dynamic
        LatexType       Command
        LatexName       cventry
        Argument 1
          Mandatory     1
-         LabelString   "Time"
-         Tooltip       "Time"
+         LabelString   "Years"
+         Tooltip       "Years"
+         DocBookTag    phrase
+         DocBookAttr   role='years'
        EndArgument
        Argument 2
          Mandatory     1
-         LabelString   "What?"
-         Tooltip       "What?"
+         LabelString   "Title"
+         Tooltip       "Degree or job title"
          Font
            Series      Bold
          EndFont
+         DocBookTag    phrase
+         DocBookAttr   role='title'
        EndArgument
        Argument 3
          Mandatory     1
          LabelString   "Affiliation"
-         Tooltip       "Affiliation"
+         Tooltip       "Institution or employer"
          Font
            Shape       Italic
          EndFont
+         DocBookTag    phrase
+         DocBookAttr   role='affiliation'
        EndArgument
        Argument 4
          Mandatory     1
-         LabelString   "City"
-         Tooltip       "City"
+         LabelString   "Localization"
+         Tooltip       "City or country"
+         DocBookTag    phrase
+         DocBookAttr   role='localization'
        EndArgument
        Argument 5
          Mandatory     1
-         LabelString   "Country"
-         Tooltip       "Country"
+         LabelString   "Optional"
+         Tooltip       "Grade or other info"
+         DocBookTag    phrase
+         DocBookAttr   role='optional'
        EndArgument
        ParSkip         0.4
        Align           Block
@@ -249,6 +471,7 @@ Style Entry
          Series        Bold
          Color         Blue
        EndFont
+       DocBookTag  para
 End
 
 Style Item
@@ -257,8 +480,11 @@ Style Item
        LatexName       cvitem
        Argument 1
          Mandatory     1
+         AutoInsert    1
          LabelString   "Summary"
          Tooltip       "Summary"
+         DocBookTag    phrase
+         DocBookAttr   role='summary'
        EndArgument
        ParSkip         0.4
        Align           Block
@@ -269,18 +495,21 @@ Style Item
          Series        Bold
          Color         Blue
        EndFont
+       DocBookTag  para
 End
 
 Style ItemWithComment
        CopyStyle       Item
        LatexName       cvitemwithcomment
-       LabelString     "Item with comment:"
+       LabelString     "Item with Comment:"
        KeepEmpty       1
        ResetArgs       1
        Argument 1
          Mandatory     1
          LabelString   "Summary"
          Tooltip       "Summary"
+         DocBookTag    phrase
+         DocBookAttr   role='summary'
        EndArgument
        Argument 2
          Mandatory     1
@@ -290,6 +519,8 @@ Style ItemWithComment
            Series      Bold
            Shape       Up
          EndFont
+         DocBookTag    phrase
+         DocBookAttr   role='text'
        EndArgument
        Font
          Shape         Italic
@@ -299,6 +530,7 @@ Style ItemWithComment
          Color         Blue
          Shape         Up
        EndFont
+       DocBookTag  para
 End
 
 Style ListItem
@@ -315,17 +547,17 @@ Style DoubleItem
        KeepEmpty       1
        Argument 1
          Mandatory     1
-         LabelString   "Left summary"
+         LabelString   "Left Summary"
          Tooltip       "Left summary"
        EndArgument
        Argument 2
          Mandatory     1
-         LabelString   "Left text"
+         LabelString   "Left Text"
          Tooltip       "Left text"
        EndArgument
        Argument 3
          Mandatory     1
-         LabelString   "Right summary"
+         LabelString   "Right Summary"
          Tooltip       "Right summary"
        EndArgument
 End
@@ -337,8 +569,9 @@ Style DoubleListItem
        ResetArgs       1
        Argument 1
          Mandatory     1
+         AutoInsert    1
          LabelString   "First Item"
-         Tooltip       "First Item"
+         Tooltip       "First item"
        EndArgument
 End
 
@@ -350,55 +583,37 @@ 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
+       LabelString     "Make CV Title"
+       Category        FrontMatter
+       LabelFont
+         Size          Small
+       EndFont
 End
 
 Style MakeLetterTitle
-       CopyStyle       EmptySection
+       CopyStyle       MakeCVtitle
        LatexName       makelettertitle{}
-       LabelString     "Make letter title"
+       LabelString     "Make Letter Title"
        Category        Letter
 End
 
 Style MakeLetterClosing
-       CopyStyle       EmptySection
+       CopyStyle       MakeCVtitle
        LatexName       makeletterclosing{}
        LabelString     "Close Letter"
        Category        Letter
 End
 
 Style Bibliography
-       Category        BackMatter
+       Category        BackMatter
        Margin          First_Dynamic
        LatexType       Bib_Environment
        LatexName       thebibliography
        NextNoIndent    1
+       ToggleIndent    Never
        LeftMargin      MM
        ParSkip         0.4
        ItemSep         0
@@ -415,24 +630,18 @@ Style Bibliography
          Size          Larger
          Family        Sans
        EndFont
-End
-
-Style --Separator--
-       KeepEmpty       1
-       Margin          Dynamic
-       LatexType       Paragraph
-       LatexName       dummy
-       ParIndent       MM
-       Align           Block
-       LabelType       Static
-       LabelString     "--- Separate Environment ---"
-       LabelFont
-         Family        Roman
-         Series        Medium
-         Size          Normal
-         Color         Blue
-       EndFont
-       HTMLLabel       NONE
+       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
@@ -442,7 +651,8 @@ Style Recipient
        Category        Letter
        Argument 1
          Mandatory     1
-         LabelString   "Company name"
+         AutoInsert    1
+         LabelString   "Company Name"
          Tooltip       "Company name"
          #Font
          #  Series     Bold
@@ -491,7 +701,7 @@ Style Enclosing
        CopyStyle       Opening
        LatexName       enclosure
        Argument 1
-         LabelString   "Alternative name"
+         LabelString   "Alternative Name"
          Tooltip       "Alternative instead of 'Enclosure'"
        EndArgument
        LabelSep        xx