1 #\DeclareLyXModule{Variable-width Minipages}
2 #\DeclareCategory{Boxes}
4 # Adds a 'Minipage (Var. Width)' inset using the varwidth LaTeX package.
5 # The varwidth package provides a variable-width minipage, whose resulting
6 # width is the width of its contents (if this does not exceed the specified
9 # The inset has two optional arguments: vertical adjustment (c|t|b) and
10 # maximum width (defaults to \linewidth).
12 # See example in varwidth-floats-side-by-side.lyx.
15 # Authors: Guillaume Munch <gm@lyx.org>
16 # Jürgen Spitzmüller <spitz@lyx.org>
20 InsetLayout Flex:Minipage_(Var._Width)
22 LabelString "Minipage (var.)"
34 LabelString "Vert. Adjustment"
35 Tooltip "Vertical adjustment: c (center), t (top) or b (bottom)"
39 LabelString "Max. Width"
40 Tooltip "Maximum width (default: \linewidth)"
41 DefaultArg "\linewidth"