1 #\DeclareLyXModule[tcolorbox.sty,environ.sty,etoolbox.sty,pgf.sty]{Fancy Colored Boxes}
2 #\DeclareCategory{Boxes}
4 #Adds custom insets that support colored boxes via the tcolorbox package.
5 #See the tcolorbox documentation for details.
7 #Authors: Jürgen Spitzmüller
8 # Uwe Stöhr <uwestoehr@lyx.org>
12 InsetLayout Flex:Color_Box
15 LabelString "Color Box"
20 LabelString "Color Box Options"
21 Tooltip "Insert the color box options here (see tcolorbox manual)"
27 DocBookAttr role='color-box'
30 InsetLayout Flex:Dynamic_Color_Box
31 CopyStyle Flex:Color_Box
33 LabelString "Color Box (Dynamic)"
36 DocBookAttr role='dynamic-color-box'
39 InsetLayout Flex:Fit_Color_Box
40 CopyStyle Flex:Dynamic_Color_Box
41 LabelString "Color Box (Fit Contents)"
44 DocBookAttr role='fit-color-box'
47 InsetLayout Flex:Raster_Color_Box
48 CopyStyle Flex:Color_Box
49 LabelString "Raster Color Box"
52 DocBookAttr role='raster-color-box'
55 InsetLayout Flex:Subtitle
56 CopyStyle Flex:Dynamic_Color_Box
58 LabelString "Subtitle"
60 LabelString "Subtitle Options"
61 ToolTip "Insert the options here"
66 Style Color_Box_Separator
67 Category "Color Boxes"
73 AlignPossible Block, Left, Right, Center
92 CopyStyle Color_Box_Separator
100 Style Color_Box_Setup
101 Category "Color Boxes"
115 LabelString "Color Box Setup"
128 Style New_Color_Box_Type
129 CopyStyle Color_Box_Setup
130 LatexName newtcolorbox
131 LabelString "New Color Box Type"
139 LabelString "New Box Options"
140 Tooltip "Options for the new box type (optional)"
141 PassThruChars "\[]{}"
145 Tooltip "Name of the new box type"
150 LabelString "Arguments"
151 Tooltip "Number of arguments (remove this inset if none!)"
156 LabelString "Default Value"
157 Tooltip "Default value for argument (keep empty!)"
163 # define 5 different box environments that can be customized by the user
165 InsetLayout Flex:Custom_Color_Box_1
166 CopyStyle Flex:Color_Box
167 LabelString "Custom Color Box 1"
170 LabelString "More Color Box Options"
171 Tooltip "Insert more color box options here"
175 DocBookAttr role='color-box-1'
178 InsetLayout Flex:Custom_Color_Box_2
179 CopyStyle Flex:Custom_Color_Box_1
180 LabelString "Custom Color Box 2"
183 DocBookAttr role='color-box-2'
186 InsetLayout Flex:Custom_Color_Box_3
187 CopyStyle Flex:Custom_Color_Box_1
188 LabelString "Custom Color Box 3"
191 DocBookAttr role='color-box-3'
194 InsetLayout Flex:Custom_Color_Box_4
195 CopyStyle Flex:Custom_Color_Box_1
196 LabelString "Custom Color Box 4"
199 DocBookAttr role='color-box-4'
202 InsetLayout Flex:Custom_Color_Box_5
203 CopyStyle Flex:Custom_Color_Box_1
204 LabelString "Custom Color Box 5"
207 DocBookAttr role='color-box-5'