]> git.lyx.org Git - lyx.git/blobdiff - lib/layouts/initials.module
New Theorems Module. Contributed by Udicoudco <udifoglle@gmail.com> on the mailing...
[lyx.git] / lib / layouts / initials.module
index 93d98154ad0fa7d955504060b0899633106f2df8..d44a3e9769ba2774f9d87cbe923aac627c4c4cf3 100644 (file)
@@ -1,53 +1,60 @@
-#\DeclareLyXModule{Initials}
+#\DeclareLyXModule{Initials (Drop Caps)}
+#\DeclareCategory{Paragraph Styles}
 #DescriptionBegin
-#Define a style for paragraphs with an initial.
+#Defines a style for paragraphs with an enlarged initial letter (drop cap).
 #See the EmbeddedObjects manual for a detailed description.
 #DescriptionEnd
 #Authors: Pavel Sanda and Uwe Stöhr
 
-Format 40
+Format 99
 
 AddToPreamble
        \@ifundefined{lettrine}{\usepackage{lettrine}}{}
 EndPreamble
 
 InsetLayout Flex:Initial
-       LyxType                 charstyle
-       LabelString             "Initial"
-       LatexType               command
-       LatexName               lettrine
+       LyxType         charstyle
+       LabelString     "Initial"
+       LatexType       command
+       LatexName       lettrine
        Font
-         Size                  Large
+         Size          Large
        EndFont
-       Requires                lettrine
+       Requires        lettrine
+       ResetsFont true
 End
 
 Style Initial
-       Category                MainText
-       LatexType               command
-       LatexName               lettrine
-       Margin                  First_Dynamic
-       LabelType               static
-       LabelString             Initial
-       Argument option
-               LabelString   "Initial Option"
-               Tooltip       "Optional argument for initial (see lettrine manual)"
+       Category        MainText
+       LatexType       command
+       LatexName       lettrine
+       Margin          First_Dynamic
+       LabelType       static
+       LabelString     Initial
+       Argument 1
+         LabelString   "Options"
+         Tooltip       "Option(s) for the initial"
        EndArgument
-       Argument inital
-               Mandatory     1
-               LabelString   "Initial"
-               Tooltip       "Initial letter"
+       Argument 2
+         Mandatory     1
+         LabelString   "Initial"
+         Tooltip       "Initial letter(s)"
        EndArgument
-       LabelSep                x
-       ParIndent               MMM
-       ParSkip                 0.4
-       TopSep                  0.7
-       BottomSep               0.7
-       ParSep                  0.3
-       Align                   Left
-       AlignPossible           Left
+       Argument 3
+         Mandatory     1
+         LabelString   "Rest of Initial"
+         Tooltip       "Rest of initial word or text"
+       EndArgument
+       LabelSep        x
+       ParIndent       MMM
+       ParSkip         0.4
+       TopSep          0.7
+       BottomSep       0.7
+       ParSep          0.3
+       Align           Left
+       AlignPossible   Left
        LabelFont
-         Series                Bold
+         Series        Bold
        EndFont
 End