X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=lib%2Flayouts%2Finitials.module;h=622163b9246a4139a936dc48d6e45c690c9613d9;hb=006f1cbe4386999ee33b9e2ed5e55d3e36fa785c;hp=2dc35fd1286c17598a2f4198da15799be58c9c4e;hpb=a28bc8daa93e2a87e72ca517901bbcec741ba1b3;p=lyx.git diff --git a/lib/layouts/initials.module b/lib/layouts/initials.module index 2dc35fd128..622163b924 100644 --- a/lib/layouts/initials.module +++ b/lib/layouts/initials.module @@ -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 41 +Format 79 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 + 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)" + LabelString "Options" + Tooltip "Option(s) for the initial" EndArgument Argument 2 - Mandatory 1 - LabelString "Initial" - Tooltip "Initial letter" + 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