]> git.lyx.org Git - lyx.git/blob - lib/layouts/tcolorbox.module
powerdot-example.lyx: update according to latest layout change
[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 54
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   ResetsFont            true
22 End
23
24 InsetLayout Flex:Dynamic_Color_Box
25   LyXType               custom
26   Decoration            classic
27   LabelString           "Color Box (Dynamic)"
28   LatexType             command
29   LatexName             tcbox
30   Requires              tcolorbox
31   Argument 1
32     LabelString         "Color Box Options"
33     Tooltip             "Insert the color box options here (see tcolorbox manual)"
34   EndArgument
35   ResetsFont            true
36 End
37
38 InsetLayout Flex:Fit_Color_Box
39   LyXType               custom
40   Decoration            classic
41   LabelString           "Color Box (Fit Contents)"
42   LatexType             command
43   LatexName             tcboxfit
44   Requires              tcolorbox
45   Argument 1
46     LabelString         "Color Box Options"
47     Tooltip             "Insert the color box options here (see tcolorbox manual)"
48   EndArgument
49   ResetsFont            true
50 End
51
52 Style Color_Box_Separator
53   Category         "Color Boxes"
54   LatexType        command
55   LatexName        tcblower
56   ParIndent        MM
57   ParSkip          0.4
58   Align            Left
59   AlignPossible    Block, Left, Right, Center
60   Margin           First_Dynamic
61   TopSep           0
62   BottomSep        0
63   ParSep           0
64   LabelType        Static
65   LabelBottomSep   0
66   LabelString      "-----"
67   KeepEmpty        1
68   LabelFont 
69     Series         medium
70     Size           normal
71     Color          latex
72     Series         bold
73   EndFont
74   Requires         tcolorbox
75 End
76
77 Style Color_Box_Line
78   CopyStyle        Color_Box_Separator
79   LatexName        tcbline
80   LabelFont 
81     Color          blue
82   EndFont
83   Requires         tcolorbox
84 End
85
86 Style Color_Box_Setup
87   Category         "Color Boxes"
88   LatexName        tcbset
89   LatexType        command
90   PassThru         1
91   Margin           Dynamic
92   LabelSep         xx
93   ParSkip          0.0
94   ItemSep          0.2
95   TopSep           0.7
96   BottomSep        0.7
97   ParSep           0.3
98   Align            Block
99   AlignPossible    Block
100   LabelType        Static
101   LabelString      "Color Box Setup"
102   Font
103     Color          latex
104     Family         typewriter
105   EndFont
106   LabelFont
107     Color          green
108     Family         roman
109   EndFont
110   Requires         tcolorbox
111   Spellcheck       0
112 End
113