lyx_mirror/lib/layouts/initials.module
Juergen Spitzmueller bbf287a3c6 Allow for cite engine and format definitions/modifications in layouts
Now layout files and modules can extend the cite engines or completely
overwrite them, and modify the cite formats.

Any CiteEngine definition in a layout/module will completely overwrite
those by cite engine files.

AddToCiteEngine will extend them (add if they do not exist yet).

Any CiteFormat definition in a layout will be preferred to those in cite
engines. CiteFormat definitions that are not touched by the former are
still active, though (so, as opposed to CiteEngine, a CiteFormat does
not completely overwrite those by the engine files).

Layout format change.
2018-05-21 12:46:53 +02:00

60 lines
1.0 KiB
Plaintext

#\DeclareLyXModule{Initials}
#DescriptionBegin
#Define a style for paragraphs with an initial.
#See the EmbeddedObjects manual for a detailed description.
#DescriptionEnd
#Authors: Pavel Sanda and Uwe Stöhr
Format 68
AddToPreamble
\@ifundefined{lettrine}{\usepackage{lettrine}}{}
EndPreamble
InsetLayout Flex:Initial
LyxType charstyle
LabelString "Initial"
LatexType command
LatexName lettrine
Font
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
End