]> git.lyx.org Git - lyx.git/blob - lib/layouts/varwidth.module
a486c1bb4ffa867692a83eb973a9e61b1361172b
[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 #DescriptionEnd
11 #
12 # Authors: Guillaume Munch <gm@lyx.org>
13 #          Jürgen Spitzmüller <spitz@lyx.org>
14
15 Format 68
16
17 InsetLayout Flex:Minipage_(Var._Width)
18   LyXType               custom
19   LabelString           "Minipage (var.)"
20   LatexType             Environment
21   LatexName             varwidth
22   Decoration            Classic
23   MultiPar              true
24   CustomPars            true
25   ResetsFont            true
26   LabelFont
27     Color               foreground
28     Size                Small
29   EndFont
30   Argument 1
31     LabelString         "Vert. Adjustment"
32     Tooltip             "Vertical adjustment: c (center), t (top) or b (bottom)"
33   EndArgument
34   Argument 2
35     LabelString         "Max. Width"
36     Tooltip             "Maximum width (default: \linewidth)"
37     DefaultArg          "\linewidth"
38     Mandatory           1
39   EndArgument
40   Requires              varwidth
41 End
42