X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=lib%2Flayouts%2Finitials.module;h=a421b26d75add01ef22820d84fed2b19ba3394c1;hb=a3036539b27ddde4af7bb706dbad061e13ae046e;hp=22a6678ec4d77fcebea487bcc9ce155100292a5c;hpb=f679b658d858c2daf14420b36d1761f23cd8d176;p=lyx.git diff --git a/lib/layouts/initials.module b/lib/layouts/initials.module index 22a6678ec4..a421b26d75 100644 --- a/lib/layouts/initials.module +++ b/lib/layouts/initials.module @@ -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