mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-22 21:21:32 +00:00
b5af05b4a7
The category tag was rarely used and thus not very useful. This adds categorization to most modules (the rest will follow) and uses the \DeclareCategory tag we use in layouts rather than the extra syntax we used in modules. Categories are now added to the po files and translated. Note that this is work in progress: the current categories are still subject to change. The ultimate goal of this is to sort the modules in the GUI by category as we do with layouts, examples and templates (and add a filter to search for specific modules) As it is now (with the many modules we accumulated), the module selector is not really usable anymore. If you don't happen to know how exactly a module is named, selecting a module is really a PITA.
46 lines
1.2 KiB
Plaintext
46 lines
1.2 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).
|
|
#
|
|
# See example in varwidth-floats-side-by-side.lyx.
|
|
#DescriptionEnd
|
|
#
|
|
# Authors: Guillaume Munch <gm@lyx.org>
|
|
# Jürgen Spitzmüller <spitz@lyx.org>
|
|
|
|
Format 72
|
|
|
|
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)"
|
|
EndArgument
|
|
Argument 2
|
|
LabelString "Max. Width"
|
|
Tooltip "Maximum width (default: \linewidth)"
|
|
DefaultArg "\linewidth"
|
|
Mandatory 1
|
|
EndArgument
|
|
Requires varwidth
|
|
End
|
|
|