+ HTMLClass SubExample
+End
+
+InsetLayout Flex:Example_Preamble
+ LyXType custom
+ Decoration classic
+ LatexType command
+ LatexName expreamble
+ LabelString "Ex. Preamble"
+ ResetsFont true
+ AllowedInLayouts
+ Numbered_Example_(multiline), Numbered_Examples_(consecutive)
+ EndAllowedInLayouts
+ AllowedOccurrences 1
+ AllowedOccurrencesPerItem true
+End
+
+InsetLayout Flex:Subexample_Preamble
+ CopyStyle Flex:Example_Preamble
+ LatexName subexpreamble
+ LabelString "Subex. Preamble"
+ AllowedInLayouts
+ Subexample
+ EndAllowedInLayouts
+End
+
+
+InsetLayout Flex:Example_Postamble
+ CopyStyle Flex:Example_Preamble
+ LatexName expostamble
+ LabelString "Ex. Postamble"
+End
+
+InsetLayout Flex:Subexample_Postamble
+ CopyStyle Flex:Example_Preamble
+ LatexName subexpostamble
+ LabelString "Subex. Postamble"
+ AllowedInLayouts
+ Subexample
+ EndAllowedInLayouts