X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=lib%2Flayouts%2Finitials.module;h=cab57c205b96f2c80b26fd5a00f76cc48dc027b7;hb=bf88ad495cead6e97a05fee59e41414648145fc1;hp=3d519b7d80bc3a002e6741c4d59dbee00d5df1c4;hpb=2d2d946fc67fe55bfd858d5cf437793302bf6a12;p=lyx.git diff --git a/lib/layouts/initials.module b/lib/layouts/initials.module index 3d519b7d80..cab57c205b 100644 --- a/lib/layouts/initials.module +++ b/lib/layouts/initials.module @@ -1,23 +1,60 @@ -#\DeclareLyXModule{Initials} +#\DeclareLyXModule{Initials (Drop Caps)} +#\DeclareCategory{Paragraph Styles} #DescriptionBegin -#Define character style for initials. -#Hint: try to use math and its artistic font styles like Fractur or the Calligraphic one. +#Defines a style for paragraphs with an enlarged initial letter (drop cap). +#See the EmbeddedObjects manual for a detailed description. #DescriptionEnd -#Category: charstyles +#Authors: Pavel Sanda and Uwe Stöhr -Format 35 +Format 74 + +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 + ResetsFont true +End + +Style Initial + 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 2 + Mandatory 1 + LabelString "Initial" + Tooltip "Initial letter(s)" + EndArgument + 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 EndFont - Requires lettrine - Preamble - \usepackage{lettrine} - EndPreamble End