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