lyx_mirror/lib/layouts/varwidth.module
Scott Kostyshak adefdf8eeb Revert "Update layouts"
This reverts commit 7c041af642.

We will hold this back until we fix the issue discussed here:

  https://marc.info/?l=lyx-devel&m=171733833610242&w=2
2024-06-03 10:37:02 -04:00

48 lines
1.3 KiB
Plaintext

#\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 104
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