]> git.lyx.org Git - lyx.git/blobdiff - lib/layouts/initials.module
multicol.module: use the layout argument mechanism
[lyx.git] / lib / layouts / initials.module
index c40453349017e30f6500af705a0638e179e83a19..a421b26d75add01ef22820d84fed2b19ba3394c1 100644 (file)
@@ -5,7 +5,11 @@
 #DescriptionEnd
 #Authors: Pavel Sanda and Uwe Stöhr
 
-Format 35
+Format 43
+
+AddToPreamble
+       \@ifundefined{lettrine}{\usepackage{lettrine}}{}
+EndPreamble
 
 InsetLayout Flex:Initial
        LyxType                 charstyle
@@ -16,9 +20,6 @@ InsetLayout Flex:Initial
          Size                  Large
        EndFont
        Requires                lettrine
-       Preamble
-         \usepackage{lettrine}
-       EndPreamble
 End
 
 Style Initial
@@ -28,8 +29,15 @@ Style Initial
        Margin                  First_Dynamic
        LabelType               static
        LabelString             Initial
-       OptionalArgs            1
-       RequiredArgs            1
+       Argument 1
+               LabelString   "Initial Option"
+               Tooltip       "Optional argument for initial (see lettrine manual)"
+       EndArgument
+       Argument 2
+               Mandatory     1
+               LabelString   "Initial"
+               Tooltip       "Initial letter"
+       EndArgument
        LabelSep                x
        ParIndent               MMM
        ParSkip                 0.4
@@ -41,8 +49,5 @@ Style Initial
        LabelFont
          Series                Bold
        EndFont
-       Preamble
-         \usepackage{lettrine}
-       EndPreamble
 End