X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=lib%2Flayouts%2Finitials.module;h=a421b26d75add01ef22820d84fed2b19ba3394c1;hb=a3036539b27ddde4af7bb706dbad061e13ae046e;hp=ca622bebb806cc0149c1b21a175872dc923c8a65;hpb=3b716ae11e5f55cf0544521ebd345a341707744e;p=lyx.git diff --git a/lib/layouts/initials.module b/lib/layouts/initials.module index ca622bebb8..a421b26d75 100644 --- a/lib/layouts/initials.module +++ b/lib/layouts/initials.module @@ -1,13 +1,17 @@ #\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 28 +Format 43 -InsetLayout CharStyle:Initial +AddToPreamble + \@ifundefined{lettrine}{\usepackage{lettrine}}{} +EndPreamble + +InsetLayout Flex:Initial LyxType charstyle LabelString "Initial" LatexType command @@ -16,8 +20,34 @@ InsetLayout CharStyle: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