mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-15 15:45:43 +00:00
b92ceba9a1
Remove the trimming operation on LabelString, LabelStringAppendix,
EndLabelString and LabelCounter. This trimming meant that quotes
strings were not preserved, which is wrong.
To preserve layouts, the Layout format has been updated to 64, so that
layout2layout can remove extra spaces on existing strings, which
ensures that behavior is unchanged for old layouts (courtesy of rgheck).
It is now possible to re-add spaces in label strings where it makes
sense.
Fixes bug #10723.
(cherry picked from commit 5c54557350
)
60 lines
1.0 KiB
Plaintext
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 64
|
|
|
|
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
|
|
|