]> git.lyx.org Git - lyx.git/blob - lib/layouts/rsphrase.module
Merge remote-tracking branch 'origin/master' into features/latexargs
[lyx.git] / lib / layouts / rsphrase.module
1 #\DeclareLyXModule[rsphrase.sty]{Risk and Safety Statements}
2 #DescriptionBegin
3 #Provides two insets and one environment to typeset numbers and phrases of 
4 #chemical risk and safety statements. For a description see the file 
5 #R-S-statements.lyx in LyX's examples folder.
6 #DescriptionEnd
7 #Author: Uwe Stöhr <uwestoehr@web.de>
8
9 Format 40
10
11 AddToPreamble
12         \usepackage{rsphrase}   % load chemical risk and safety statements
13 EndPreamble
14
15 InsetLayout "Flex:R-S number"
16         LyxType                 custom
17         LatexType               command
18         LatexName               rsnumber
19         LabelString             "R-S number"
20         Font
21           Color                 foreground
22           Size                  Small
23           Family                Roman
24           Shape                 Up
25           Series                Medium
26           Misc                  No_Emph
27           Misc                  No_Noun
28           Misc                  No_Bar
29         EndFont
30         LabelFont
31           Color                 green
32           Size                  Small
33         EndFont
34 End
35
36 InsetLayout "Flex:R-S phrase"
37         CopyStyle               "Flex:R-S number"
38         LatexName               rsphrase
39         LabelString             "R-S phrase"
40 End
41
42 Style "Safety phrase"
43         LatexType               command
44         LatexName               rsphrase
45         Category                MainText
46         NextNoIndent            1
47         Argument 1
48                 LabelString   "Safety Phrase Option"
49                 Shortcut      S
50                 Tooltip       "Optional argument to the rsphrase command"
51         EndArgument
52         KeepEmpty               1
53         Margin                  Dynamic
54         LabelSep                xx
55         ParSkip                 0.0
56         ItemSep                 0.2
57         TopSep                  0.7
58         BottomSep               0.7
59         ParSep                  0.3
60         Align                   Block
61         AlignPossible           Block
62         LabelType               Static
63         LabelString             "S phrase:"
64         LabelFont
65                 Color           Green
66         EndFont
67 End
68