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).
12 # Authors: Guillaume Munch <gm@lyx.org>
13 # Jürgen Spitzmüller <spitz@lyx.org>
17 InsetLayout Flex:Minipage_(Var._Width)
19 LabelString "Minipage (var.)"
31 LabelString "Vert. Adjustment"
32 Tooltip "Vertical adjustment: c (center), t (top) or b (bottom)"
35 LabelString "Max. Width"
36 Tooltip "Maximum width (default: \linewidth)"
37 DefaultArg "\linewidth"