X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=lib%2Flayouts%2Frsphrase.module;h=d01b54941b9351ae9666b9e0242c477cf4ffd593;hb=9c97021623b6db5239715eb543d65a5e779084b6;hp=cf5dfe8bff895e6ec907edd8e7cd45d93279fa82;hpb=7195abcb4f404b4b00270a5f5514c5290c95a9b6;p=lyx.git diff --git a/lib/layouts/rsphrase.module b/lib/layouts/rsphrase.module index cf5dfe8bff..d01b54941b 100644 --- a/lib/layouts/rsphrase.module +++ b/lib/layouts/rsphrase.module @@ -1,4 +1,5 @@ -#\DeclareLyXModule[rsphrase.sty]{Risk and Safety Statements} +#\DeclareLyXModule[rsphrase.sty]{Chemistry: Risk and Safety Statements} +#\DeclareCategory{Academic Field Specifics} #DescriptionBegin #Provides two insets and one environment to typeset numbers and phrases of #chemical risk and safety statements. For a description see the file @@ -6,59 +7,60 @@ #DescriptionEnd #Author: Uwe Stöhr -Format 40 - -AddToPreamble - \usepackage{rsphrase} % load chemical risk and safety statements -EndPreamble +Format 80 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