#LyX 2.2 created this file. For more info see http://www.lyx.org/
-\lyxformat 497
+\lyxformat 501
\begin_document
\begin_header
-\origin unavailable
+\origin /systemlyxdir/doc/
\textclass scrbook
\begin_preamble
% if pdflatex is used
% speed up the longtable calculation
\setcounter{LTchunksize}{100}
-% used for scaled and rotated boxes
-\@ifundefined{rotatebox}{\usepackage{graphicx}}{}
-
% used for colored tables
\@ifundefined{textcolor}
{\usepackage{color}}{}
\use_default_options false
\begin_modules
initials
+graphicboxes
\end_modules
\maintain_unincluded_children false
\language english
\language_package default
\inputencoding auto
\fontencoding global
-\font_roman default
-\font_sans default
-\font_typewriter default
-\font_math auto
+\font_roman "default" "default"
+\font_sans "default" "default"
+\font_typewriter "default" "default"
+\font_math "auto" "auto"
\font_default_family default
\use_non_tex_fonts false
\font_sc false
\font_osf false
-\font_sf_scale 100
-\font_tt_scale 100
+\font_sf_scale 100 100
+\font_tt_scale 100 100
\graphics default
\default_output_format default
\output_sync 0
\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
\family sans
-Version 2.1.x
+Version 2.2.x
\end_layout
\begin_layout Standard
\begin_layout Standard
\align center
\begin_inset Graphics
- filename /cvs/lyx/lyx-devel/lib/doc/clipart/mobius.eps
+ filename clipart/mobius.eps
scale 70
scaleBeforeRotation
rotateOrigin center
\begin_layout Standard
\align center
\begin_inset Graphics
- filename /cvs/lyx/lyx-devel/lib/doc/clipart/mobius.eps
+ filename clipart/mobius.eps
scale 70
draft
scaleBeforeRotation
\begin_layout Plain Layout
\align center
\begin_inset Graphics
- filename /cvs/lyx/lyx-devel/lib/doc/clipart/platypus.eps
+ filename clipart/platypus.eps
width 50col%
scaleBeforeRotation
rotateOrigin center
\begin_layout Plain Layout
\align center
\begin_inset Graphics
- filename /cvs/lyx/lyx-devel/lib/doc/clipart/escher-lsd.eps
+ filename clipart/escher-lsd.eps
scale 80
scaleBeforeRotation
rotateOrigin center
\begin_layout Plain Layout
\begin_inset Graphics
- filename /cvs/lyx/lyx-devel/lib/doc/clipart/escher-lsd.eps
+ filename clipart/escher-lsd.eps
width 45col%
scaleBeforeRotation
groupId distorted
\begin_layout Plain Layout
\begin_inset Graphics
- filename /cvs/lyx/lyx-devel/lib/doc/clipart/platypus.eps
+ filename clipart/platypus.eps
width 45col%
scaleBeforeRotation
groupId distorted
\begin_layout Standard
As you will see, the content of the first and last table row is not correctly
aligned.
- To get this alignment, the minipage box must be set into a raisebox
+ To get this alignment, the minipage box must be set into a raisebox.
\begin_inset Foot
status collapsed
\end_inset
-.
In the example above the second table in the first item is aligned using
the \SpecialChar TeX
Code command
left-clicking on the box label.
A closed float box looks like this:
\begin_inset Graphics
- filename /cvs/lyx/lyx-devel/lib/doc/clipart/floatQt4.png
+ filename clipart/floatQt4.png
scale 70
scaleBeforeRotation
.
A grey label box like this one:
\begin_inset Graphics
- filename /cvs/lyx/lyx-devel/lib/doc/clipart/labelQt4.png
+ filename clipart/labelQt4.png
scale 85
scaleBeforeRotation
You can now sort the labels alphabetically and then choose one.
A grey cross-reference box like this one:
\begin_inset Graphics
- filename /cvs/lyx/lyx-devel/lib/doc/clipart/referenceQt4.png
+ filename clipart/referenceQt4.png
scale 85
scaleBeforeRotation
\end_inset
-\end_layout
-
-\begin_layout Standard
-\begin_inset Note Greyedout
-status open
-
-\begin_layout Plain Layout
-
-\series bold
-Note:
-\series default
- Due to a bug in the \SpecialChar LaTeX
--package
-\series bold
-varioref
-\series default
- version 1.4w, some cross-reference formats will cause \SpecialChar LaTeX
- errors for document
- languages that make the period character active (like French).
- For a workaround, see
-\begin_inset Newline newline
-\end_inset
-
-
-\begin_inset CommandInset href
-LatexCommand href
-target "http://wiki.lyx.org/LaTeX/LatexBugs#toc5"
-
-\end_inset
-
-.
-\end_layout
-
-\end_inset
-
-
\end_layout
\begin_layout Subsection
\begin_layout Plain Layout
\align center
\begin_inset Graphics
- filename /cvs/lyx/lyx-devel/lib/doc/clipart/mobius.eps
+ filename clipart/mobius.eps
lyxscale 50
width 100col%
scaleBeforeRotation
\begin_layout Plain Layout
\align center
\begin_inset Graphics
- filename /cvs/lyx/lyx-devel/lib/doc/clipart/platypus.eps
+ filename clipart/platypus.eps
lyxscale 50
width 100col%
scaleBeforeRotation
\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
\begin_layout Plain Layout
\align center
\begin_inset Graphics
- filename /cvs/lyx/lyx-devel/lib/doc/clipart/mobius.eps
+ filename clipart/mobius.eps
lyxscale 50
scale 50
scaleBeforeRotation
\begin_layout Plain Layout
\begin_inset Graphics
- filename /cvs/lyx/lyx-devel/lib/doc/clipart/escher-lsd.eps
+ filename clipart/escher-lsd.eps
scale 75
scaleBeforeRotation
\begin_layout Plain Layout
\begin_inset Graphics
- filename /cvs/lyx/lyx-devel/lib/doc/clipart/escher-lsd.eps
+ filename clipart/escher-lsd.eps
scale 75
scaleBeforeRotation
\end_inset
-This caption that is wider than the one in Table
+This caption is wider than the one in Table
\begin_inset space ~
\end_inset
\begin_inset Graphics
- filename /cvs/lyx/lyx-devel/lib/doc/clipart/LyXNoteImageQt4.png
+ filename clipart/LyXNoteImageQt4.png
display false
scale 85
scaleBeforeRotation
\begin_inset Graphics
- filename /cvs/lyx/lyx-devel/lib/doc/clipart/CommentNoteImageQt4.png
+ filename clipart/CommentNoteImageQt4.png
display false
scale 85
scaleBeforeRotation
\begin_inset Graphics
- filename /cvs/lyx/lyx-devel/lib/doc/clipart/GreyedOutNoteImageQt4.png
+ filename clipart/GreyedOutNoteImageQt4.png
display false
scale 85
scaleBeforeRotation
.
You will then see the following footnote-box:
\begin_inset Graphics
- filename /cvs/lyx/lyx-devel/lib/doc/clipart/footnoteQt4.png
+ filename clipart/footnoteQt4.png
scale 80
scaleBeforeRotation
\begin_inset Graphics
- filename /cvs/lyx/lyx-devel/lib/doc/clipart/without_fntright.pdf
+ filename clipart/without_fntright.pdf
width 100col%
scaleBeforeRotation
\begin_inset Graphics
- filename /cvs/lyx/lyx-devel/lib/doc/clipart/with_fntright.pdf
+ filename clipart/with_fntright.pdf
width 100col%
scaleBeforeRotation
\begin_inset Graphics
- filename /cvs/lyx/lyx-devel/lib/doc/clipart/endnotes.pdf
+ filename clipart/endnotes.pdf
scaleBeforeRotation
\end_inset
\family default
:
\begin_inset Graphics
- filename /cvs/lyx/lyx-devel/lib/doc/clipart/BoxInsetDefaultQt4.png
+ filename clipart/BoxInsetDefaultQt4.png
scale 85
scaleBeforeRotation
\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
\end_layout
\begin_layout Standard
-To use the commands described in this section, the \SpecialChar LaTeX
--package
-\series bold
-graphicx
-\series default
-
-\begin_inset Index idx
-status collapsed
-
-\begin_layout Plain Layout
-\SpecialChar LaTeX
--packages ! graphicx
-\end_layout
-
-\end_inset
-
- needs to be loaded in the document preamble with the command
-\end_layout
-
-\begin_layout Standard
-
-\series bold
-
-\backslash
-@ifundefined{rotatebox}
-\begin_inset Newline newline
-\end_inset
-
-
-\begin_inset Phantom HPhantom
-status open
-
-\begin_layout Plain Layout
-
-\series bold
-\begin_inset space ~
-\end_inset
-
-
-\end_layout
-
-\end_inset
-
-{
-\backslash
-usepackage{graphicx}}{}
+To use the boxes described in this section, the module
+\family sans
+GraphicBoxes
+\family default
+ must be loaded in the document settings.
\end_layout
\begin_layout Standard
\series bold
Note:
\series default
- Not all DVI-viewers are able to display rotated or scaled material.
+ Not all DVI viewers are able to display rotated or scaled material.
\end_layout
\end_inset
\end_layout
\begin_layout Standard
-To rotate material, you can put it into a rotated box.
- Such a box is created using the command
-\series bold
-
-\backslash
-rotatebox
-\series default
- in \SpecialChar TeX
- Code with the following scheme:
-\end_layout
-
-\begin_layout Standard
-
-\series bold
-
-\backslash
-rotatebox[rotation origin]{rotation angle}{box content}
+To rotate material, you can put it into a
+\family sans
+Rotatebox
+\family default
+.
+ Such a box is inserted via the menu
+\family sans
+Insert\SpecialChar menuseparator
+Custom Insets\SpecialChar menuseparator
+Rotatebox
+\family default
+.
\end_layout
\begin_layout Standard
-The rotation origin is specified in the form
+The rotation origin can be specified via the inset
+\family sans
+Origin
+\family default
+ (menu
+\family sans
+Insert\SpecialChar menuseparator
+Origin
+\family default
+) in the form
\series bold
origin=position
\series default
\end_layout
\begin_layout Standard
-In the following example the command
+In the following example
\series bold
-
-\backslash
-rotatebox[origin=c]{60}{
+origin=c
\series default
- was inserted as \SpecialChar TeX
- Code before the text
-\begin_inset Quotes eld
-\end_inset
-
-with rotated
-\begin_inset Quotes erd
-\end_inset
-
-; after the text the box was closed by a closing brace
+ was inserted to the
+\family sans
+Option
+\family default
+ inset and
\series bold
-}
+60
\series default
- in \SpecialChar TeX
- Code.
+ was inserted to the
+\family sans
+Angle
+\family default
+ inset.
\end_layout
\begin_layout Standard
This is a line
-\begin_inset ERT
-status collapsed
+\begin_inset Flex Rotatebox
+status open
\begin_layout Plain Layout
+\begin_inset Argument 1
+status open
-
-\backslash
-rotatebox[origin=c]{60}{
+\begin_layout Plain Layout
+origin=c
\end_layout
\end_inset
-with rotated
-\begin_inset ERT
-status collapsed
+
+\begin_inset Argument 2
+status open
\begin_layout Plain Layout
+60
+\end_layout
-}
+\end_inset
+
+with rotated
\end_layout
\end_inset
\end_layout
\begin_layout Standard
-This is a line
-\begin_inset ERT
-status collapsed
+This is a line
+\begin_inset Flex Rotatebox
+status open
+
+\begin_layout Plain Layout
+\begin_inset Argument 1
+status open
\begin_layout Plain Layout
+origin=r
+\end_layout
+\end_inset
-\backslash
-rotatebox[origin=r]{-60}{
+
+\begin_inset Argument 2
+status open
+
+\begin_layout Plain Layout
+-60
\end_layout
\end_inset
\end_inset
-\begin_inset ERT
-status collapsed
-
-\begin_layout Plain Layout
-
-}
\end_layout
\end_inset
framed text
-\begin_inset ERT
-status collapsed
+\begin_inset Flex Rotatebox
+status open
\begin_layout Plain Layout
+\begin_inset Argument 1
+status open
-
-\backslash
-rotatebox[origin=lb]{60}{
+\begin_layout Plain Layout
+origin=lb
\end_layout
\end_inset
-\begin_inset Formula $\int A\,\mathrm{d}x=B$
+\begin_inset Argument 2
+status open
+
+\begin_layout Plain Layout
+60
+\end_layout
+
\end_inset
-\begin_inset ERT
-status collapsed
+\begin_inset Formula $\int A\,\mathrm{d}x=B$
+\end_inset
-\begin_layout Plain Layout
-}
\end_layout
\end_inset
\end_layout
\begin_layout Standard
-This is a line
-\begin_inset ERT
-status collapsed
+This is a line
+\begin_inset Flex Rotatebox
+status open
\begin_layout Plain Layout
+\begin_inset Argument 1
+status open
+\begin_layout Plain Layout
+origin=lb
+\end_layout
-\backslash
-rotatebox[origin=lb]{90}{
+\end_inset
+
+
+\begin_inset Argument 2
+status open
+
+\begin_layout Plain Layout
+90
\end_layout
\end_inset
\begin_inset Graphics
- filename /cvs/lyx/lyx-devel/lib/doc/clipart/platypus.eps
+ filename clipart/platypus.eps
lyxscale 50
width 25col%
\end_inset
-\begin_inset ERT
-status collapsed
-
-\begin_layout Plain Layout
-
-}
\end_layout
\end_inset
with a rotated image
-\begin_inset ERT
-status collapsed
+\begin_inset Flex Rotatebox
+status open
\begin_layout Plain Layout
+\begin_inset Argument 2
+status open
-
-\backslash
-rotatebox[origin=l]{-90}{
+\begin_layout Plain Layout
+-90
\end_layout
\end_inset
\end_inset
-\begin_inset ERT
-status collapsed
-
-\begin_layout Plain Layout
-
-}
\end_layout
\end_inset
\end_inset
+\end_layout
+
+\begin_layout Standard
+\begin_inset Note Greyedout
+status open
+
+\begin_layout Plain Layout
+
+\series bold
+Note:
+\series default
+ If the
+\family sans
+Angle
+\family default
+ inset is empty or contains other characters than numbers you will get \SpecialChar LaTeX
+
+ errors when viewing/exporting the document.
+\end_layout
+
+\end_inset
+
+
\end_layout
\begin_layout Subsection
\end_layout
\begin_layout Standard
-To scale material the commands
-\series bold
-
-\backslash
-scalebox
-\series default
- and
-\series bold
-
-\backslash
-resizebox
-\series default
- can be used as \SpecialChar TeX
- Code.
-\end_layout
-
-\begin_layout Standard
-
-\series bold
-
-\backslash
-scalebox
-\series default
- is used with the following scheme:
-\end_layout
-
-\begin_layout Standard
-
-\series bold
-
-\backslash
-scalebox{horizontal}[vertical]{box content}
+To scale material put it into a
+\family sans
+Scalebox
+\family default
+.
+ Such a box is inserted via the menu
+\family sans
+Insert\SpecialChar menuseparator
+Custom Insets\SpecialChar menuseparator
+Scalebox
+\family default
+.
\end_layout
\begin_layout Standard
-Horizontal and vertical are the corresponding scaling factors.
- If no vertical scaling factor is given, the horizontal factor will also
- be used as the vertical one.
+The
+\family sans
+Scalebox
+\family default
+ inset has the mandatory inset
+\family sans
+H-Factor
+\family default
+ and the optional inset
+\family sans
+V-Factor
+\family default
+ (inserted via the menu
+\family sans
+Insert\SpecialChar menuseparator
+V-Factor)
+\family default
+.
+ Input there there horizontal and vertical scale factor, respectively.
+ If no
+\family sans
+V-Factor
+\family default
+ inset is used, the horizontal factor will also be used as the vertical
+ one.
\end_layout
\begin_layout Standard
-The command
+To get for example the double text size, compared to the document text size,
+ insert
\series bold
-
-\backslash
-scalebox{2}{Hello}
+2
\series default
- creates for example a double size
-\begin_inset ERT
-status collapsed
+ into the
+\family sans
+H-Factor
+\family default
+ inset.
+ An example:
+\begin_inset Flex Scalebox
+status open
\begin_layout Plain Layout
+\begin_inset Argument 1
+status open
-
-\backslash
-scalebox{2}{
+\begin_layout Plain Layout
+2
\end_layout
\end_inset
Hello
-\begin_inset ERT
-status collapsed
-
-\begin_layout Plain Layout
-
-}
\end_layout
\end_inset
-, compared with the document text size.
+
\end_layout
\begin_layout Standard
\series bold
-
-\backslash
-scalebox{2}[1]{Hello}
+2
\series default
- on the other hand distorts the
-\begin_inset ERT
-status collapsed
+ as
+\family sans
+H-Factor
+\family default
+ and
+\series bold
+1
+\series default
+ as
+\family sans
+V-Factor
+\family default
+ distorts the
+\begin_inset Flex Scalebox
+status open
\begin_layout Plain Layout
+\begin_inset Argument 1
+status open
-
-\backslash
-scalebox{2}[1]{
+\begin_layout Plain Layout
+2
\end_layout
\end_inset
-Hello
-\begin_inset ERT
-status collapsed
+
+\begin_inset Argument 2
+status open
\begin_layout Plain Layout
+1
+\end_layout
-}
+\end_inset
+
+Hello
\end_layout
\end_inset
\begin_layout Standard
If the scaling factor is negative, the box content will be mirrored.
- Therefore the command
+ Therefore
\series bold
-
-\backslash
-scalebox{-1}[1]{Hello}
+-1
\series default
+ as
+\family sans
+H-Factor
+\family default
+ and
+\series bold
+1
+\series default
+ as
+\family sans
+V-Factor
+\family default
can be used to create mirror writing:
-\begin_inset ERT
-status collapsed
+\begin_inset Flex Scalebox
+status open
\begin_layout Plain Layout
+\begin_inset Argument 1
+status open
-
-\backslash
-scalebox{-1}[1]{
+\begin_layout Plain Layout
+-1
\end_layout
\end_inset
-Hello
-\begin_inset ERT
-status collapsed
+
+\begin_inset Argument 2
+status open
\begin_layout Plain Layout
+1
+\end_layout
-}
+\end_inset
+
+Hello
\end_layout
\end_inset
\begin_layout Standard
\series bold
-
-\backslash
-scalebox{1}[-1]{Hello}
+-1
+\series default
+ as
+\family sans
+H-Factor
+\family default
+ and
+\series bold
+1
\series default
+ as
+\family sans
+V-Factor
+\family default
reflects the
-\begin_inset ERT
-status collapsed
+\begin_inset Flex Scalebox
+status open
\begin_layout Plain Layout
+\begin_inset Argument 1
+status open
-
-\backslash
-scalebox{1}[-1]{
+\begin_layout Plain Layout
+1
\end_layout
\end_inset
-Hello
-\begin_inset ERT
-status collapsed
+
+\begin_inset Argument 2
+status open
\begin_layout Plain Layout
+-1
+\end_layout
-}
+\end_inset
+
+Hello
\end_layout
\end_inset
\end_layout
\begin_layout Standard
-Equivalent to
+The
+\family sans
+Reflectbox
+\family default
+ (menu
+\family sans
+Insert\SpecialChar menuseparator
+Custom Insets\SpecialChar menuseparator
+Reflectbox
+\family default
+) is equivalent to
\series bold
-
-\backslash
-scalebox{-1}[1]{box content}
+-1
\series default
- there exists the command
-\begin_inset Newline newline
-\end_inset
-
-
+ as
+\family sans
+H-Factor
+\family default
+ and
\series bold
-
-\backslash
-reflectbox{box content}
+1
\series default
+ as
+\family sans
+V-Factor
+\family default
+for a
+\family sans
+Scalebox
+\family default
.
\end_layout
\begin_layout Standard
-\begin_inset VSpace bigskip
-\end_inset
+\begin_inset Note Greyedout
+status open
-The command
-\series bold
+\begin_layout Plain Layout
-\backslash
-resizebox
+\series bold
+Note:
\series default
- is used to scale the box to a defined width and height.
- The command scheme is:
+ If the
+\family sans
+H-Factor
+\family default
+ inset is empty or contains other characters than numbers you will get LaTeX
+ errors when viewing/exporting the document.
\end_layout
-\begin_layout Standard
+\end_inset
-\series bold
-\backslash
-resizebox{width}{height}{box content}
\end_layout
\begin_layout Standard
-If one of the two command arguments given is an exclamation mark
+\begin_inset VSpace bigskip
+\end_inset
+
+The
+\family sans
+Resizebox
+\family default
+ (menu
+\family sans
+Insert\SpecialChar menuseparator
+Custom Insets\SpecialChar menuseparator
+Resizebox
+\family default
+) is used to scale the content to a defined width and height.
+ The
+\family sans
+Resizebox
+\family default
+ inset has the mandatory inset
+\family sans
+Width
+\family default
+ and the optional inset
+\family sans
+Height
+\family default
+ (inserted via the menu
+\family sans
+Insert\SpecialChar menuseparator
+Height)
+\family default
+.
+ Input there there width and height, respectively, as value with a unit.
+
+\begin_inset CommandInset ref
+LatexCommand ref
+reference "tab:Units"
+
+\end_inset
+
+ lists the possible units.
+ If there is an exclamation mark
\series bold
!
\series default
-, the size is set so that the aspect ratio of the box content is kept.
+ in of of the two insets, the size is set so that the aspect ratio of the
+ box content is kept.
+ If no
+\family sans
+Height
+\family default
+ inset is used an exclamation mark will internally be used for the height.
\end_layout
\begin_layout Standard
-The command
-\series bold
-\backslash
-resizebox{2cm}{1cm}{Hello}
+\series bold
+2cm
+\series default
+ as
+\family sans
+Width
+\family default
+ and
+\series bold
+1cm
\series default
+ as
+\family sans
+Height
+\family default
produces:
-\begin_inset ERT
-status collapsed
+\begin_inset Flex Resizebox
+status open
\begin_layout Plain Layout
+\begin_inset Argument 1
+status open
-
-\backslash
-resizebox{2cm}{1cm}{
+\begin_layout Plain Layout
+2cm
\end_layout
\end_inset
-Hello
-\begin_inset ERT
-status collapsed
+
+\begin_inset Argument 2
+status open
\begin_layout Plain Layout
+1cm
+\end_layout
-}
+\end_inset
+
+Hello
\end_layout
\end_inset
\begin_inset Newline newline
\end_inset
-The command
-\series bold
-\backslash
-resizebox{2cm}{!}{Hello}
+\series bold
+2cm
\series default
- produces:
-\begin_inset ERT
-status collapsed
+ as
+\family sans
+Width
+\family default
+ and
+\series bold
+!
+\series default
+ as
+\family sans
+Height
+\family default
+ (or no
+\family sans
+Height
+\family default
+) produces:
+\begin_inset Flex Resizebox
+status open
\begin_layout Plain Layout
+\begin_inset Argument 1
+status open
-
-\backslash
-resizebox{2cm}{!}{
+\begin_layout Plain Layout
+2cm
\end_layout
\end_inset
-Hello
-\begin_inset ERT
-status collapsed
-\begin_layout Plain Layout
+\begin_inset Argument 2
+status open
-}
+\begin_layout Plain Layout
+!
\end_layout
\end_inset
-
+Hello
\end_layout
-\begin_layout Standard
-\begin_inset VSpace bigskip
\end_inset
+\end_layout
+
+\begin_layout Standard
\begin_inset Note Greyedout
status open
\series bold
Note:
\series default
- When arguments of
-\series bold
-
-\backslash
-scalebox
-\series default
- or
-\series bold
-
-\backslash
-resizebox
-\series default
- are set to zero, no \SpecialChar LaTeX
--errors occur when exporting the document but the exported
- files can not or only partly be displayed.
+ If the
+\family sans
+Width
+\family default
+ inset is empty or contains an invalid unit you will get LaTeX errors when
+ viewing/exporting the document.
\end_layout
\end_inset
\begin_layout Standard
The boxes can be combined in any order.
- E.
-\begin_inset space \thinspace{}
-\end_inset
+ As example a
+\family sans
+Reflectbox
+\family default
+ inside a
+\family sans
+Resizebox
+\family default
+ which is in turn inside a
+\family sans
+Rotatebox
+\family default
+:
+\end_layout
-g.
-\begin_inset space \space{}
-\end_inset
+\begin_layout Standard
+\noindent
+\align center
+\begin_inset Flex Rotatebox
+status open
+
+\begin_layout Plain Layout
+\begin_inset Argument 1
+status open
+
+\begin_layout Plain Layout
+origin=c
+\end_layout
-the command
-\begin_inset Newline newline
\end_inset
-\series bold
+\begin_inset Argument 2
+status open
+
+\begin_layout Plain Layout
+-45
+\end_layout
-\backslash
-rotatebox[origin=c]{-45}{
-\backslash
-resizebox{2cm}{!}{
-\backslash
-reflectbox{Hello}}}
-\begin_inset Newline newline
\end_inset
-\series default
-produces:
-\begin_inset Separator parbreak
-\end_inset
+\begin_inset Flex Resizebox
+status open
+\begin_layout Plain Layout
+\begin_inset Argument 1
+status open
+\begin_layout Plain Layout
+2cm
\end_layout
-\begin_layout Standard
-\align center
-\begin_inset ERT
-status collapsed
+\end_inset
-\begin_layout Plain Layout
+\begin_inset Flex Reflectbox
+status open
-\backslash
-rotatebox[origin=c]{-45}{
-\backslash
-resizebox{2cm}{!}{
-\backslash
-reflectbox{
+\begin_layout Plain Layout
+Hello
\end_layout
\end_inset
-Hello
-\begin_inset ERT
-status collapsed
-\begin_layout Plain Layout
+\end_layout
+
+\end_inset
+
-}}}
\end_layout
\end_inset
\begin_layout Standard
\noindent
Images, tables, and inline formulas are allowed as box content:
-\begin_inset Separator parbreak
-\end_inset
-
-
\end_layout
\begin_layout Standard
+\noindent
\align center
-\begin_inset ERT
-status collapsed
+\begin_inset Flex Resizebox
+status open
\begin_layout Plain Layout
+\begin_inset Argument 1
+status open
-
-\backslash
-rotatebox[origin=c]{-30}{
-\backslash
-resizebox{2cm}{!}{
-\backslash
-reflectbox{
+\begin_layout Plain Layout
+2cm
\end_layout
\end_inset
+\begin_inset Flex Reflectbox
+status open
+
+\begin_layout Plain Layout
\begin_inset Graphics
- filename /cvs/lyx/lyx-devel/lib/doc/clipart/platypus.eps
+ filename clipart/platypus.eps
lyxscale 50
width 25col%
\end_inset
-\begin_inset ERT
-status collapsed
+\end_layout
+
+\end_inset
-\begin_layout Plain Layout
-}}}
\end_layout
\end_inset
-
-\begin_inset ERT
-status collapsed
+
+\begin_inset Flex Resizebox
+status open
\begin_layout Plain Layout
+\begin_inset Argument 1
+status open
-
-\backslash
-rotatebox[origin=c]{-45}{
-\backslash
-resizebox{2cm}{!}{
-\backslash
-reflectbox{
+\begin_layout Plain Layout
+2cm
\end_layout
\end_inset
+\begin_inset Flex Reflectbox
+status open
+
+\begin_layout Plain Layout
\begin_inset Tabular
<lyxtabular version="3" rows="2" columns="2">
<features tabularvalignment="middle">
\end_inset
-\begin_inset ERT
-status collapsed
+\end_layout
+
+\end_inset
-\begin_layout Plain Layout
-}}}
\end_layout
\end_inset
-
-\begin_inset ERT
-status collapsed
+
+\begin_inset Flex Resizebox
+status open
\begin_layout Plain Layout
+\begin_inset Argument 1
+status open
-
-\backslash
-rotatebox[origin=c]{-45}{
-\backslash
-resizebox{2cm}{!}{
-\backslash
-reflectbox{
+\begin_layout Plain Layout
+3cm
\end_layout
\end_inset
+\begin_inset Flex Reflectbox
+status open
+
+\begin_layout Plain Layout
\begin_inset Formula $\int A\,\mathrm{d}x=B$
\end_inset
-\begin_inset ERT
-status collapsed
+\end_layout
+
+\end_inset
-\begin_layout Plain Layout
-}}}
\end_layout
\end_inset
\begin_layout Plain Layout
\begin_inset Graphics
- filename /cvs/lyx/lyx-devel/lib/doc/clipart/mobius.eps
+ filename clipart/mobius.eps
width 40col%
scaleBeforeRotation
rotateOrigin center
\begin_layout Plain Layout
\begin_inset Graphics
- filename /cvs/lyx/lyx-devel/lib/images/dialog-show-new-inset_graphics.png
+ filename ../images/dialog-show-new-inset_graphics.png
scale 70
scaleBeforeRotation
\begin_layout Plain Layout
\begin_inset Graphics
- filename /cvs/lyx/lyx-devel/lib/images/dialog-show-new-inset_graphics.png
+ filename ../images/dialog-show-new-inset_graphics.png
scale 70
scaleBeforeRotation
\begin_layout Plain Layout
\begin_inset Graphics
- filename /cvs/lyx/lyx-devel/lib/images/dialog-show-new-inset_graphics.png
+ filename ../images/dialog-show-new-inset_graphics.png
scale 70
scaleBeforeRotation
\begin_layout Plain Layout
\begin_inset Graphics
- filename /cvs/lyx/lyx-devel/lib/images/dialog-show-new-inset_graphics.png
+ filename ../images/dialog-show-new-inset_graphics.png
scale 70
scaleBeforeRotation
\begin_layout Plain Layout
\begin_inset Graphics
- filename /cvs/lyx/lyx-devel/lib/images/dialog-show-new-inset_graphics.png
+ filename ../images/dialog-show-new-inset_graphics.png
scale 70
scaleBeforeRotation
\begin_layout Plain Layout
\begin_inset Graphics
- filename /cvs/lyx/lyx-devel/lib/images/dialog-show-new-inset_graphics.png
+ filename ../images/dialog-show-new-inset_graphics.png
scale 70
scaleBeforeRotation
\begin_layout Plain Layout
\begin_inset Graphics
- filename /cvs/lyx/lyx-devel/lib/images/dialog-show-new-inset_graphics.png
+ filename ../images/dialog-show-new-inset_graphics.png
scale 70
scaleBeforeRotation
\begin_layout Plain Layout
\begin_inset Graphics
- filename /cvs/lyx/lyx-devel/lib/images/dialog-show-new-inset_graphics.png
+ filename ../images/dialog-show-new-inset_graphics.png
scale 70
scaleBeforeRotation
\begin_layout Plain Layout
\begin_inset Graphics
- filename /cvs/lyx/lyx-devel/lib/images/dialog-show-new-inset_graphics.png
+ filename ../images/dialog-show-new-inset_graphics.png
scale 70
scaleBeforeRotation
\begin_inset Graphics
- filename /cvs/lyx/lyx-devel/lib/doc/clipart/mobius.eps
+ filename clipart/mobius.eps
lyxscale 60
width 40col%
scaleBeforeRotation
This is a date inserted as external material:
\begin_inset External
template Date
- filename /cvs/lyx/lyx-devel/lib/doc/
+ filename .
\end_inset
Here is an included PDF which is rotated by -5°:
\begin_inset External
template PDFPages
- filename /cvs/lyx/lyx-devel/lib/doc/clipart/Abstract.pdf
+ filename clipart/Abstract.pdf
extra LaTeX "noautoscale, pages=-"
rotateAngle -5
rotateOrigin bottomleft
Here is an inserted raster image:
\begin_inset External
template RasterImage
- filename /cvs/lyx/lyx-devel/lib/doc/clipart/ToolbarEnvBox.png
+ filename clipart/ToolbarEnvBox.png
\end_inset
External material is displayed in \SpecialChar LyX
either as a box like this:
\begin_inset Graphics
- filename /cvs/lyx/lyx-devel/lib/doc/clipart/ExternalMaterialQt4.png
+ filename clipart/ExternalMaterialQt4.png
scale 85
scaleBeforeRotation
Included documents are displayed in \SpecialChar LyX
as a box like this:
\begin_inset Graphics
- filename /cvs/lyx/lyx-devel/lib/doc/clipart/ChildDocumentQt4.png
+ filename clipart/ChildDocumentQt4.png
scale 85
scaleBeforeRotation
\begin_layout Plain Layout
\align center
\begin_inset Tabular
-<lyxtabular version="3" rows="20" columns="2">
+<lyxtabular version="3" rows="20" columns="3">
<features tabularvalignment="middle">
<column alignment="center" valignment="top">
<column alignment="center" valignment="top">
+<column alignment="center" valignment="top">
<row>
<cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
\begin_inset Text
\end_inset
</cell>
-<cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
+<cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
\begin_inset Text
\begin_layout Plain Layout
name/description
\end_layout
+\end_inset
+</cell>
+<cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
+\begin_inset Text
+
+\begin_layout Plain Layout
+\SpecialChar LaTeX
+ command
+\end_layout
+
\end_inset
</cell>
</row>
\end_inset
</cell>
-<cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
+<cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
\begin_inset Text
\begin_layout Plain Layout
millimeter
\end_layout
+\end_inset
+</cell>
+<cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
+\begin_inset Text
+
+\begin_layout Plain Layout
+-
+\end_layout
+
\end_inset
</cell>
</row>
\end_inset
</cell>
-<cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
+<cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
\begin_inset Text
\begin_layout Plain Layout
centimeter
\end_layout
+\end_inset
+</cell>
+<cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
+\begin_inset Text
+
+\begin_layout Plain Layout
+-
+\end_layout
+
\end_inset
</cell>
</row>
\end_inset
</cell>
-<cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
+<cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
\begin_inset Text
\begin_layout Plain Layout
inch
\end_layout
+\end_inset
+</cell>
+<cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
+\begin_inset Text
+
+\begin_layout Plain Layout
+-
+\end_layout
+
\end_inset
</cell>
</row>
\end_inset
</cell>
-<cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
+<cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
\begin_inset Text
\begin_layout Plain Layout
in)
\end_layout
+\end_inset
+</cell>
+<cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
+\begin_inset Text
+
+\begin_layout Plain Layout
+-
+\end_layout
+
\end_inset
</cell>
</row>
\end_inset
</cell>
-<cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
+<cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
\begin_inset Text
\begin_layout Plain Layout
pt)
\end_layout
+\end_inset
+</cell>
+<cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
+\begin_inset Text
+
+\begin_layout Plain Layout
+-
+\end_layout
+
\end_inset
</cell>
</row>
\end_inset
</cell>
-<cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
+<cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
\begin_inset Text
\begin_layout Plain Layout
pt)
\end_layout
+\end_inset
+</cell>
+<cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
+\begin_inset Text
+
+\begin_layout Plain Layout
+-
+\end_layout
+
\end_inset
</cell>
</row>
\end_inset
</cell>
-<cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
+<cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
\begin_inset Text
\begin_layout Plain Layout
in)
\end_layout
+\end_inset
+</cell>
+<cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
+\begin_inset Text
+
+\begin_layout Plain Layout
+-
+\end_layout
+
\end_inset
</cell>
</row>
\end_inset
</cell>
-<cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
+<cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
\begin_inset Text
\begin_layout Plain Layout
mm)
\end_layout
+\end_inset
+</cell>
+<cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
+\begin_inset Text
+
+\begin_layout Plain Layout
+-
+\end_layout
+
\end_inset
</cell>
</row>
\end_inset
</cell>
-<cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
+<cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
\begin_inset Text
\begin_layout Plain Layout
dd)
\end_layout
+\end_inset
+</cell>
+<cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
+\begin_inset Text
+
+\begin_layout Plain Layout
+-
+\end_layout
+
\end_inset
</cell>
</row>
\begin_inset Text
\begin_layout Plain Layout
-Scale%
+Scale Graphics %
\end_layout
\end_inset
</cell>
-<cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
+<cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
\begin_inset Text
\begin_layout Plain Layout
% of original image width
\end_layout
+\end_inset
+</cell>
+<cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
+\begin_inset Text
+
+\begin_layout Plain Layout
+
+\end_layout
+
\end_inset
</cell>
</row>
\begin_inset Text
\begin_layout Plain Layout
-text%
+Text Width %
\end_layout
\end_inset
</cell>
-<cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
+<cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
\begin_inset Text
\begin_layout Plain Layout
% of text width
\end_layout
+\end_inset
+</cell>
+<cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
+\begin_inset Text
+
+\begin_layout Plain Layout
+
+\backslash
+textwidth
+\end_layout
+
\end_inset
</cell>
</row>
\begin_inset Text
\begin_layout Plain Layout
-col%
+Column Width %
\end_layout
\end_inset
</cell>
-<cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
+<cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
\begin_inset Text
\begin_layout Plain Layout
% of column width
\end_layout
+\end_inset
+</cell>
+<cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
+\begin_inset Text
+
+\begin_layout Plain Layout
+
+\backslash
+columnwidth
+\end_layout
+
\end_inset
</cell>
</row>
\begin_inset Text
\begin_layout Plain Layout
-page%
+Page Width %
\end_layout
\end_inset
</cell>
-<cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
+<cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
\begin_inset Text
\begin_layout Plain Layout
% of paper width
\end_layout
+\end_inset
+</cell>
+<cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
+\begin_inset Text
+
+\begin_layout Plain Layout
+
+\backslash
+paperwidth
+\end_layout
+
\end_inset
</cell>
</row>
\begin_inset Text
\begin_layout Plain Layout
-line%
+Line Width %
\end_layout
\end_inset
</cell>
-<cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
+<cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
\begin_inset Text
\begin_layout Plain Layout
% of line width
\end_layout
+\end_inset
+</cell>
+<cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
+\begin_inset Text
+
+\begin_layout Plain Layout
+
+\backslash
+linewidth
+\end_layout
+
\end_inset
</cell>
</row>
\begin_inset Text
\begin_layout Plain Layout
-theight%
+Text Height %
\end_layout
\end_inset
</cell>
-<cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
+<cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
\begin_inset Text
\begin_layout Plain Layout
% of text height
\end_layout
+\end_inset
+</cell>
+<cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
+\begin_inset Text
+
+\begin_layout Plain Layout
+
+\backslash
+textheight
+\end_layout
+
\end_inset
</cell>
</row>
\begin_inset Text
\begin_layout Plain Layout
-pheight%
+Page Height %
\end_layout
\end_inset
</cell>
-<cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
+<cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
\begin_inset Text
\begin_layout Plain Layout
% of paper height
\end_layout
+\end_inset
+</cell>
+<cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
+\begin_inset Text
+
+\begin_layout Plain Layout
+
+\backslash
+paperheight
+\end_layout
+
\end_inset
</cell>
</row>
\end_inset
</cell>
-<cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
+<cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
\begin_inset Text
\begin_layout Plain Layout
in current font
\end_layout
+\end_inset
+</cell>
+<cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
+\begin_inset Text
+
+\begin_layout Plain Layout
+-
+\end_layout
+
\end_inset
</cell>
</row>
\end_inset
</cell>
-<cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
+<cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
\begin_inset Text
\begin_layout Plain Layout
in current font
\end_layout
+\end_inset
+</cell>
+<cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
+\begin_inset Text
+
+\begin_layout Plain Layout
+-
+\end_layout
+
\end_inset
</cell>
</row>
\end_inset
</cell>
-<cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
+<cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
\begin_inset Text
\begin_layout Plain Layout
em)
\end_layout
+\end_inset
+</cell>
+<cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
+\begin_inset Text
+
+\begin_layout Plain Layout
+-
+\end_layout
+
\end_inset
</cell>
</row>