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 InsetLayout Flex:Dynamic_Color_Box
28 CopyStyle Flex:Color_Box
30 LabelString "Color Box (Dynamic)"
34 InsetLayout Flex:Fit_Color_Box
35 CopyStyle Flex:Dynamic_Color_Box
36 LabelString "Color Box (Fit Contents)"
40 InsetLayout Flex:Raster_Color_Box
41 CopyStyle Flex:Color_Box
42 LabelString "Raster Color Box"
46 InsetLayout Flex:Subtitle
47 CopyStyle Flex:Dynamic_Color_Box
49 LabelString "Subtitle"
51 LabelString "Subtitle Options"
52 ToolTip "Insert the options here"
57 Style Color_Box_Separator
58 Category "Color Boxes"
64 AlignPossible Block, Left, Right, Center
83 CopyStyle Color_Box_Separator
92 Category "Color Boxes"
106 LabelString "Color Box Setup"
119 Style New_Color_Box_Type
120 CopyStyle Color_Box_Setup
121 LatexName newtcolorbox
122 LabelString "New Color Box Type"
130 LabelString "New Box Options"
131 Tooltip "Options for the new box type (optional)"
132 PassThruChars "\[]{}"
136 Tooltip "Name of the new box type"
141 LabelString "Arguments"
142 Tooltip "Number of arguments (remove this inset if none!)"
147 LabelString "Default Value"
148 Tooltip "Default value for argument (keep empty!)"
153 # define 5 different box environments that can be customized by the user
155 InsetLayout Flex:Custom_Color_Box_1
156 CopyStyle Flex:Color_Box
157 LabelString "Custom Color Box 1"
160 LabelString "More Color Box Options"
161 Tooltip "Insert more color box options here"
166 InsetLayout Flex:Custom_Color_Box_2
167 CopyStyle Flex:Custom_Color_Box_1
168 LabelString "Custom Color Box 2"
172 InsetLayout Flex:Custom_Color_Box_3
173 CopyStyle Flex:Custom_Color_Box_1
174 LabelString "Custom Color Box 3"
178 InsetLayout Flex:Custom_Color_Box_4
179 CopyStyle Flex:Custom_Color_Box_1
180 LabelString "Custom Color Box 4"
184 InsetLayout Flex:Custom_Color_Box_5
185 CopyStyle Flex:Custom_Color_Box_1
186 LabelString "Custom Color Box 5"