mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-25 02:49:46 +00:00
parent
978016eb8f
commit
a9b8cdca9e
@ -2185,7 +2185,8 @@ dist_layouts_DATA =\
|
|||||||
layouts/todonotes.module \
|
layouts/todonotes.module \
|
||||||
layouts/treport.layout \
|
layouts/treport.layout \
|
||||||
layouts/tufte-book.layout \
|
layouts/tufte-book.layout \
|
||||||
layouts/tufte-handout.layout
|
layouts/tufte-handout.layout \
|
||||||
|
layouts/varwidth.module
|
||||||
|
|
||||||
scriptsdir = $(pkgdatadir)/scripts
|
scriptsdir = $(pkgdatadir)/scripts
|
||||||
dist_scripts_DATA = \
|
dist_scripts_DATA = \
|
||||||
|
@ -376,6 +376,7 @@
|
|||||||
\TestPackage{units}
|
\TestPackage{units}
|
||||||
\TestPackage{url}
|
\TestPackage{url}
|
||||||
\TestPackage{varioref}
|
\TestPackage{varioref}
|
||||||
|
\TestPackage{varwidth}
|
||||||
\TestPackage[vietnamese.ldf]{vietnamese}
|
\TestPackage[vietnamese.ldf]{vietnamese}
|
||||||
\TestPackage{wallpaper}
|
\TestPackage{wallpaper}
|
||||||
\TestPackage{wrapfig}
|
\TestPackage{wrapfig}
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
#LyX 2.2 created this file. For more info see http://www.lyx.org/
|
#LyX 2.2 created this file. For more info see http://www.lyx.org/
|
||||||
\lyxformat 497
|
\lyxformat 499
|
||||||
\begin_document
|
\begin_document
|
||||||
\begin_header
|
\begin_header
|
||||||
\origin /systemlyxdir/doc/
|
\origin /systemlyxdir/doc/
|
||||||
@ -6596,7 +6596,7 @@ macros/latex/contrib/todonotes/
|
|||||||
|
|
||||||
\begin_layout Description
|
\begin_layout Description
|
||||||
|
|
||||||
\change_inserted -712698321 1409489236
|
\change_inserted -712698321 1446371553
|
||||||
Notes: The package
|
Notes: The package
|
||||||
\family sans
|
\family sans
|
||||||
todonotes
|
todonotes
|
||||||
@ -6611,6 +6611,53 @@ TODO
|
|||||||
\end_inset
|
\end_inset
|
||||||
|
|
||||||
notes into documents.
|
notes into documents.
|
||||||
|
\end_layout
|
||||||
|
|
||||||
|
\begin_layout Subsection
|
||||||
|
|
||||||
|
\change_inserted -712698321 1446371571
|
||||||
|
Variable-width Minipages module
|
||||||
|
\end_layout
|
||||||
|
|
||||||
|
\begin_layout Subsubsection
|
||||||
|
|
||||||
|
\change_inserted -712698321 1446371576
|
||||||
|
varwidth
|
||||||
|
\end_layout
|
||||||
|
|
||||||
|
\begin_layout Description
|
||||||
|
|
||||||
|
\change_inserted -712698321 1446371554
|
||||||
|
Found:
|
||||||
|
\begin_inset Info
|
||||||
|
type "package"
|
||||||
|
arg "varwidth"
|
||||||
|
\end_inset
|
||||||
|
|
||||||
|
|
||||||
|
\end_layout
|
||||||
|
|
||||||
|
\begin_layout Description
|
||||||
|
|
||||||
|
\change_inserted -712698321 1446371591
|
||||||
|
CTAN:
|
||||||
|
\family typewriter
|
||||||
|
macros/latex/contrib/varwidth/
|
||||||
|
\end_layout
|
||||||
|
|
||||||
|
\begin_layout Description
|
||||||
|
|
||||||
|
\change_inserted -712698321 1446371666
|
||||||
|
Notes: The package
|
||||||
|
\family sans
|
||||||
|
varwidth
|
||||||
|
\family default
|
||||||
|
\color none
|
||||||
|
is used to produce minipages variable (i.
|
||||||
|
\begin_inset space \thinspace{}
|
||||||
|
\end_inset
|
||||||
|
|
||||||
|
e., content-dependent) width.
|
||||||
\change_unchanged
|
\change_unchanged
|
||||||
|
|
||||||
\end_layout
|
\end_layout
|
||||||
|
42
lib/layouts/varwidth.module
Normal file
42
lib/layouts/varwidth.module
Normal file
@ -0,0 +1,42 @@
|
|||||||
|
#\DeclareLyXModule{Variable-width Minipages}
|
||||||
|
#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).
|
||||||
|
#DescriptionEnd
|
||||||
|
#
|
||||||
|
# Authors: d.iabo <gm@lyx.org>
|
||||||
|
# Jürgen Spitzmüller <spitz@lyx.org>
|
||||||
|
|
||||||
|
Format 49
|
||||||
|
|
||||||
|
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
|
||||||
|
|
@ -796,7 +796,8 @@ char const * simplefeatures[] = {
|
|||||||
"pdfcomment",
|
"pdfcomment",
|
||||||
"fixme",
|
"fixme",
|
||||||
"todonotes",
|
"todonotes",
|
||||||
"forest"
|
"forest",
|
||||||
|
"varwidth"
|
||||||
};
|
};
|
||||||
|
|
||||||
char const * bibliofeatures[] = {
|
char const * bibliofeatures[] = {
|
||||||
|
Loading…
Reference in New Issue
Block a user