]> git.lyx.org Git - lyx.git/blob - lib/layouts/tcolorbox.module
Add support for the sectionbox and tcolorbox packages.
[lyx.git] / lib / layouts / tcolorbox.module
1 #\DeclareLyXModule[tcolorbox.sty]{Fancy Colored Boxes}
2 #DescriptionBegin
3 #Adds custom insets that support colored boxes via the tcolorbox package.
4 #See the tcolorbox documentation for details.
5 #DescriptionEnd
6 #Authors: Jürgen Spitzmüller
7
8 Format 48
9
10 InsetLayout Flex:Color_Box
11   LyXType               custom
12   Decoration            classic
13   LabelString           "Color Box"
14   LatexType             environment
15   LatexName             tcolorbox
16   Requires              tcolorbox
17   Argument 1
18     LabelString         "Color Box Options"
19     Tooltip             "Insert the color box options here (see tcolorbox manual)"
20   EndArgument
21 End
22
23 InsetLayout Flex:Dynamic_Color_Box
24   LyXType               custom
25   Decoration            classic
26   LabelString           "Color Box (Dynamic)"
27   LatexType             command
28   LatexName             tcbox
29   Requires              tcolorbox
30   Argument 1
31     LabelString         "Color Box Options"
32     Tooltip             "Insert the color box options here (see tcolorbox manual)"
33   EndArgument
34 End
35
36 InsetLayout Flex:Fit_Color_Box
37   LyXType               custom
38   Decoration            classic
39   LabelString           "Color Box (Fit Contents)"
40   LatexType             command
41   LatexName             tcboxfit
42   Requires              tcolorbox
43   Argument 1
44     LabelString         "Color Box Options"
45     Tooltip             "Insert the color box options here (see tcolorbox manual)"
46   EndArgument
47 End
48
49 Style Color_Box_Separator
50   Category         "Color Boxes"
51   LatexType        command
52   LatexName        tcblower
53   ParIndent        MM
54   ParSkip          0.4
55   Align            Left
56   AlignPossible    Block, Left, Right, Center
57   Margin           First_Dynamic
58   TopSep           0
59   BottomSep        0
60   ParSep           0
61   LabelType        Static
62   LabelBottomSep   0
63   LabelString      "-----"
64   KeepEmpty        1
65   LabelFont 
66     Series         medium
67     Size           normal
68     Color          latex
69     Series         bold
70   EndFont
71   Requires         tcolorbox
72 End
73
74 Style Color_Box_Line
75   CopyStyle        Color_Box_Separator
76   LatexName        tcbline
77   LabelFont 
78     Color          blue
79   EndFont
80   Requires         tcolorbox
81 End
82
83 Style Color_Box_Setup
84   Category         "Color Boxes"
85   LatexName        tcbset
86   LatexType        command
87   PassThru         1
88   Margin           Dynamic
89   LabelSep         xx
90   ParSkip          0.0
91   ItemSep          0.2
92   TopSep           0.7
93   BottomSep        0.7
94   ParSep           0.3
95   Align            Block
96   AlignPossible    Block
97   LabelType        Static
98   LabelString      "Color Box Setup"
99   Font
100     Color          latex
101     Family         typewriter
102   EndFont
103   LabelFont
104     Color          green
105     Family         roman
106   EndFont
107   Requires         tcolorbox
108   Spellcheck       0
109 End
110