#LyX 2.2 created this file. For more info see http://www.lyx.org/
-\lyxformat 496
+\lyxformat 501
\begin_document
\begin_header
\origin /systemlyxdir/doc/
% 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
\family sans
-Version 2.1.x
+Version 2.2.x
\end_layout
\begin_layout Standard
\series bold
-http://wiki.lyx.org/\SpecialChar LyX
-/DocumentationDevelopment#EmbeddedObjects
+http://wiki.lyx.org/LyX/DocumentationDevelopment#EmbeddedObjects
\end_layout
\end_inset
\begin_layout Description
\family sans
-\SpecialChar LaTeX
-
+LaTeX
\begin_inset space ~
\end_inset
\begin_inset space ~
\end_inset
-\SpecialChar LyX
-
+LyX
\begin_inset space ~
\end_inset
LTright
\series default
by inserting this line as \SpecialChar TeX
--Code before the longtable:
+ Code before the longtable:
\end_layout
\begin_layout Standard
2.1 in the list of tables if there are two longtables without captions.
To avoid this you can add the following command in \SpecialChar TeX
--Code after every longtable
+ Code after every longtable
without a caption:
\end_layout
in.
To change it add the following command to your document preamble or as
\SpecialChar TeX
--Code into your document before the longtable that should be affected
+ Code into your document before the longtable that should be affected
\end_layout
\begin_layout Standard
\end_inset
as \SpecialChar TeX
--Code at the point of the cell where it can be broken.
+ Code at the point of the cell where it can be broken.
Before the
\series bold
\series default
command you have to insert in \SpecialChar TeX
--Code as many
+ Code as many
\begin_inset Quotes eld
\end_inset
\series default
is the character to separate table cells.
Write in \SpecialChar TeX
--Code after each
+ Code after each
\series bold
&
\series default
the cell that should be broken is in the second column followed by another
column.
Therefore the following command was inserted in the cell as \SpecialChar TeX
--Code after
+ Code after
\begin_inset Quotes eld
\end_inset
\begin_layout Standard
must be inserted as \SpecialChar TeX
--Code at the beginning of the cell.
+ Code at the beginning of the cell.
This ensures that the part of the cell that will be displayed on the new
page appears with the full width.
\begin_inset Separator parbreak
Then all entries of multirow cells in the document are centered.
If centering is only needed for several tables, you can renew the command
in a \SpecialChar TeX
--Code box just before the table instead of the preamble.
+ Code box just before the table instead of the preamble.
If the text should be right-aligned, replace
\series bold
it is helpful to split the first cell of the table by one or two diagonal
lines.
This can be achieved by loading the \SpecialChar LaTeX
--package
+ package
\series bold
diagbox
\series default
diagbox
\series default
that is inserted as \SpecialChar TeX
--Code and that can take 2 or 3
+ Code and that can take 2 or 3
\begin_inset space ~
\end_inset
\series default
so one needs to create a new length which can be used later.
This is done with the \SpecialChar TeX
--Code commands
+ Code commands
\end_layout
\begin_layout Standard
\series default
are currently not supported by \SpecialChar LyX
so you have to use \SpecialChar TeX
--Code to be able to
+ Code to be able to
use them.
\series bold
cmidrule
\series default
s can manually be created by inserting the command as \SpecialChar TeX
--Code as the first
+ Code as the first
cell entry of the first cell of a row.
The line is then drawn in the output above the current row.
\end_layout
.
This can be achieved with the \SpecialChar TeX
--Code command
+ Code command
\end_layout
\begin_layout Standard
\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
+ Code command
\end_layout
\begin_layout Standard
}
\series default
is inserted as \SpecialChar TeX
--Code.
+ Code.
For the second table in the last item the command
\end_layout
\begin_layout Standard
Both commands are inserted at the beginning of a cell as \SpecialChar TeX
--Code.
+ Code.
\end_layout
\begin_layout Standard
\family default
dialog.
If a cell contains \SpecialChar TeX
--Code mark only the characters, otherwise the colored
+ Code mark only the characters, otherwise the colored
\SpecialChar TeX
--Code will cause \SpecialChar LaTeX
--errors.
+ Code will cause \SpecialChar LaTeX
+ errors.
\end_layout
\begin_layout Standard
as \SpecialChar LaTeX
-argument for this column.
The first row should be light blue, therefore the \SpecialChar TeX
--Code command
+ Code command
\end_layout
\begin_layout Standard
is inserted to the first cell of this row.
Note that this overwrites the column color for the first cell.
The last cell of the last row is colored maroon by inserting the \SpecialChar TeX
--Code
+ Code
command
\end_layout
\begin_layout Standard
that is either inserted in the document preamble or as \SpecialChar TeX
--Code before the
+ Code before the
first table to be colored.
row
\begin_inset space ~
\end_inset
, insert these commands in \SpecialChar TeX
--Code before the table or table float:
+ Code before the table or table float:
\end_layout
\begin_layout Standard
\begin_layout Standard
To return to the default line color black, insert this command in \SpecialChar TeX
--Code
+ Code
after the table or table float:
\end_layout
strut
\series default
in \SpecialChar TeX
--Code at the beginning of a table row.
+ Code at the beginning of a table row.
Table
\begin_inset space ~
\end_inset
\begin_layout Standard
in \SpecialChar TeX
--Code before the table or table float.
+ Code before the table or table float.
The changed thickness is valid for all subsequent tables.
To use the default value again, set
\series bold
\end_inset
pt in \SpecialChar TeX
--Code after the table or table float.
+ Code after the table or table float.
\end_layout
\begin_layout Standard
\end_inset
, insert these commands in \SpecialChar TeX
--Code before the table or table float:
+ Code before the table or table float:
\end_layout
\begin_layout Standard
\begin_layout Standard
To return to the default line thickness, insert this command in \SpecialChar TeX
--Code after
+ Code after
the table or table float:
\end_layout
\begin_layout Standard
\SpecialChar LyX
does not natively support dashed lines, so you have to use \SpecialChar TeX
--Code.
+ Code.
As a prerequisite the \SpecialChar LaTeX
--package
+ package
\series bold
arydshln
\series default
\end_inset
together with the character for the horizontal alignment as \SpecialChar LaTeX
--argument in
+ argument in
the table cell dialog.
\end_layout
\begin_layout Standard
in \SpecialChar TeX
--Code as first element of the first cell in the table row.
+ Code as first element of the first cell in the table row.
\end_layout
\begin_layout Standard
\begin_layout Standard
in \SpecialChar TeX
--Code as the first element of the first cell in the table row.
+ Code as the first element of the first cell in the table row.
If you have for example a multicolumn spanning columns 2 to 4 and you want
to have a dashed line above, add the command
\end_layout
\end_inset
as \SpecialChar LaTeX
--argument of the third column.
+ argument of the third column.
The \SpecialChar TeX
--Code command
+ Code command
\series bold
\backslash
hdashline
\series default
was inserted in the first cell of the third row and the \SpecialChar TeX
--Code command
+ Code command
\begin_inset Newline newline
\end_inset
\begin_layout Standard
To get back the black line color, one needs to insert the following commands
as \SpecialChar TeX
--Code behind the table:
+ Code behind the table:
\end_layout
\begin_layout Standard
\begin_layout Standard
can be used in front of a table as \SpecialChar TeX
--Code.
+ Code.
color is hereby the name of a defined color.
The command
\end_layout
.
To keep your \SpecialChar LyX
--document readable, you can open and close the float box by
+ document readable, you can open and close the float box by
left-clicking on the box label.
A closed float box looks like this:
\begin_inset Graphics
A possible environment for algorithms is the
\family sans
\SpecialChar LyX
--Code
+ Code
\family default
, described in \SpecialChar LyX
's
when your document has the same language as \SpecialChar LyX
's menu names.
In other cases use this command in \SpecialChar TeX
--Code instead:
+ Code instead:
\end_layout
\begin_layout Standard
.
The cross-reference window appears showing all labels of the document.
If you have multiple \SpecialChar LyX
--documents opened, choose the one you are working
+ documents opened, choose the one you are working
on from the drop-list at the top of the dialog.
You can now sort the labels alphabetically and then choose one.
A grey cross-reference box like this one:
\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
\end_inset
in \SpecialChar TeX
--Code instead of
+ Code instead of
\begin_inset Quotes eld
\end_inset
\begin_layout Standard
in \SpecialChar TeX
--Code before the float.
+ Code before the float.
And insert the command
\end_layout
\begin_layout Standard
in \SpecialChar TeX
--Code at the point where you want to get back to the original float definitio
+ Code at the point where you want to get back to the original float definitio
n.
\end_layout
\begin_layout Standard
in the document preamble or in \SpecialChar TeX
--Code before the float.
+ Code before the float.
The float type is either
\family sans
figure
footnotemark{}
\series default
is inserted as \SpecialChar TeX
--code.
+ code.
The text of the footnote is entered as an argument of the \SpecialChar TeX
--code command
+ code command
\series bold
footnotemark[number]
\series default
in \SpecialChar TeX
--code.
+ code.
\begin_inset Newline newline
\end_inset
the text, you have to store its number.
For the following footnote mark example, these commands were inserted in
\SpecialChar TeX
--code after Footnote
+ code after Footnote
\begin_inset space ~
\end_inset
\begin_layout Standard
in \SpecialChar TeX
--Code at the end of a section or chapter.
+ Code at the end of a section or chapter.
\end_layout
\begin_layout Standard
\begin_layout Standard
in \SpecialChar TeX
--Code before a margin note.
+ Code before a margin note.
The new placement is valid for all subsequent margin notes.
\begin_inset ERT
\begin_layout Standard
in \SpecialChar TeX
--Code.
+ Code.
\begin_inset ERT
status collapsed
or for a better page layout.
The offset is set in \SpecialChar LyX
as \SpecialChar TeX
--Code directly after the margin note in the scheme
+ Code directly after the margin note in the scheme
\end_layout
\begin_layout Standard
\end_inset
cm with the \SpecialChar TeX
--Code-command
+ Code command
\begin_inset Quotes eld
\end_inset
For example the appearance of the following shaded background box is set
with the \SpecialChar TeX
--Code command
+ Code command
\end_layout
\begin_layout Standard
\end_inset
as \SpecialChar TeX
--Code directly before the word:
+ Code directly before the word:
\end_layout
\begin_layout Standard
\begin_layout Standard
in \SpecialChar TeX
--Code before the word.
+ Code before the word.
After the word insert a closing brace
\begin_inset Quotes eld
\end_inset
\end_inset
in \SpecialChar TeX
--Code.
+ Code.
\begin_inset Newline newline
\end_inset
\begin_layout Standard
before the word in \SpecialChar TeX
--Code.
+ Code.
After the word insert a closing brace
\begin_inset Quotes eld
\end_inset
\end_inset
in \SpecialChar TeX
--Code.
+ Code.
\begin_inset Newline newline
\end_inset
\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
\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 clipart/platypus.eps
lyxscale 50
\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 Standard
as \SpecialChar TeX
--Code at the beginning of the paragraph.
+ Code at the beginning of the paragraph.
The first parameter in the bracket, here '2', defines the number of lines
above the object, the second, here 'c', the position of the object.
The positions 'l', 'c' and 'r' (for left, center, right) are possible.
\end_layout
\begin_layout Description
-\SpecialChar LyX
-
+LyX
\begin_inset space ~
\end_inset
Document \SpecialChar LyX
or \SpecialChar LaTeX
--documents.
+ documents.
\end_layout
\begin_layout Section
today
\series default
as \SpecialChar TeX
--Code.
+ Code.
The different methods are compared in Table
\begin_inset space ~
\end_inset
\family default
field in the
\family sans
-\SpecialChar LaTeX
- and \SpecialChar LyX
- options
+LaTeX and LyX options
\family default
tab.
The argument of this option is a comma separated list, containing page
EndFrame
\family default
environment and in a subsequent paragraph a \SpecialChar TeX
--Code box containing the command
+ Code box containing the command
\series bold
\begin_layout Plain Layout
as \SpecialChar TeX
--Code inset box
+ Code inset box
\end_layout
\end_inset
or as image, depending on the option
\family sans
-Show in \SpecialChar LyX
-
+Show in LyX
\family default
in the
\family sans
-\SpecialChar LaTeX
- and \SpecialChar LyX
- options
+LaTeX and LyX options
\family default
tab of the dialog.
\end_layout
\begin_layout Description
Include You can include \SpecialChar LyX
-- and \SpecialChar LaTeX
--documents.
+ and \SpecialChar LaTeX
+ documents.
When you press the
\family sans
Edit
Note:
\series default
If you have included a \SpecialChar LyX
-- or \SpecialChar LaTeX
--file, you are warned when you export/view
- the document in case the child document uses another document class than
- the master document as this will lead to unexpected outputs.
+ or \SpecialChar LaTeX
+ file, you are warned when you export/view the
+ document in case the child document uses another document class than the
+ master document as this will lead to unexpected outputs.
\end_layout
\end_inset
\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>