]> git.lyx.org Git - lyx.git/blobdiff - lib/layouts/moderncv.layout
Fix #7495 by adding layouts for ctex document classes and
[lyx.git] / lib / layouts / moderncv.layout
index 79ec97d3f0b50a7744061b924230dce1fc871ae2..887fd5d3e29f9cd37dc2759a289f8e7b5633b775 100644 (file)
@@ -1,16 +1,19 @@
 #% Do not delete the line below; configure depends on this
-#  \DeclareLaTeXClass{curriculum vitae (modern)}
+#  \DeclareLaTeXClass[moderncv,color.sty,fancyhdr.sty,hyperref.sty,ifpdf.sty,marvosym.sty]{curriculum vitae (modern)}
 # modern CV textclass definition file.
 # Author : Uwe Stöhr (uwestoehr@web.de)
 
 
 # General textclass parameters
-Format 4
+Format 35
        Columns                 1
        Sides                   1
        SecNumDepth             -1
        TocDepth                -1
 
+Provides hyperref  1
+Provides url       1
+
 
 # Standard style definition
 Style Standard
@@ -25,6 +28,7 @@ Style Standard
 End
 
 Input stdcounters.inc
+Input stdinsets.inc
 
 Style Section
        Margin                  Dynamic
@@ -37,13 +41,26 @@ Style Section
        BottomSep               0.7
        ParSep                  0.7
        Align                   Block
-       AlignPossible           Block, Left
        LabelSep                xxx
        LabelType               No_Label
        Font
          Family                Sans
          Series                Bold
        EndFont
+               TocLevel 1
+End
+
+Style Subsection
+       CopyStyle               Section
+       LatexName               subsection
+       TopSep                  0.9
+       BottomSep               0
+       ParSep                  0.5
+       Font
+         Family                Sans
+         Series                Medium
+       EndFont
+       TocLevel 2
 End
 
 Style Entry
@@ -55,7 +72,7 @@ Style Entry
        Align                   Block
        LabelSep                xx
        LabelType               Static
-       LabelString             Entry:
+       LabelString             "Entry:"
        LabelFont
          Series                Bold
          Color                 Blue
@@ -71,7 +88,7 @@ Style Item
        Align                   Block
        LabelSep                xx
        LabelType               Static
-       LabelString             Item:
+       LabelString             "Item:"
        LabelFont
          Series                Bold
          Color                 Blue
@@ -79,83 +96,33 @@ Style Item
 End
 
 Style ListItem
-       Margin                  Dynamic
-       LatexType               Command
+       CopyStyle               Item
        LatexName               cvlistitem
-       OptionalArgs            1
-       ParSkip                 0.4
-       Align                   Block
-       LabelSep                xx
-       LabelType               Static
        LabelString             "List Item:"
-       LabelFont
-         Series                Bold
-         Color                 Blue
-       EndFont
 End
 
 Style DoubleItem
-       Margin                  Dynamic
-       LatexType               Command
+       CopyStyle               Item
        LatexName               cvlistdoubleitem
-       OptionalArgs            1
-       ParSkip                 0.4
-       Align                   Block
-       LabelSep                xx
-       LabelType               Static
        LabelString             "Double Item:"
-       LabelFont
-         Series                Bold
-         Color                 Blue
-       EndFont
 End
 
 Style Space
-       Margin                  Dynamic
-       LatexType               Command
+       CopyStyle               Item
        LatexName               vspace*
-       OptionalArgs            1
-       ParSkip                 0.4
-       Align                   Block
-       LabelSep                xx
-       LabelType               Static
-       LabelString             Space:
-       LabelFont
-         Series                Bold
-         Color                 Blue
-       EndFont
+       LabelString             "Space:"
 End
 
 Style Language
-       Margin                  Dynamic
-       LatexType               Command
+       CopyStyle               Item
        LatexName               cvlanguage
-       OptionalArgs            1
-       ParSkip                 0.4
-       Align                   Block
-       LabelSep                xx
-       LabelType               Static
-       LabelString             Language:
-       LabelFont
-         Series                Bold
-         Color                 Blue
-       EndFont
+       LabelString             "Language:"
 End
 
 Style Computer
-       Margin                  Dynamic
-       LatexType               Command
+       CopyStyle               Item
        LatexName               cvcomputer
-       OptionalArgs            1
-       ParSkip                 0.4
-       Align                   Block
-       LabelSep                xx
-       LabelType               Static
-       LabelString             Computer:
-       LabelFont
-         Series                Bold
-         Color                 Blue
-       EndFont
+       LabelString             "Computer:"
 End
 
 Style EmptySection
@@ -175,19 +142,9 @@ Style EmptySection
 End
 
 Style CloseSection
-       Margin                  Dynamic
-       LatexType               Command
+       CopyStyle               EmptySection
        LatexName               closesection{}
-       KeepEmpty               1
-       ParSkip                 0.4
-       Align                   Block
-       LabelSep                xx
-       LabelType               Static
        LabelString             "Close Section"
-       LabelFont
-         Series                Bold
-         Color                 Green
-       EndFont
 End
 
 Style Bibliography