mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-15 07:16:48 +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
)
29 lines
844 B
Plaintext
29 lines
844 B
Plaintext
#\DeclareLyXModule{Title and Preamble Hacks}
|
|
#DescriptionBegin
|
|
#Provides two new styles:
|
|
#1. An 'In Preamble' style that puts whatever is entered into it into the preamble.
|
|
# This can be used, if one wishes, to include preamble code in the body of the
|
|
# LyX document.
|
|
#2. An 'In Title' style that will put its contents into the body of the LaTeX
|
|
# document, but before \maketitle is issued. This is useful for making branches
|
|
# and notes in title-related material. (If you put these in a Standard layout,
|
|
# this signals to LyX to output \maketitle, which may then come too early.)
|
|
#DescriptionEnd
|
|
#Author: Richard Heck <rgheck@lyx.org>
|
|
|
|
Format 64
|
|
|
|
Style "In Preamble"
|
|
CopyStyle Standard
|
|
Category FrontMatter
|
|
InPreamble 1
|
|
ForceLocal -1
|
|
End
|
|
|
|
Style "In Title"
|
|
CopyStyle Standard
|
|
Category FrontMatter
|
|
InTitle 1
|
|
ForceLocal -1
|
|
End
|