]> 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 22a6678ec4d77fcebea487bcc9ce155100292a5c..a421b26d75add01ef22820d84fed2b19ba3394c1 100644 (file)
@@ -1,12 +1,15 @@
 #\DeclareLyXModule{Initials}
 #DescriptionBegin
-#Define character style for initials.
-#Hint: try to use math and its artistic font styles like Fractur or the Calligraphic one.
+#Define a style for paragraphs with an initial.
+#See the EmbeddedObjects manual for a detailed description.
 #DescriptionEnd
-#Category: charstyles
-# Author: Pavel Sanda and Uwe Stöhr
+#Authors: Pavel Sanda and Uwe Stöhr
 
-Format 35
+Format 43
+
+AddToPreamble
+       \@ifundefined{lettrine}{\usepackage{lettrine}}{}
+EndPreamble
 
 InsetLayout Flex:Initial
        LyxType                 charstyle
@@ -17,9 +20,6 @@ InsetLayout Flex:Initial
          Size                  Large
        EndFont
        Requires                lettrine
-       Preamble
-               \usepackage{lettrine}
-       EndPreamble
 End
 
 Style Initial
@@ -29,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
@@ -42,8 +49,5 @@ Style Initial
        LabelFont
          Series                Bold
        EndFont
-       Preamble
-         \usepackage{lettrine}
-       EndPreamble
 End