]> git.lyx.org Git - features.git/commitdiff
Documentation for varwidth.module
authorGuillaume Munch <gm@lyx.org>
Thu, 12 Nov 2015 16:23:08 +0000 (16:23 +0000)
committerGuillaume Munch <gm@lyx.org>
Thu, 12 Nov 2015 16:24:42 +0000 (16:24 +0000)
lib/doc/EmbeddedObjects.lyx
lib/doc/UserGuide.lyx

index 8e957d979b4b6e83207194dc56f5383b55047731..e52d791a932cbbebff4bfae223418a8a787401e9 100644 (file)
@@ -236,11 +236,12 @@ graphicboxes
 \papercolumns 1
 \papersides 2
 \paperpagestyle default
-\tracking_changes false
+\tracking_changes true
 \output_changes false
 \html_math_output 0
 \html_css_as_file 0
 \html_be_strict false
+\author 2047637253 "Guillaume Munch" 
 \end_header
 
 \begin_body
@@ -26916,6 +26917,36 @@ Float on the right side.
 \end_inset
 
 
+\change_inserted 2047637253 1447344411
+
+\end_layout
+
+\begin_layout Standard
+
+\change_inserted 2047637253 1447344943
+Putting two floats side-by-side is made simpler using variable-width minipages
+ (Section
+\begin_inset space ~
+\end_inset
+
+
+\begin_inset CommandInset ref
+LatexCommand ref
+reference "sec:Varwidth"
+
+\end_inset
+
+).
+ Variable-width minipages adapt automatically to the width of the figures.
+ They do not require an explicit width to be given, and they improve the
+ horizontal alignment of the figures.
+ The file 
+\family typewriter
+examples/varwidth-floats-side-by-side.lyx
+\family default
+ gives examples of how to do this.
+\change_unchanged
+
 \end_layout
 
 \begin_layout Section
@@ -34090,6 +34121,59 @@ Note:
 \end_inset
 
 
+\change_inserted 2047637253 1447344098
+
+\end_layout
+
+\begin_layout Section
+
+\change_inserted 2047637253 1447344355
+Variable-width Minipages
+\begin_inset CommandInset label
+LatexCommand label
+name "sec:Varwidth"
+
+\end_inset
+
+
+\begin_inset Index idx
+status open
+
+\begin_layout Plain Layout
+
+\change_inserted 2047637253 1447344099
+Boxes ! Minipages (variable width)
+\end_layout
+
+\end_inset
+
+
+\end_layout
+
+\begin_layout Standard
+
+\change_inserted 2047637253 1447344362
+\SpecialChar LyX
+ has a limited support for minipages whose size is automatically determined
+ by the width of their contents, via the module 
+\emph on
+Variable-width Minipages
+\emph default
+.
+ The file 
+\family typewriter
+examples/varwidth-floats-side-by-side.lyx
+\family default
+ gives examples of variable-width minipages used for placing two floats
+ side-by-side.
+ This requires the \SpecialChar LaTeX
+ package 
+\family typewriter
+Varwidth
+\family default
+.
+\change_unchanged
+
 \end_layout
 
 \begin_layout Section
index 0e82bcdee9dc8c90c4c3c5d70a3842aa07eb70fc..78afd92f98b75f5835473b9964fc5c5ee29dcf32 100644 (file)
@@ -147,6 +147,7 @@ enumitem
 \html_css_as_file 0
 \html_be_strict true
 \author -195340706 "Georg Baum" 
+\author 2047637253 "Guillaume Munch" 
 \end_header
 
 \begin_body
@@ -8171,14 +8172,12 @@ Verbatim
 \end_layout
 
 \begin_layout Verbatim
-
 This is verbatim.
 \end_layout
 
 \begin_layout Verbatim
 \noindent
 \align block
-
 The following 2 lines are empty:
 \end_layout
 
@@ -8191,7 +8190,6 @@ The following 2 lines are empty:
 \end_layout
 
 \begin_layout Verbatim
-
 Almost everything is allowed in verbatim:"%&$ยง#~'`
 \backslash
 }][{|
@@ -22651,7 +22649,11 @@ This is a minipage with some stupid dummy text.
 \begin_layout Standard
 When you right-click on a minipage box, you can transform the box to another
  box type.
- All box types and their settings are explained in detail in chapter 
+ All box types and their settings
+\change_inserted 2047637253 1447344632
+, as well as variable-width minipages,
+\change_unchanged
+ are explained in detail in chapter 
 \emph on
 Boxes
 \emph default