]> 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 79c9f7b14005375ccacde0fd531b4fdba24a7d25..a421b26d75add01ef22820d84fed2b19ba3394c1 100644 (file)
@@ -1,11 +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
+#Authors: Pavel Sanda and Uwe Stöhr
 
-Format 29
+Format 43
+
+AddToPreamble
+       \@ifundefined{lettrine}{\usepackage{lettrine}}{}
+EndPreamble
 
 InsetLayout Flex:Initial
        LyxType                 charstyle
@@ -16,8 +20,34 @@ InsetLayout Flex:Initial
          Size                  Large
        EndFont
        Requires                lettrine
-       Preamble
-               \usepackage{lettrine}
-       EndPreamble
+End
+
+Style Initial
+       Category                MainText
+       LatexType               command
+       LatexName               lettrine
+       Margin                  First_Dynamic
+       LabelType               static
+       LabelString             Initial
+       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
+       TopSep                  0.7
+       BottomSep               0.7
+       ParSep                  0.3
+       Align                   Left
+       AlignPossible           Left
+       LabelFont
+         Series                Bold
+       EndFont
 End