]> git.lyx.org Git - lyx.git/blob - lib/layouts/varwidth.module
Add few hints for varwidth module.
[lyx.git] / lib / layouts / varwidth.module
1 #\DeclareLyXModule{Variable-width Minipages}
2 #DescriptionBegin
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
6 # maximum width).
7 #
8 # The inset has two optional arguments: vertical adjustment (c|t|b) and
9 # maximum width (defaults to \linewidth).
10 #
11 # See example in varwidth-floats-side-by-side.lyx.
12 #DescriptionEnd
13 #
14 # Authors: Guillaume Munch <gm@lyx.org>
15 #          Jürgen Spitzmüller <spitz@lyx.org>
16
17 Format 70
18
19 InsetLayout Flex:Minipage_(Var._Width)
20   LyXType               custom
21   LabelString           "Minipage (var.)"
22   LatexType             Environment
23   LatexName             varwidth
24   Decoration            Classic
25   MultiPar              true
26   CustomPars            true
27   ResetsFont            true
28   LabelFont
29     Color               foreground
30     Size                Small
31   EndFont
32   Argument 1
33     LabelString         "Vert. Adjustment"
34     Tooltip             "Vertical adjustment: c (center), t (top) or b (bottom)"
35   EndArgument
36   Argument 2
37     LabelString         "Max. Width"
38     Tooltip             "Maximum width (default: \linewidth)"
39     DefaultArg          "\linewidth"
40     Mandatory           1
41   EndArgument
42   Requires              varwidth
43 End
44