File: varwidth.module

package info (click to toggle)
lyx 2.5.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 138,444 kB
  • sloc: cpp: 244,268; ansic: 106,398; xml: 72,791; python: 39,384; sh: 7,666; makefile: 6,584; pascal: 2,143; perl: 2,101; objc: 1,084; tcl: 163; sed: 16
file content (47 lines) | stat: -rw-r--r-- 1,337 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
#\DeclareLyXModule{Variable-width Minipages}
#\DeclareCategory{Boxes}
#DescriptionBegin
# Adds a 'Minipage (Var. Width)' inset using the varwidth LaTeX package.
# The varwidth package provides a variable-width minipage, whose resulting
# width is the width of its contents (if this does not exceed the specified
# maximum width).
#
# The inset has two optional arguments: vertical adjustment (c|t|b) and
# maximum width (defaults to \linewidth).
#
# For an example, see File > Open Example > Modules > Variable-width Minipages.
#DescriptionEnd
#
# Authors: Guillaume Munch <gm@lyx.org>
# 	   Jürgen Spitzmüller <spitz@lyx.org>

Format 111

InsetLayout Flex:Minipage_(Var._Width)
  LyXType     		custom
  LabelString 		"Minipage (var.)"
  LatexType		Environment
  LatexName		varwidth
  Decoration  		Classic
  MultiPar              true
  CustomPars  		true
  ResetsFont 		true
  LabelFont
    Color               foreground
    Size                Small
  EndFont
  Argument 1
    LabelString 	"Vert. Adjustment"
    Tooltip 		"Vertical adjustment: c (center), t (top) or b (bottom)"
    DocBookTag      IGNORE
  EndArgument
  Argument 2
    LabelString 	"Max. Width"
    Tooltip 		"Maximum width (default: \linewidth)"
    DefaultArg 		"\linewidth"
    Mandatory 		1
    DocBookTag      IGNORE
  EndArgument
  Requires		varwidth
End