]> git.lyx.org Git - lyx.git/blobdiff - lib/layouts/europasscv.layout
Add frontispiece layout to KOMA classes
[lyx.git] / lib / layouts / europasscv.layout
index fb9f98a79e0b55b0bb4df51f2620aa8a1982d3ed..7d7f9403df4d7b686299c727f74b517808e9c5f8 100644 (file)
@@ -35,7 +35,7 @@
 
 
 # General textclass parameters
-Format 81
+Format 90
 
 Columns                 1
 Sides           1
@@ -65,6 +65,7 @@ Style Standard
        ParSkip         0.4
        Align           Block
        LabelType       No_Label
+       DocBookTag  para
 End
 
 Input stdcounters.inc
@@ -87,20 +88,36 @@ Style Name
        Align           Left
        LabelFont
          Series        Bold
-         Color         Magenta
+         Color         textlabel3
        EndFont
+       DocBookTag            personname
+       DocBookTagType        paragraph
+       DocBookWrapperTag     author
+       DocBookWrapperTagType block
+       DocBookInInfo         always
 End
 
 Style FooterName
        CopyStyle       Name
        LatexName       ecvfootername
        LabelString     "Name (footer):"
+       DocBookTag            personname
+       DocBookTagType        paragraph
+       DocBookWrapperTag     author
+       DocBookWrapperAttr    role='footer'
+       DocBookWrapperTagType block
+       DocBookInInfo         always
 End
 
 Style Address
        CopyStyle       Name
        LatexName       ecvaddress
        LabelString     "Address:"
+       DocBookTag            NONE
+       DocBookWrapperTag     address
+       DocBookWrapperTagType block
+       DocBookWrapperMergeWithPrevious true
+       DocBookInInfo         always
 End
 
 Style Telephone
@@ -110,25 +127,52 @@ Style Telephone
        Argument 1
          LabelString   "Mobile:"
          Tooltip       "Mobile phone number"
+         DocBookTag    phrase
+         DocBookAttr   role='mobile'
        EndArgument
+       DocBookTag            phone
+       DocBookTagType        paragraph
+       DocBookWrapperTag     address
+       DocBookWrapperTagType block
+       DocBookWrapperMergeWithPrevious true
+       DocBookInInfo         always
 End
 
 Style Fax
        CopyStyle       Name
        LatexName       ecvfax
        LabelString     "Fax:"
+       DocBookTag            fax
+       DocBookTagType        paragraph
+       DocBookWrapperTag     address
+       DocBookWrapperTagType block
+       DocBookWrapperMergeWithPrevious true
+       DocBookInInfo         always
 End
 
 Style Email
        CopyStyle       Name
        LatexName       ecvemail
        LabelString     "E-mail:"
+       DocBookTag            email
+       DocBookTagType        paragraph
+       DocBookWrapperTag     address
+       DocBookWrapperTagType block
+       DocBookWrapperMergeWithPrevious true
+       DocBookInInfo         always
 End
 
 Style Homepage
        CopyStyle       Name
        LatexName       ecvhomepage
        LabelString     "Homepage:"
+       DocBookTag            uri
+       DocBookAttr           type='homepage'
+       DocBookTagType        paragraph
+       DocBookWrapperTag     address
+       DocBookWrapperTagType block
+       DocBookWrapperMergeWithPrevious true
+       DocBookInInfo         always
 End
 
 Style InstantMessaging
@@ -140,31 +184,54 @@ Style InstantMessaging
          AutoInsert    1
          LabelString   "IM Type:"
          Tooltip       "IM Type (e.g., AOL Messenger)"
+         DocBookTag    emphasis
+         DocBookAttr   role='type'
        EndArgument
+       DocBookTag            uri
+       DocBookAttr           type='instant-messaging'
+       DocBookTagType        paragraph
+       DocBookWrapperTag     address
+       DocBookWrapperTagType block
+       DocBookWrapperMergeWithPrevious true
+       DocBookInInfo         always
 End
 
 Style Birthday
        CopyStyle       Name
        LatexName       ecvdateofbirth
        LabelString     "Date of birth:"
+       DocBookTag            date
+       DocBookAttr           role='birthday'
+       DocBookInInfo         always
+       DocBookWrapperTag     NONE
 End
 
 Style Nationality
        CopyStyle       Name
        LatexName       ecvnationality
        LabelString     "Nationality:"
+       DocBookTag            date
+       DocBookAttr           role='nationality'
+       DocBookInInfo         always
+       DocBookWrapperTag     NONE
 End
 
 Style Gender
        CopyStyle       Name
        LatexName       ecvgender
        LabelString     "Gender:"
+       DocBookTag            date
+       DocBookAttr           role='gender'
+       DocBookInInfo         always
+       DocBookWrapperTag     NONE
 End
 
 Style BeforePicture
        CopyStyle       Name
        LatexName       ecvbeforepicture
        LabelString     "Space before picture:"
+       DocBookTag          IGNORE
+       DocBookWrapperTag   NONE
 End
 
 Style Picture
@@ -176,12 +243,18 @@ Style Picture
          LabelString   "Width"
          Tooltip       "Resize photo to this width"
        EndArgument
