mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-23 02:14:50 +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
)
44 lines
948 B
Plaintext
44 lines
948 B
Plaintext
#\DeclareLyXModule[hpstatement.sty]{Hazard and Precautionary Statements}
|
|
#DescriptionBegin
|
|
#Provides two insets to typeset numbers and phrases of chemical hazard
|
|
#and precautionary statements. For a description see the file
|
|
#H-P-statements.lyx in LyX's examples folder.
|
|
#DescriptionEnd
|
|
#Author: Uwe Stöhr <uwestoehr@web.de>
|
|
|
|
Format 64
|
|
|
|
InsetLayout "Flex:H-P number"
|
|
LyxType custom
|
|
LatexType command
|
|
LatexName hpnumber
|
|
Requires hpstatement
|
|
LabelString "H-P number"
|
|
PassThru 1
|
|
|
|
Font
|
|
Color foreground
|
|
Size Small
|
|
Family Roman
|
|
Shape Up
|
|
Series Medium
|
|
Misc No_Emph
|
|
Misc No_Noun
|
|
Misc No_Bar
|
|
EndFont
|
|
LabelFont
|
|
Color green
|
|
Size Small
|
|
EndFont
|
|
End
|
|
|
|
InsetLayout "Flex:H-P statement"
|
|
CopyStyle "Flex:H-P number"
|
|
LatexName hpstatement
|
|
LabelString "H-P statement"
|
|
Argument 1
|
|
LabelString "Statement Text"
|
|
Tooltip "Text for statements that require some information"
|
|
EndArgument
|
|
End
|