X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=lib%2Flayouts%2Frsphrase.module;h=b4d23647f208fbe7b8e050c5fb02f4f5ffd7e3d1;hb=b4dcad83b2f6e3fce28b4e04cc1abc8d654f9bfe;hp=e4f7f1d00ff52708e1a80c88bf16ba33cbfa8354;hpb=7ba7ce4006843cd704f563f441996362c4029457;p=lyx.git diff --git a/lib/layouts/rsphrase.module b/lib/layouts/rsphrase.module index e4f7f1d00f..b4d23647f2 100644 --- a/lib/layouts/rsphrase.module +++ b/lib/layouts/rsphrase.module @@ -6,59 +6,60 @@ #DescriptionEnd #Author: Uwe Stöhr -Format 35 - -AddToPreamble - \usepackage{rsphrase} % load chemical risk and safety statements -EndPreamble +Format 60 InsetLayout "Flex:R-S number" - LyxType custom - LatexType command - LatexName rsnumber - LabelString "R-S number" + LyxType custom + LatexType command + LatexName rsnumber + Requires rsphrase + LabelString "R-S number" Font - Color foreground - Size Small - Family Roman - Shape Up - Series Medium - Misc No_Emph - Misc No_Noun - Misc No_Bar + 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 + Color green + Size Small EndFont End InsetLayout "Flex:R-S phrase" - CopyStyle "Flex:R-S number" - LatexName rsphrase - LabelString "R-S phrase" + CopyStyle "Flex:R-S number" + LatexName rsphrase + LabelString "R-S phrase" End Style "Safety phrase" - LatexType command - LatexName rsphrase - Category MainText - NextNoIndent 1 - OptionalArgs 1 - KeepEmpty 1 - Margin Dynamic - LabelSep xx - ParSkip 0.0 - ItemSep 0.2 - TopSep 0.7 - BottomSep 0.7 - ParSep 0.3 - Align Block - AlignPossible Block - LabelType Static - LabelString "S phrase:" + LatexType command + LatexName rsphrase + Requires rsphrase + Category MainText + NextNoIndent 1 + Argument 1 + LabelString "Phrase Text" + Tooltip "Argument for statements that requires to specify additional information" + EndArgument + KeepEmpty 1 + Margin Dynamic + LabelSep xx + ParSkip 0.0 + ItemSep 0.2 + TopSep 0.7 + BottomSep 0.7 + ParSep 0.3 + Align Block + AlignPossible Block + LabelType Static + LabelString "S phrase:" LabelFont - Color Green + Color Green EndFont End