+       DocBookTag            date
+       DocBookAttr           role='picture'
+       DocBookInInfo         always
+       DocBookWrapperTag     NONE
 End
 
 Style AfterPicture
        CopyStyle       Name
        LatexName       ecvafterpicture
        LabelString     "Space after picture:"
+       DocBookTag          IGNORE
+       DocBookWrapperTag   NONE
 End
 
 Style Section
@@ -207,6 +280,8 @@ Style Section
          Series        Bold
        EndFont
        TocLevel        1
+       DocBookTag  title
+       DocBookTagType paragraph
 End
 
 Style Item
@@ -223,6 +298,8 @@ Style Item
          AutoInsert    0
          LabelString   "Summary"
          Tooltip       "Summary of the item, can also be the time span"
+         DocBookTag    emphasis
+         # TODO: For DocBook, this should rather be title, but it would be output in the paragraph, and not before the paragraph.
        EndArgument
        ParSkip         0.4
        Align           Block
@@ -231,8 +308,11 @@ Style Item
        LabelString     "Item:"
        LabelFont
          Series        Bold
-         Color         Blue
+         Color         textlabel1
        EndFont
+       DocBookTag      sidebar
+       DocBookTagType  block
+       DocBookItemTag  para
 End
 
 # The following Inset was defined in order to
@@ -263,7 +343,7 @@ InsetLayout Flex:ItemInset
        LabelString     "Subitems"
        LabelFont
          Series        Bold
-         Color         Black
+         Color         foreground
        EndFont
 End
 
@@ -272,6 +352,7 @@ Style TitleItem
        LatexName       ecvtitle
        TopSep          1.0
        LabelString     "Title item:"
+       DocBookAttr role='title-item'
 End
 
 Style TitleLevel
@@ -291,6 +372,7 @@ Style BlueItem
        CopyStyle       Item
        LatexName       ecvblueitem
        LabelString     "Blue item:"
+       DocBookAttr role='blue-item'
 End
 
 InsetLayout Flex:BlueItemInset
@@ -299,7 +381,7 @@ InsetLayout Flex:BlueItemInset
        LabelString     "Blue subitems"
        LabelFont
          Series        Bold
-         Color         Blue
+         Color         textlabel1
        EndFont
 End
 
@@ -307,6 +389,7 @@ Style BigItem
        CopyStyle       Item
        LatexName       ecvbigitem
        LabelString     "Big Item:"
+       DocBookAttr role='big-item'
 End
 
 Style EcvItemize
@@ -341,6 +424,9 @@ Style EcvItemize
                LabelString   "Custom Item|s"
                Tooltip       "A customized item string"
        EndArgument
+       DocBookTag            itemizedlist
+       DocBookItemTag        listitem
+       DocBookItemInnerTag   para
 End
 
 Style MotherTongue
@@ -358,8 +444,10 @@ Style MotherTongue
        EndFont
        LabelFont
          Series        Bold
-         Color         Blue
+         Color         textlabel1
        EndFont
+       DocBookTag  para
+       DocBookAttr role='mother-tongue'
 End
 
 Style LangHeader
@@ -376,7 +464,7 @@ Style LangHeader
        LabelType       Static
        LabelFont
          Series        Bold
-         Color         Green
+         Color         textlabel2
        EndFont
 End
 
@@ -389,31 +477,43 @@ Style Language
          AutoInsert    1
          LabelString   "Language"
          Tooltip       "Name of the language"
+         DocBookTag    phrase
+         DocBookAttr   role='language-name'
        EndArgument
        Argument 2
          Mandatory     1
          AutoInsert    1
          LabelString   "Listening"
          Tooltip       "Level how good you think you can listen"
+         DocBookTag    phrase
+         DocBookAttr   role='listening'
        EndArgument
        Argument 3
          Mandatory     1
          AutoInsert    1
          LabelString   "Reading"
          Tooltip       "Level how good you think you can read"
+         DocBookTag    phrase
+         DocBookAttr   role='reading'
        EndArgument
        Argument 4
          Mandatory     1
          AutoInsert    1
          LabelString   "Interaction"
          Tooltip       "Level how good you think you can conversate"
+         DocBookTag    phrase
+         DocBookAttr   role='speaking'
        EndArgument
        Argument 5
          Mandatory     1
          AutoInsert    1
          LabelString   "Production"
          Tooltip       "Level how good you think you can freely talk"
+         DocBookTag    phrase
+         DocBookAttr   role='writing'
        EndArgument
+       DocBookTag  para
+       DocBookAttr role='language'
 End
 
 Style LastLanguage
@@ -442,7 +542,7 @@ Style End
        LabelString     "End of CV"
        LabelFont
          Series        Bold
-         Color         Green
+         Color         textlabel2
        EndFont
        Preamble
                \cvclosedtrue
@@ -456,7 +556,7 @@ InsetLayout "Flex:Highlight"
        Decoration      Conglomerate
        LabelString     "Highlight"
        Font
-         Color         red
+         Color         textlabel3
          Size          Small
          Family        Roman
          Shape         Up
@@ -466,7 +566,7 @@ InsetLayout "Flex:Highlight"
          Misc          No_Bar
        EndFont
        LabelFont
-         Color         green
+         Color         textlabel2
          Size          Small
        EndFont
 End