1 #\DeclareLyXModule[tcolorbox.sty,environ.sty,etoolbox.sty,pgf.sty]{Fancy Colored Boxes}
3 #Adds custom insets that support colored boxes via the tcolorbox package.
4 #See the tcolorbox documentation for details.
6 #Authors: Jürgen Spitzmüller
7 # Uwe Stöhr <uwestoehr@lyx.org>
11 InsetLayout Flex:Color_Box
14 LabelString "Color Box"
19 LabelString "Color Box Options"
20 Tooltip "Insert the color box options here (see tcolorbox manual)"
26 InsetLayout Flex:Dynamic_Color_Box
27 CopyStyle Flex:Color_Box
29 LabelString "Color Box (Dynamic)"
33 InsetLayout Flex:Fit_Color_Box
34 CopyStyle Flex:Dynamic_Color_Box
35 LabelString "Color Box (Fit Contents)"
39 InsetLayout Flex:Raster_Color_Box
40 CopyStyle Flex:Color_Box
41 LabelString "Raster Color Box"
45 InsetLayout Flex:Subtitle
46 CopyStyle Flex:Dynamic_Color_Box
48 LabelString "Subtitle"
50 LabelString "Subtitle Options"
51 ToolTip "Insert the options here"
56 Style Color_Box_Separator
57 Category "Color Boxes"
63 AlignPossible Block, Left, Right, Center
82 CopyStyle Color_Box_Separator
91 Category "Color Boxes"
105 LabelString "Color Box Setup"
118 Style New_Color_Box_Type
119 CopyStyle Color_Box_Setup
120 LatexName newtcolorbox
121 LabelString "New Color Box Type"
129 LabelString "New Box Options"
130 Tooltip "Options for the new box type (optional)"
131 PassThruChars "\[]{}"
135 Tooltip "Name of the new box type"
140 LabelString "Arguments"
141 Tooltip "Number of arguments (remove this inset if none!)"
146 LabelString "Default Value"
147 Tooltip "Default value for argument (keep empty!)"
152 # define 5 different box environments that can be customized by the user
154 InsetLayout Flex:Custom_Color_Box_1
155 CopyStyle Flex:Color_Box
156 LabelString "Custom Color Box 1"
159 LabelString "More Color Box Options"
160 Tooltip "Insert more color box options here"
165 InsetLayout Flex:Custom_Color_Box_2
166 CopyStyle Flex:Custom_Color_Box_1
167 LabelString "Custom Color Box 2"
171 InsetLayout Flex:Custom_Color_Box_3
172 CopyStyle Flex:Custom_Color_Box_1
173 LabelString "Custom Color Box 3"
177 InsetLayout Flex:Custom_Color_Box_4
178 CopyStyle Flex:Custom_Color_Box_1
179 LabelString "Custom Color Box 4"
183 InsetLayout Flex:Custom_Color_Box_5
184 CopyStyle Flex:Custom_Color_Box_1
185 LabelString "Custom Color Box 5"