\setboolean{colortbl}{true}}
{\setboolean{colortbl}{false}}
+% used for colored table rows
+\usepackage[table]{xcolor}
+
% used to have extra space in table cells
\@ifundefined{extrarowheight}
{\usepackage{array}}{}
{\usepackage{diagbox}
\setboolean{diagbox}{true}}
{\setboolean{diagbox}{false}}
+
+% workaround for a bug in KOMA-script 3.10a
+% remove this if a newer KOMA-script version is released!
+\usepackage{everysel,sidecap}
\end_preamble
\options fleqn,bibliography=totoc,index=totoc,BCOR7.5mm,titlepage,captions=tableheading,usenames,dvipsnames
\use_default_options false
\begin_layout Standard
To insert an image into your document, place the cursor at the text position
you want and click on the toolbar icon
-\family sans
-
\begin_inset Info
type "icon"
arg "dialog-show-new-inset graphics"
\end_inset
-
-\family default
or use the menu
\family sans
Insert\SpecialChar \menuseparator
box
\family default
will only print the image region within the given coordinates.
- Normally you don't need to take care about image coordinates and can ignore
+ Normally you don't need to worry about image coordinates and can ignore
this tab.
\end_layout
\begin_layout Standard
The toolbar button
-\family sans
-
\begin_inset Info
type "icon"
arg "float-insert figure"
\end_inset
-
-\family default
and the menu
\family sans
Insert\SpecialChar \menuseparator
Label
\family default
or the toolbar button
-\family sans
-
\begin_inset Info
type "icon"
arg "label-insert"
\end_inset
-
-\family default
.
You can now refer to the label using the menu
\family sans
reference
\family default
or the toolbar button
-\family sans
-
\begin_inset Info
type "icon"
arg "dialog-show-new-inset ref"
\end_inset
-
-\family default
.
It is important to use references to floats, rather than using vague references
like
\family default
in the background to convert the images to the right format.
To increase your work flow by avoiding these conversions in the background,
- you can use only the image formats that can directly be embedded in the
- output file format.
+ you could choose to use only the image formats that can directly be embedded
+ in the output file format.
The output file formats are explained in appendix
\begin_inset space ~
\end_inset
When you have set a width you can also adjust the vertical alignment of
the current row.
A given width will allow the cell to have line breaks and multiple paragraphs
- of text, see section
-\begin_inset space ~
+ of text, see sec.
+\begin_inset space \thinspace{}
\end_inset
\end_inset
Furthermore, you can mark one or multiple cells of one row as a multicolumn
- cell, see section
-\begin_inset space ~
+ cell, see sec.
+\begin_inset space \thinspace{}
\end_inset
\end_inset
- or the cells of one column as multirow cell, see section
-\begin_inset space ~
+ or the cells of one column as multirow cell, see sec.
+\begin_inset space \thinspace{}
\end_inset
\end_inset
The rotate check boxes rotate the current cell, a selection, or the whole
- table counter-clockwise by 90°.
+ table counter-clockwise by 90
+\begin_inset space \thinspace{}
+\end_inset
+
+°.
The rotation is not shown within LyX, only in the output.
+ For more information see sec.
+\begin_inset space \thinspace{}
+\end_inset
+
+
+\begin_inset CommandInset ref
+LatexCommand ref
+reference "sec:Rotated-Table-Cells"
+
+\end_inset
+
+.
\begin_inset Newline newline
\end_inset
\end_inset
It is also possible to enter a LaTeX-argument which is needed for special
- table formattings, see section
-\begin_inset space ~
+ table formattings, see sec.
+\begin_inset space \thinspace{}
\end_inset
\family sans
Formal
\family default
- will convert the table to a formal table as described in section
-\begin_inset space ~
+ will convert the table to a formal table as described in sec.
+\begin_inset space \thinspace{}
\end_inset
\begin_inset Newline newline
\end_inset
-You can also add here space to table rows as described in section
-\begin_inset space ~
+You can also add space here to table rows as described in sec.
+\begin_inset space \thinspace{}
\end_inset
\begin_layout Labeling
\labelwidthstring 00.00.0000
-
-\family sans
\begin_inset Info
type "icon"
arg "inset-modify tabular append-row"
\end_inset
-
-\family default
adds a row below the current cell or selection
\end_layout
\begin_layout Labeling
\labelwidthstring 00.00.0000
-
-\family sans
\begin_inset Info
type "icon"
arg "inset-modify tabular append-column"
\end_inset
-
-\family default
adds a column right beside the current cell or selection
\end_layout
\begin_layout Labeling
\labelwidthstring 00.00.0000
-
-\family sans
\begin_inset Info
type "icon"
arg "inset-modify tabular delete-row"
\end_inset
-
-\family default
deletes the current row or selection
\end_layout
\begin_layout Labeling
\labelwidthstring 00.00.0000
-
-\family sans
\begin_inset Info
type "icon"
arg "inset-modify tabular delete-column"
\end_inset
-
-\family default
deletes the current column or selection
\end_layout
\begin_layout Labeling
\labelwidthstring 00.00.0000
-
-\family sans
\begin_inset Info
type "icon"
arg "inset-modify tabular toggle-line-top"
\end_inset
-
-\family default
adds a line at the top of the current cell / row or of a selection
\end_layout
\begin_layout Labeling
\labelwidthstring 00.00.0000
-
-\family sans
\begin_inset Info
type "icon"
arg "inset-modify tabular toggle-line-bottom"
\end_inset
-
-\family default
adds a line at the bottom of the current cell / row or of a selection
\end_layout
\begin_layout Labeling
\labelwidthstring 00.00.0000
-
-\family sans
\begin_inset Info
type "icon"
arg "inset-modify tabular toggle-line-left"
\end_inset
-
-\family default
adds a line at the left side of the current cell / row or of a selection
\end_layout
\begin_layout Labeling
\labelwidthstring 00.00.0000
-
-\family sans
\begin_inset Info
type "icon"
arg "inset-modify tabular toggle-line-right"
\end_inset
-
-\family default
adds a line at the right side of the current cell / row or of a selection
\end_layout
\begin_layout Labeling
\labelwidthstring 00.00.0000
-
-\family sans
\begin_inset Info
type "icon"
arg "inset-modify tabular set-all-lines"
\end_inset
-
-\family default
adds lines around the current or selected cells - if the current cell no
multicolumn cell this also affects the current row and column
\end_layout
\begin_layout Labeling
\labelwidthstring 00.00.0000
-
-\family sans
\begin_inset Info
type "icon"
arg "inset-modify tabular unset-all-lines"
\end_inset
-
-\family default
deletes all lines of the current or selected cells - if the current cell
no multicolumn cell this also affects the current row and column
\end_layout
\begin_layout Labeling
\labelwidthstring 00.00.0000
-
-\family sans
\begin_inset Info
type "icon"
arg "inset-modify tabular m-align-left"
\end_inset
-
-\family default
left-aligns the content of the current cell / column
\end_layout
\begin_layout Labeling
\labelwidthstring 00.00.0000
-
-\family sans
\begin_inset Info
type "icon"
arg "inset-modify tabular m-align-center"
\end_inset
-
-\family default
centers the content of the current cell / column horizontally
\end_layout
\begin_layout Labeling
\labelwidthstring 00.00.0000
-
-\family sans
\begin_inset Info
type "icon"
arg "inset-modify tabular m-align-right"
\end_inset
-
-\family default
right-aligns the content of the current cell / column
\end_layout
\begin_layout Labeling
\labelwidthstring 00.00.0000
-
-\family sans
\begin_inset Info
type "icon"
arg "inset-modify tabular align-decimal"
\end_inset
-
-\family default
aligns the content of the current column at a character
\end_layout
\begin_layout Labeling
\labelwidthstring 00.00.0000
-
-\family sans
\begin_inset Info
type "icon"
arg "inset-modify tabular m-valign-top"
\end_inset
-
-\family default
aligns the content of the current cell vertically to the top
\end_layout
\begin_layout Labeling
\labelwidthstring 00.00.0000
-
-\family sans
\begin_inset Info
type "icon"
arg "inset-modify tabular m-valign-middle"
\end_inset
-
-\family default
centers the content of the current cell vertically
\end_layout
\begin_layout Labeling
\labelwidthstring 00.00.0000
-
-\family sans
\begin_inset Info
type "icon"
arg "inset-modify tabular m-valign-bottom"
\end_inset
-
-\family default
aligns the content of the current cell vertically to the bottom
\end_layout
\begin_layout Labeling
\labelwidthstring 00.00.0000
-
-\family sans
\begin_inset Info
type "icon"
arg "inset-modify tabular set-rotate-cell"
\end_inset
-
-\family default
rotates the current cell or selection counter-clockwise by 90°
\end_layout
\begin_layout Labeling
\labelwidthstring 00.00.0000
-
-\family sans
\begin_inset Info
type "icon"
arg "inset-modify tabular set-rotate-tabular"
\end_inset
-
-\family default
rotates the whole table counter-clockwise by 90°
\end_layout
\begin_layout Labeling
\labelwidthstring 00.00.0000
-
-\family sans
\begin_inset Info
type "icon"
arg "inset-modify tabular multicolumn"
\end_inset
-
-\family default
sets the current cell or selection as a multicolumn
\end_layout
\begin_layout Labeling
\labelwidthstring 00.00.0000
-
-\family sans
\begin_inset Info
type "icon"
arg "inset-modify tabular multirow"
\end_inset
-
-\family default
sets the current cell or selection as a multirow
\end_layout
\end_layout
\begin_layout Standard
-Additionally to the table dialog and toolbar, the menu
+In addition to the table dialog and toolbar, the menu
\family sans
Edit\SpecialChar \menuseparator
Table
Table
\family default
or the toolbar button
-\family sans
-
\begin_inset Info
type "icon"
arg "float-insert table"
\end_inset
-
-\family default
.
\end_layout
Label
\family default
or the toolbar button
-\family sans
-
\begin_inset Info
type "icon"
arg "label-insert"
\end_inset
-
-\family default
.
You can now refer to the label using the menu
\family sans
reference
\family default
or the toolbar button
-\family sans
-
\begin_inset Info
type "icon"
arg "dialog-show-new-inset ref"
\end_inset
-
-\family default
.
\begin_inset Newline newline
\end_inset
1:
\series default
- The table number is increased for for every longtable, even if you did
- not set a caption for it.
+ The table number is increased for every longtable, even if you did not
+ set a caption for it.
For this reason you could have the case that e.
\begin_inset space \thinspace{}
\end_inset
\end_layout
\begin_layout Plain Layout
-This is not needed when none of your longtables have a caption and you add
+This is not needed when none of your longtables has a caption and you add
the following code to the document preamble:
\end_layout
\end_layout
\begin_layout Standard
-The maximal width of of caption lines is defined by the length
+The maximal width of caption lines is defined by the length
\series bold
\backslash
\begin_layout Standard
To merge cells over multiple columns, select as many cells within a row
as you want to merge and use either the table-toolbar button
-\family sans
-
\begin_inset Info
type "icon"
arg "inset-modify tabular multicolumn"
\end_inset
-
-\family default
, or the menu
\family sans
Edit\SpecialChar \menuseparator
\begin_layout Standard
To merge cells over multiple rows, select as many cells within a column
as you want to merge and use either the table-toolbar button
-\family sans
-
\begin_inset Info
type "icon"
arg "inset-modify tabular multirow"
\end_inset
-
-\family default
, or the menu
\family sans
Edit\SpecialChar \menuseparator
\end_layout
\begin_layout Standard
-If you are anyway not satisfied with the border line spacing, you can use
- the following command to produce lines that span over all table columns
+If you are in any way not satisfied with the border line spacing, you can
+ use the following command to produce lines that span over all table columns
\series bold
:
\end_layout
\end_layout
\begin_layout Standard
-To align tables vertically in a text line the table must be inside a box.
+To align tables vertically in a text line, the table must be inside a box.
The box can then be vertically aligned as described in section
\begin_inset space ~
\end_inset
\begin_layout Standard
If you only need colored text, mark the cells and choose a color in the
- menu
+
\family sans
-Edit\SpecialChar \menuseparator
Text
\begin_inset space ~
\end_inset
Style
\family default
-.
+ dialog (toolbar button
+\begin_inset Info
+type "icon"
+arg "dialog-show character"
+\end_inset
+
+).
This was used to create Table
\begin_inset space ~
\end_inset
\end_layout
\begin_layout Standard
-To color characters in the table, mark the cells and use the LyX menu
+To color characters in the table, mark the cells and use the
\family sans
-Edit\SpecialChar \menuseparator
Text
\begin_inset space ~
\end_inset
Style
\family default
-.
+ dialog.
If a cell contains TeX-Code mark only the characters, otherwise the colored
TeX-Code will cause LaTeX-errors.
\end_layout
\end_layout
\begin_layout Subsection
-Colored Lines
+Colored Rows
\begin_inset Index idx
status collapsed
\begin_layout Plain Layout
-Table Color ! for Lines
+Table Color ! for Rows
\end_layout
\end_inset
status collapsed
\begin_layout Plain Layout
-Color ! for Table Lines
+Color ! for Table Rows
\end_layout
\end_inset
\end_layout
\begin_layout Standard
-As described in section
-\begin_inset space ~
+In case every second table row needs to be colored there is an alternative
+ to the method described in the previous section: One loads the package
+
+\series bold
+xcolor
+\series default
+
+\begin_inset Index idx
+status collapsed
+
+\begin_layout Plain Layout
+LaTeX-packages ! xcolor
+\begin_inset ERT
+status collapsed
+
+\begin_layout Plain Layout
+
+
+\backslash
+vspace{4mm}
+\end_layout
+
\end_inset
-\begin_inset CommandInset ref
-LatexCommand ref
-reference "sub:Line-Thickness"
+\end_layout
\end_inset
-, the line thickness for all lines in a table can be adjusted with the length
-
+ in the document preamble with the command
+\end_layout
+
+\begin_layout Standard
+
\series bold
\backslash
-arrayrulewidth
+usepackage[table]{xcolor}
+\end_layout
+
+\begin_layout Standard
+
+\series bold
+xcolor
\series default
-.
- It is set to 1.5
-\begin_inset space \thinspace{}
+ automatically loads also the package
+\series bold
+colortbl
+\series default
+
+\begin_inset Index idx
+status collapsed
+
+\begin_layout Plain Layout
+LaTeX-packages ! colortbl
+\end_layout
+
\end_inset
-pt for all tables of this section.
+, so
+\series bold
+colortbl
+\series default
+ must be installed in your LaTeX-distribution, otherwise you get LaTeX-errors.
+\end_layout
+
+\begin_layout Standard
\begin_inset ERT
status collapsed
\backslash
-setlength{
+ifcolortbl
+\end_layout
+
+\end_inset
+
+
+\begin_inset Note Note
+status open
+
+\begin_layout Plain Layout
+The following section part will only be displayed when the LaTeX-package
+
+\series bold
+colortbl
+\series default
+ is installed.
+\end_layout
+
+\end_inset
+
+
+\end_layout
+
+\begin_layout Standard
+The table rows are colored with the command
+\end_layout
+
+\begin_layout Standard
+
+\series bold
+
\backslash
-arrayrulewidth}{1.5pt}
+rowcolors[commands]{row number}{odd row color}{even row color}
\end_layout
+\begin_layout Standard
+that is either inserted in the document preamble or as TeX-Code before the
+ first table to be colored.
+ row
+\begin_inset space ~
\end_inset
+number is the number of the first row which should be colored according
+ to the odd row color.
+ commands can be additional commands that are executed before every table
+ row.
+ So for example the command
+\end_layout
+
+\begin_layout Standard
+
+\series bold
+\backslash
+rowcolors{1}{white}{lightgray}
\end_layout
\begin_layout Standard
-To color vertical lines for example with green, create the following column
- format in the document preamble, according to the description in section
+leads to the coloring scheme of Table
\begin_inset space ~
\end_inset
\begin_inset CommandInset ref
LatexCommand ref
-reference "sub:Customized-Format"
+reference "tab:Table-rowcolors"
\end_inset
-:
+.
+ The command
\end_layout
\begin_layout Standard
\series bold
\backslash
-newcolumntype{W}{!{
-\backslash
-color{green}
+rowcolors[
\backslash
-vline}}
+hline]{1}{lightgray}{cyan}
\end_layout
\begin_layout Standard
-For Table
+leads to the coloring scheme of Table
\begin_inset space ~
\end_inset
\begin_inset CommandInset ref
LatexCommand ref
-reference "tab:Table-with-vertical-colored"
+reference "tab:Table-rowcolors-2"
\end_inset
- the LaTeX-argument
+.
+ If odd
+\begin_inset space ~
+\end_inset
+
+row
+\begin_inset space ~
+\end_inset
+
+color and/or even
+\begin_inset space ~
+\end_inset
+
+row
+\begin_inset space ~
+\end_inset
+
+color are left empty, no color will be used so that the command
+\end_layout
+
+\begin_layout Standard
+
\series bold
- WcW
-\series default
- was used for the last column and
+
+\backslash
+rowcolors{1}{}{}
+\end_layout
+
+\begin_layout Standard
+deletes all colors.
+
\series bold
- Wc
+
+\backslash
+rowcolors
\series default
- for the other columns.
+ affects all tables following that command.
\end_layout
\begin_layout Standard
-If you want to have several colors, define more column formats.
+\begin_inset ERT
+status open
+
+\begin_layout Plain Layout
+
+
+\backslash
+rowcolors{1}{white}{lightgray}
+\end_layout
+
+\end_inset
+
+
\end_layout
\begin_layout Standard
\begin_layout Plain Layout
\begin_inset CommandInset label
LatexCommand label
-name "tab:Table-with-vertical-colored"
+name "tab:Table-rowcolors"
\end_inset
-Table with colored vertical lines
+Table where every second row is colored light gray.
\end_layout
\end_inset
\begin_layout Plain Layout
\align center
\begin_inset Tabular
-<lyxtabular version="3" rows="3" columns="3">
+<lyxtabular version="3" rows="4" columns="3">
<features tabularvalignment="middle">
-<column alignment="center" valignment="top" width="0" special="Wc">
-<column alignment="center" valignment="top" width="0" special="Wc">
-<column alignment="center" valignment="top" width="0" special="WcW">
+<column alignment="center" valignment="top" width="0">
+<column alignment="center" valignment="top" width="0pt">
+<column alignment="center" valignment="top" width="0pt">
<row>
-<cell alignment="center" valignment="top" topline="true" usebox="none">
+<cell alignment="center" valignment="top" usebox="none">
\begin_inset Text
\begin_layout Plain Layout
-sd
+X
\end_layout
\end_inset
</cell>
-<cell alignment="center" valignment="top" topline="true" usebox="none">
+<cell alignment="center" valignment="top" usebox="none">
\begin_inset Text
\begin_layout Plain Layout
-
+Y
\end_layout
\end_inset
</cell>
-<cell alignment="center" valignment="top" topline="true" usebox="none">
+<cell alignment="center" valignment="top" usebox="none">
\begin_inset Text
\begin_layout Plain Layout
-
+Z
\end_layout
\end_inset
</cell>
</row>
<row>
-<cell alignment="center" valignment="top" topline="true" usebox="none">
+<cell alignment="center" valignment="top" usebox="none">
\begin_inset Text
\begin_layout Plain Layout
-
+1
\end_layout
\end_inset
</cell>
-<cell alignment="center" valignment="top" topline="true" usebox="none">
+<cell alignment="center" valignment="top" usebox="none">
\begin_inset Text
\begin_layout Plain Layout
-sd
+2
\end_layout
\end_inset
</cell>
-<cell alignment="center" valignment="top" topline="true" usebox="none">
+<cell alignment="center" valignment="top" usebox="none">
\begin_inset Text
\begin_layout Plain Layout
-
+3
\end_layout
\end_inset
</cell>
</row>
<row>
-<cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
+<cell alignment="center" valignment="top" usebox="none">
+\begin_inset Text
+
+\begin_layout Plain Layout
+4
+\end_layout
+
+\end_inset
+</cell>
+<cell alignment="center" valignment="top" usebox="none">
\begin_inset Text
\begin_layout Plain Layout
+5
+\end_layout
+
+\end_inset
+</cell>
+<cell alignment="center" valignment="top" usebox="none">
+\begin_inset Text
+\begin_layout Plain Layout
+6
\end_layout
\end_inset
</cell>
-<cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
+</row>
+<row>
+<cell alignment="center" valignment="top" usebox="none">
\begin_inset Text
\begin_layout Plain Layout
+7
+\end_layout
+
+\end_inset
+</cell>
+<cell alignment="center" valignment="top" usebox="none">
+\begin_inset Text
+\begin_layout Plain Layout
+8
\end_layout
\end_inset
</cell>
-<cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
+<cell alignment="center" valignment="top" usebox="none">
\begin_inset Text
\begin_layout Plain Layout
-sd
+9
\end_layout
\end_inset
\end_layout
\begin_layout Standard
-\begin_inset VSpace bigskip
+\begin_inset ERT
+status open
+
+\begin_layout Plain Layout
+
+
+\backslash
+rowcolors[
+\backslash
+hline]{1}{lightgray}{cyan}
+\end_layout
+
\end_inset
-To color horizontal lines for example with red, as in Table
-\begin_inset space ~
+
+\end_layout
+
+\begin_layout Standard
+\begin_inset Float table
+placement h
+wide false
+sideways false
+status open
+
+\begin_layout Plain Layout
+\begin_inset Caption
+
+\begin_layout Plain Layout
+\begin_inset CommandInset label
+LatexCommand label
+name "tab:Table-rowcolors-2"
+
\end_inset
+Table where every second row is colored cyan and at which there is a line
+ between each row.
+\end_layout
-\begin_inset CommandInset ref
-LatexCommand ref
-reference "tab:Table-with-horizontal-colored"
+\end_inset
+
+
+\end_layout
+
+\begin_layout Plain Layout
+\align center
+\begin_inset Tabular
+<lyxtabular version="3" rows="4" columns="3">
+<features tabularvalignment="middle">
+<column alignment="center" valignment="top" width="0">
+<column alignment="center" valignment="top" width="0">
+<column alignment="center" valignment="top" width="0pt">
+<row>
+<cell alignment="center" valignment="top" usebox="none">
+\begin_inset Text
+
+\begin_layout Plain Layout
+X
+\end_layout
\end_inset
+</cell>
+<cell alignment="center" valignment="top" usebox="none">
+\begin_inset Text
-, insert these commands in TeX-Code before the table or table float:
+\begin_layout Plain Layout
+Y
\end_layout
-\begin_layout Standard
+\end_inset
+</cell>
+<cell alignment="center" valignment="top" usebox="none">
+\begin_inset Text
-\series bold
+\begin_layout Plain Layout
+Z
+\end_layout
-\backslash
-let
-\backslash
-myHlineC
-\backslash
-hline
-\begin_inset Newline newline
\end_inset
+</cell>
+</row>
+<row>
+<cell alignment="center" valignment="top" usebox="none">
+\begin_inset Text
+\begin_layout Plain Layout
+1
+\end_layout
-\backslash
-renewcommand{
-\backslash
-hline}
-\begin_inset Newline newline
\end_inset
+</cell>
+<cell alignment="center" valignment="top" usebox="none">
+\begin_inset Text
+\begin_layout Plain Layout
+2
+\end_layout
-\begin_inset Phantom HPhantom
-status open
+\end_inset
+</cell>
+<cell alignment="center" valignment="top" usebox="none">
+\begin_inset Text
\begin_layout Plain Layout
+3
+\end_layout
-\series bold
-\begin_inset space ~
\end_inset
+</cell>
+</row>
+<row>
+<cell alignment="center" valignment="top" usebox="none">
+\begin_inset Text
+
+\begin_layout Plain Layout
+4
+\end_layout
+\end_inset
+</cell>
+<cell alignment="center" valignment="top" usebox="none">
+\begin_inset Text
+\begin_layout Plain Layout
+5
\end_layout
\end_inset
+</cell>
+<cell alignment="center" valignment="top" usebox="none">
+\begin_inset Text
-{
-\backslash
-arrayrulecolor{red}
-\backslash
-myHlineC
-\backslash
-arrayrulecolor{black}}
+\begin_layout Plain Layout
+6
+\end_layout
+
+\end_inset
+</cell>
+</row>
+<row>
+<cell alignment="center" valignment="top" usebox="none">
+\begin_inset Text
+
+\begin_layout Plain Layout
+7
+\end_layout
+
+\end_inset
+</cell>
+<cell alignment="center" valignment="top" usebox="none">
+\begin_inset Text
+
+\begin_layout Plain Layout
+8
+\end_layout
+
+\end_inset
+</cell>
+<cell alignment="center" valignment="top" usebox="none">
+\begin_inset Text
+
+\begin_layout Plain Layout
+9
+\end_layout
+
+\end_inset
+</cell>
+</row>
+</lyxtabular>
+
+\end_inset
+
+
+\end_layout
+
+\end_inset
+
+
+\end_layout
+
+\begin_layout Standard
+\begin_inset ERT
+status collapsed
+
+\begin_layout Plain Layout
+
+
+\backslash
+rowcolors{1}{}{}
+\end_layout
+
+\end_inset
+
+
+\begin_inset Note Note
+status collapsed
+
+\begin_layout Plain Layout
+turns off the row coloring
+\end_layout
+
+\end_inset
+
+
+\end_layout
+
+\begin_layout Standard
+\begin_inset ERT
+status collapsed
+
+\begin_layout Plain Layout
+
+
+\backslash
+else
+\end_layout
+
+\end_inset
+
+
+\begin_inset Note Note
+status open
+
+\begin_layout Plain Layout
+The following will be displayed when the LaTeX-package
+\series bold
+colortbl
+\series default
+ is not installed:
+\end_layout
+
+\end_inset
+
+
+\end_layout
+
+\begin_layout Standard
+You need to install the package
+\series bold
+colortbl
+\series default
+ to see the content of this section in the output.
+\end_layout
+
+\begin_layout Standard
+\begin_inset ERT
+status collapsed
+
+\begin_layout Plain Layout
+
+
+\backslash
+fi
+\end_layout
+
+\end_inset
+
+
+\end_layout
+
+\begin_layout Subsection
+Colored Lines
+\begin_inset Index idx
+status collapsed
+
+\begin_layout Plain Layout
+Table Color ! for Lines
+\end_layout
+
+\end_inset
+
+
+\begin_inset Index idx
+status collapsed
+
+\begin_layout Plain Layout
+Color ! for Table Lines
+\end_layout
+
+\end_inset
+
+
+\end_layout
+
+\begin_layout Standard
+As described in section
+\begin_inset space ~
+\end_inset
+
+
+\begin_inset CommandInset ref
+LatexCommand ref
+reference "sub:Line-Thickness"
+
+\end_inset
+
+, the line thickness for all lines in a table can be adjusted with the length
+
+\series bold
+
+\backslash
+arrayrulewidth
+\series default
+.
+ It is set to 1.5
+\begin_inset space \thinspace{}
+\end_inset
+
+pt for all tables of this section.
+\begin_inset ERT
+status collapsed
+
+\begin_layout Plain Layout
+
+
+\backslash
+setlength{
+\backslash
+arrayrulewidth}{1.5pt}
+\end_layout
+
+\end_inset
+
+
+\end_layout
+
+\begin_layout Standard
+To color vertical lines for example with green, create the following column
+ format in the document preamble, according to the description in section
+\begin_inset space ~
+\end_inset
+
+
+\begin_inset CommandInset ref
+LatexCommand ref
+reference "sub:Customized-Format"
+
+\end_inset
+
+:
+\end_layout
+
+\begin_layout Standard
+
+\series bold
+
+\backslash
+newcolumntype{W}{!{
+\backslash
+color{green}
+\backslash
+vline}}
+\end_layout
+
+\begin_layout Standard
+For Table
+\begin_inset space ~
+\end_inset
+
+
+\begin_inset CommandInset ref
+LatexCommand ref
+reference "tab:Table-with-vertical-colored"
+
+\end_inset
+
+ the LaTeX-argument
+\series bold
+ WcW
+\series default
+ was used for the last column and
+\series bold
+ Wc
+\series default
+ for the other columns.
+\end_layout
+
+\begin_layout Standard
+If you want to have several colors, define more column formats.
+\end_layout
+
+\begin_layout Standard
+\begin_inset Float table
+placement h
+wide false
+sideways false
+status open
+
+\begin_layout Plain Layout
+\begin_inset Caption
+
+\begin_layout Plain Layout
+\begin_inset CommandInset label
+LatexCommand label
+name "tab:Table-with-vertical-colored"
+
+\end_inset
+
+Table with colored vertical lines
+\end_layout
+
+\end_inset
+
+
+\end_layout
+
+\begin_layout Plain Layout
+\align center
+\begin_inset Tabular
+<lyxtabular version="3" rows="3" columns="3">
+<features tabularvalignment="middle">
+<column alignment="center" valignment="top" width="0" special="Wc">
+<column alignment="center" valignment="top" width="0" special="Wc">
+<column alignment="center" valignment="top" width="0" special="WcW">
+<row>
+<cell alignment="center" valignment="top" topline="true" usebox="none">
+\begin_inset Text
+
+\begin_layout Plain Layout
+sd
+\end_layout
+
+\end_inset
+</cell>
+<cell alignment="center" valignment="top" topline="true" usebox="none">
+\begin_inset Text
+
+\begin_layout Plain Layout
+
+\end_layout
+
+\end_inset
+</cell>
+<cell alignment="center" valignment="top" topline="true" usebox="none">
+\begin_inset Text
+
+\begin_layout Plain Layout
+
+\end_layout
+
+\end_inset
+</cell>
+</row>
+<row>
+<cell alignment="center" valignment="top" topline="true" usebox="none">
+\begin_inset Text
+
+\begin_layout Plain Layout
+
+\end_layout
+
+\end_inset
+</cell>
+<cell alignment="center" valignment="top" topline="true" usebox="none">
+\begin_inset Text
+
+\begin_layout Plain Layout
+sd
+\end_layout
+
+\end_inset
+</cell>
+<cell alignment="center" valignment="top" topline="true" usebox="none">
+\begin_inset Text
+
+\begin_layout Plain Layout
+
+\end_layout
+
+\end_inset
+</cell>
+</row>
+<row>
+<cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
+\begin_inset Text
+
+\begin_layout Plain Layout
+
+\end_layout
+
+\end_inset
+</cell>
+<cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
+\begin_inset Text
+
+\begin_layout Plain Layout
+
+\end_layout
+
+\end_inset
+</cell>
+<cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
+\begin_inset Text
+
+\begin_layout Plain Layout
+sd
+\end_layout
+
+\end_inset
+</cell>
+</row>
+</lyxtabular>
+
+\end_inset
+
+
+\end_layout
+
+\end_inset
+
+
+\end_layout
+
+\begin_layout Standard
+\begin_inset VSpace bigskip
+\end_inset
+
+To color horizontal lines for example with red, as in Table
+\begin_inset space ~
+\end_inset
+
+
+\begin_inset CommandInset ref
+LatexCommand ref
+reference "tab:Table-with-horizontal-colored"
+
+\end_inset
+
+, insert these commands in TeX-Code before the table or table float:
+\end_layout
+
+\begin_layout Standard
+
+\series bold
+
+\backslash
+let
+\backslash
+myHlineC
+\backslash
+hline
+\begin_inset Newline newline
+\end_inset
+
+
+\backslash
+renewcommand{
+\backslash
+hline}
+\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
+arrayrulecolor{red}
+\backslash
+myHlineC
+\backslash
+arrayrulecolor{black}}
+\end_layout
+
+\begin_layout Standard
+\begin_inset ERT
+status collapsed
+
+\begin_layout Plain Layout
+
+
+\backslash
+let
+\backslash
+myHlineC
+\backslash
+hline
+\end_layout
+
+\begin_layout Plain Layout
+
+
+\backslash
+renewcommand{
+\backslash
+hline}
+\end_layout
+
+\begin_layout Plain Layout
+
+ {
+\backslash
+arrayrulecolor{red}
+\backslash
+myHlineC
+\backslash
+arrayrulecolor{black}}
+\end_layout
+
+\end_inset
+
+
+\begin_inset Float table
+placement h
+wide false
+sideways false
+status open
+
+\begin_layout Plain Layout
+\begin_inset Caption
+
+\begin_layout Plain Layout
+\begin_inset CommandInset label
+LatexCommand label
+name "tab:Table-with-horizontal-colored"
+
+\end_inset
+
+Table with colored horizontal lines
+\end_layout
+
+\end_inset
+
+
+\end_layout
+
+\begin_layout Plain Layout
+\align center
+\begin_inset Tabular
+<lyxtabular version="3" rows="3" columns="3">
+<features tabularvalignment="middle">
+<column alignment="center" valignment="top" width="0">
+<column alignment="center" valignment="top" width="0">
+<column alignment="center" valignment="top" width="0">
+<row>
+<cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
+\begin_inset Text
+
+\begin_layout Plain Layout
+sd
+\end_layout
+
+\end_inset
+</cell>
+<cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
+\begin_inset Text
+
+\begin_layout Plain Layout
+
+\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>
+<row>
+<cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
+\begin_inset Text
+
+\begin_layout Plain Layout
+
+\end_layout
+
+\end_inset
+</cell>
+<cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
+\begin_inset Text
+
+\begin_layout Plain Layout
+sd
+\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>
+<row>
+<cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
+\begin_inset Text
+
+\begin_layout Plain Layout
+
+\end_layout
+
+\end_inset
+</cell>
+<cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
+\begin_inset Text
+
+\begin_layout Plain Layout
+
+\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
+sd
+\end_layout
+
+\end_inset
+</cell>
+</row>
+</lyxtabular>
+
+\end_inset
+
+
+\end_layout
+
+\end_inset
+
+
+\end_layout
+
+\begin_layout Standard
+To return to the default line color black, insert this command in TeX-Code
+ after the table or table float:
+\end_layout
+
+\begin_layout Standard
+
+\series bold
+
+\backslash
+renewcommand{
+\backslash
+hline}{
+\backslash
+myHlineC}
+\end_layout
+
+\begin_layout Standard
+Table
+\begin_inset space ~
+\end_inset
+
+
+\begin_inset CommandInset ref
+LatexCommand ref
+reference "tab:Table-with-colored"
+
+\end_inset
+
+ is an example with colored vertical and horizontal lines.
+\end_layout
+
+\begin_layout Standard
+\begin_inset Float table
+placement h
+wide false
+sideways false
+status open
+
+\begin_layout Plain Layout
+\begin_inset Caption
+
+\begin_layout Plain Layout
+\begin_inset CommandInset label
+LatexCommand label
+name "tab:Table-with-colored"
+
+\end_inset
+
+Table with colored lines
+\end_layout
+
+\end_inset
+
+
+\end_layout
+
+\begin_layout Plain Layout
+\align center
+\begin_inset Tabular
+<lyxtabular version="3" rows="3" columns="3">
+<features tabularvalignment="middle">
+<column alignment="center" valignment="top" width="0" special="Wc">
+<column alignment="center" valignment="top" width="0" special="Wc">
+<column alignment="center" valignment="top" width="0" special="WcW">
+<row>
+<cell alignment="center" valignment="top" topline="true" usebox="none">
+\begin_inset Text
+
+\begin_layout Plain Layout
+sd
+\end_layout
+
+\end_inset
+</cell>
+<cell alignment="center" valignment="top" topline="true" usebox="none">
+\begin_inset Text
+
+\begin_layout Plain Layout
+
+\end_layout
+
+\end_inset
+</cell>
+<cell alignment="center" valignment="top" topline="true" usebox="none">
+\begin_inset Text
+
+\begin_layout Plain Layout
+
+\end_layout
+
+\end_inset
+</cell>
+</row>
+<row>
+<cell alignment="center" valignment="top" topline="true" usebox="none">
+\begin_inset Text
+
+\begin_layout Plain Layout
+
+\end_layout
+
+\end_inset
+</cell>
+<cell alignment="center" valignment="top" topline="true" usebox="none">
+\begin_inset Text
+
+\begin_layout Plain Layout
+sd
+\end_layout
+
+\end_inset
+</cell>
+<cell alignment="center" valignment="top" topline="true" usebox="none">
+\begin_inset Text
+
+\begin_layout Plain Layout
+
+\end_layout
+
+\end_inset
+</cell>
+</row>
+<row topspace="default">
+<cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
+\begin_inset Text
+
+\begin_layout Plain Layout
+
+\end_layout
+
+\end_inset
+</cell>
+<cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
+\begin_inset Text
+
+\begin_layout Plain Layout
+
+\end_layout
+
+\end_inset
+</cell>
+<cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
+\begin_inset Text
+
+\begin_layout Plain Layout
+sd
+\end_layout
+
+\end_inset
+</cell>
+</row>
+</lyxtabular>
+
+\end_inset
+
+
+\end_layout
+
+\end_inset
+
+
+\end_layout
+
+\begin_layout Standard
+\begin_inset ERT
+status collapsed
+
+\begin_layout Plain Layout
+
+
+\backslash
+renewcommand{
+\backslash
+hline}{
+\backslash
+myHlineC}
+\end_layout
+
+\end_inset
+
+
+\end_layout
+
+\begin_layout Standard
+\begin_inset ERT
+status collapsed
+
+\begin_layout Plain Layout
+
+
+\backslash
+setlength{
+\backslash
+arrayrulewidth}{0.4pt}
+\end_layout
+
+\end_inset
+
+
+\end_layout
+
+\begin_layout Section
+Rotated Table Cells
+\begin_inset CommandInset label
+LatexCommand label
+name "sec:Rotated-Table-Cells"
+
+\end_inset
+
+
+\begin_inset Index idx
+status collapsed
+
+\begin_layout Plain Layout
+Table ! Rotated Cells
+\end_layout
+
+\end_inset
+
+
+\begin_inset Index idx
+status collapsed
+
+\begin_layout Plain Layout
+Rotated Material
+\end_layout
+
+\end_inset
+
+
+\end_layout
+
+\begin_layout Standard
+\begin_inset Note Greyedout
+status open
+
+\begin_layout Plain Layout
+
+\series bold
+Note:
+\series default
+ Not all DVI-viewers are able to display rotations.
+\end_layout
+
+\end_inset
+
+
+\end_layout
+
+\begin_layout Standard
+Currently LyX only offers to rotate table cells by 90
+\begin_inset space \thinspace{}
+\end_inset
+
+° counter-clockwise.
+ To rotate cells by an angle of your choice, you have to add this to the
+ document preamble:
+\end_layout
+
+\begin_layout Standard
+
+\series bold
+
+\backslash
+@ifundefined{turnbox}{
+\backslash
+usepackage{rotating}}{}
+\end_layout
+
+\begin_layout Standard
+In the table cell that should be rotated, add at the beginning this command
+ as TeX-code:
\end_layout
\begin_layout Standard
-\begin_inset ERT
-status collapsed
-
-\begin_layout Plain Layout
+\series bold
\backslash
-let
-\backslash
-myHlineC
-\backslash
-hline
+begin{turn}{angle}
\end_layout
-\begin_layout Plain Layout
+\begin_layout Standard
+where angle is the rotation angle in °.
+ At the end of the cell the command
+\end_layout
+\begin_layout Standard
+
+\series bold
\backslash
-renewcommand{
-\backslash
-hline}
+end{turn}
\end_layout
-\begin_layout Plain Layout
-
- {
-\backslash
-arrayrulecolor{red}
-\backslash
-myHlineC
-\backslash
-arrayrulecolor{black}}
+\begin_layout Standard
+is inserted as TeX-code.
\end_layout
+\begin_layout Standard
+Table
+\begin_inset space ~
+\end_inset
+
+
+\begin_inset CommandInset ref
+LatexCommand ref
+reference "tab:Table-with-rotated-multi"
+
+\end_inset
+
+ is an example where 3
+\begin_inset space ~
+\end_inset
+
+cells were rotated by 45
+\begin_inset space \thinspace{}
\end_inset
+°.
+\end_layout
+\begin_layout Standard
\begin_inset Float table
-placement h
wide false
sideways false
status open
\begin_layout Plain Layout
\begin_inset CommandInset label
LatexCommand label
-name "tab:Table-with-horizontal-colored"
+name "tab:Table-with-rotated"
\end_inset
-Table with colored horizontal lines
+Table with rotated cells in the first row.
\end_layout
\end_inset
\end_layout
\begin_layout Plain Layout
+\noindent
\align center
\begin_inset Tabular
-<lyxtabular version="3" rows="3" columns="3">
+<lyxtabular version="3" rows="2" columns="3">
<features tabularvalignment="middle">
<column alignment="center" valignment="top" width="0">
-<column alignment="center" valignment="top" width="0">
+<column alignment="center" valignment="top" width="0pt">
<column alignment="center" valignment="top" width="0">
<row>
-<cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
+<cell alignment="center" valignment="top" usebox="none">
\begin_inset Text
\begin_layout Plain Layout
-sd
+\begin_inset ERT
+status collapsed
+
+\begin_layout Plain Layout
+
+
+\backslash
+begin{turn}{45}
\end_layout
\end_inset
-</cell>
-<cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
-\begin_inset Text
+
+cups
+\begin_inset ERT
+status collapsed
\begin_layout Plain Layout
+
+\backslash
+end{turn}
+\end_layout
+
+\end_inset
+
+
\end_layout
\end_inset
</cell>
-<cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
+<cell alignment="center" valignment="top" usebox="none">
\begin_inset Text
\begin_layout Plain Layout
+\begin_inset ERT
+status collapsed
+
+\begin_layout Plain Layout
+
+\backslash
+begin{turn}{45}
\end_layout
\end_inset
-</cell>
-</row>
-<row>
-<cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
-\begin_inset Text
+
+plates
+\begin_inset ERT
+status collapsed
\begin_layout Plain Layout
+
+\backslash
+end{turn}
+\end_layout
+
+\end_inset
+
+
\end_layout
\end_inset
</cell>
-<cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
+<cell alignment="center" valignment="top" usebox="none">
\begin_inset Text
\begin_layout Plain Layout
-sd
+\begin_inset ERT
+status collapsed
+
+\begin_layout Plain Layout
+
+
+\backslash
+begin{turn}{45}
\end_layout
\end_inset
-</cell>
-<cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
-\begin_inset Text
+
+saucers
+\begin_inset ERT
+status collapsed
\begin_layout Plain Layout
+
+\backslash
+end{turn}
+\end_layout
+
+\end_inset
+
+
\end_layout
\end_inset
\begin_inset Text
\begin_layout Plain Layout
-
+45
\end_layout
\end_inset
\begin_inset Text
\begin_layout Plain Layout
-
+33
\end_layout
\end_inset
\begin_inset Text
\begin_layout Plain Layout
-sd
+21
\end_layout
\end_inset
\end_layout
\begin_layout Standard
-To return to the default line color black, insert this command in TeX-Code
- after the table or table float:
-\end_layout
+\begin_inset Note Greyedout
+status open
-\begin_layout Standard
+\begin_layout Plain Layout
\series bold
+Note:
+\series default
+ Line breaks (shortcut
+\begin_inset Info
+type "shortcut"
+arg "newline-insert newline"
+\end_inset
+
+) are not allowed in rotated cells.
+\end_layout
+
+\end_inset
+
-\backslash
-renewcommand{
-\backslash
-hline}{
-\backslash
-myHlineC}
\end_layout
\begin_layout Standard
-Table
+If you want to rotate table cells containing line breaks, you have to put
+ the cell content into a minipage or a parbox.
+\begin_inset Foot
+status collapsed
+
+\begin_layout Plain Layout
+For more about these boxes see sec.
+\begin_inset space \thinspace{}
+\end_inset
+
+
+\begin_inset CommandInset ref
+LatexCommand ref
+reference "sec:Minipages"
+
+\end_inset
+
+ and
+\begin_inset CommandInset ref
+LatexCommand ref
+reference "sec:Parboxes"
+
+\end_inset
+
+.
+\end_layout
+
+\end_inset
+
+ If you rotate this cell by 90
+\begin_inset space \thinspace{}
+\end_inset
+
+° the width of the box is the height of the cell.
+ Table
\begin_inset space ~
\end_inset
\begin_inset CommandInset ref
LatexCommand ref
-reference "tab:Table-with-colored"
+reference "tab:Table-with-rotated-multi"
\end_inset
- is an example with colored vertical and horizontal lines.
+ is an example for a rotated multiline cell where the box width was set
+ to 3
+\begin_inset space \thinspace{}
+\end_inset
+
+cm.
\end_layout
\begin_layout Standard
\begin_inset Float table
-placement h
wide false
sideways false
status open
\begin_layout Plain Layout
\begin_inset CommandInset label
LatexCommand label
-name "tab:Table-with-colored"
+name "tab:Table-with-rotated-multi"
\end_inset
-Table with colored lines
+Table with rotated multiline cell.
\end_layout
\end_inset
\end_layout
\begin_layout Plain Layout
+\noindent
\align center
\begin_inset Tabular
-<lyxtabular version="3" rows="3" columns="3">
+<lyxtabular version="3" rows="2" columns="3">
<features tabularvalignment="middle">
-<column alignment="center" valignment="top" width="0" special="Wc">
-<column alignment="center" valignment="top" width="0" special="Wc">
-<column alignment="center" valignment="top" width="0" special="WcW">
+<column alignment="center" valignment="top" width="0">
+<column alignment="center" valignment="top" width="0pt">
+<column alignment="center" valignment="top" width="0">
<row>
-<cell alignment="center" valignment="top" topline="true" usebox="none">
+<cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
\begin_inset Text
\begin_layout Plain Layout
-sd
+a
\end_layout
\end_inset
</cell>
-<cell alignment="center" valignment="top" topline="true" usebox="none">
+<cell alignment="center" valignment="top" topline="true" leftline="true" rotate="true" usebox="none">
\begin_inset Text
\begin_layout Plain Layout
-
-\end_layout
-
-\end_inset
-</cell>
-<cell alignment="center" valignment="top" topline="true" usebox="none">
-\begin_inset Text
+\begin_inset Box Frameless
+position "t"
+hor_pos "c"
+has_inner_box 1
+inner_pos "t"
+use_parbox 0
+use_makebox 0
+width "3cm"
+special "none"
+height "1in"
+height_special "totalheight"
+status open
\begin_layout Plain Layout
-
-\end_layout
-
+rotated cell
+\begin_inset Newline newline
\end_inset
-</cell>
-</row>
-<row>
-<cell alignment="center" valignment="top" topline="true" usebox="none">
-\begin_inset Text
-
-\begin_layout Plain Layout
+with line break
\end_layout
\end_inset
-</cell>
-<cell alignment="center" valignment="top" topline="true" usebox="none">
-\begin_inset Text
-\begin_layout Plain Layout
-sd
+
\end_layout
\end_inset
</cell>
-<cell alignment="center" valignment="top" topline="true" usebox="none">
+<cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
\begin_inset Text
\begin_layout Plain Layout
-
+e
\end_layout
\end_inset
</cell>
</row>
-<row topspace="default">
-<cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
+<row>
+<cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
\begin_inset Text
\begin_layout Plain Layout
-
+b
\end_layout
\end_inset
</cell>
-<cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
+<cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
\begin_inset Text
\begin_layout Plain Layout
-
+c
\end_layout
\end_inset
</cell>
-<cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
+<cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
\begin_inset Text
\begin_layout Plain Layout
-sd
+d
\end_layout
\end_inset
\end_inset
-\end_layout
-
-\begin_layout Standard
-\begin_inset ERT
-status collapsed
-
-\begin_layout Plain Layout
-
-
-\backslash
-renewcommand{
-\backslash
-hline}{
-\backslash
-myHlineC}
-\end_layout
-
-\end_inset
-
-
-\end_layout
-
-\begin_layout Standard
-\begin_inset ERT
-status collapsed
-
-\begin_layout Plain Layout
-
-
-\backslash
-setlength{
-\backslash
-arrayrulewidth}{0.4pt}
-\end_layout
-
-\end_inset
-
-
\end_layout
\begin_layout Section
.
This alignment is achieved by setting the cursor into the column and then
either pressing the toolbar button
-\begin_inset Graphics
- filename ../images/tabular-feature_align-decimal.png
- scale 85
- scaleBeforeRotation
-
+\begin_inset Info
+type "icon"
+arg "inset-modify tabular align-decimal"
\end_inset
or setting the alignment in the table settings to
Notes
\family default
- are also floats, because they can float to the next page when there are
+ are also floats because they can float to the next page when there are
too many notes on the page.
\end_layout
\begin_layout Standard
Floats allow a high quality layout.
- Images and tables can be spread evenly to the pages to avoid white space
+ Images and tables can be spread evenly among the pages to avoid white space
and pages without text.
As the floating often destroys the context between the text and the image/table
, every float can be referenced in the text.
Insert\SpecialChar \menuseparator
Float
\family default
-.
+ (toolbar button
+\begin_inset Info
+type "icon"
+arg "float-insert figure"
+\end_inset
+
+ or
+\begin_inset Info
+type "icon"
+arg "float-insert table"
+\end_inset
+
+).
This inserts the
\family sans
Caption
\end_layout
\begin_layout Standard
-It is recommended that you insert floats as a separate standard paragraph
+It is recommended that you insert floats as separate standard paragraphs
to avoid possible LaTeX-errors that can occur when the surrounding text
is specially formatted.
\end_layout
This float type is inserted with the menu
\family sans
Insert\SpecialChar \menuseparator
-Floats\SpecialChar \menuseparator
+Float\SpecialChar \menuseparator
Algorithm
\family default
.
\backslash
thetable
\series default
- is the command that prints the table number, for figure floats, the command
- would be
+ is the command that prints the table number.
+ For figure floats, the command would be
\series bold
\backslash
\backslash
roman
\series default
- in the command above prints the table number as small roman number.
+ in the command above prints the table number as a small roman number.
\end_layout
\begin_layout Standard
Label
\family default
or the toolbar button
-\family sans
-
\begin_inset Info
type "icon"
arg "label-insert"
\end_inset
-
-\family default
.
A grey label box like this one:
\begin_inset Graphics
Cross-reference
\family default
or the toolbar button
-\family sans
-
\begin_inset Info
type "icon"
arg "dialog-show-new-inset ref"
\end_inset
-
-\family default
.
+ The cross-reference window appears showing all labels of the document.
+ If you have multiple LyX-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:
\begin_inset Graphics
filename clipart/referenceQt4.png
\end_inset
- will be inserted and the cross-reference window appear showing all labels
- of the document.
- If you have multiple LyX-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.
+ will be inserted.
At the position of the cross-reference box the float number will appear
in the output.
\end_layout
\begin_layout Standard
You can change labels at any time by clicking on the label box.
- References to the changed label will automatically change its link to the
- new label text, so that you don't need to take care about this.
+ References to the changed label will automatically update their links to
+ the new label text.
\end_layout
\begin_layout Standard
\end_inset
Back and you can use it to set the cursor back to the cross-reference.
- Right-clicking on a cross-reference box also sets the cursor before the
- referenced label but without the possibility of going back.
\end_layout
\begin_layout Subsection
\series bold
-\backslash
-newlength{
-\backslash
-abc}
-\begin_inset Newline newline
-\end_inset
-
-
-\backslash
-settowidth{
-\backslash
-abc}{
-\backslash
-space}
-\begin_inset Newline newline
-\end_inset
-
-
\backslash
addto
\backslash
extrasenglish{
\backslash
-renewcommand{
-\backslash
-equationautorefname}
-\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
-hspace{-
+renewcommand*{
\backslash
-abc}}
+equationautorefname}[1]{}}
\end_layout
\begin_layout Standard
\end_layout
\begin_layout Standard
-Right-clicking on a float-box opens a dialog where you can alter the placement
- options that LaTeX uses for positioning the float.
+Right-clicking on a float-box and clicking on
+\family sans
+Settings
+\family default
+ opens a dialog where you can alter the placement options that LaTeX uses
+ for positioning the float.
\begin_inset Newline newline
\end_inset
\end_layout
\begin_layout Standard
-You can use one ore more of the following options in the float dialog to
+You can use one or more of the following options in the float dialog to
set the placement for a particular float when you uncheck the option
\family sans
Use
\begin_inset space ~
\end_inset
-placements are possible the procedure is internally repeated but it is tried
- to put the float on the following page.
+placements is possible the procedure is internally repeated trying to put
+ the float on the following page.
\end_layout
\begin_layout Standard
\begin_inset space \thinspace{}
\end_inset
-% of the page are occupied by floats, several floats can be set together
+% of the page is occupied by floats, several floats can be set together
on a page.
(
\series bold
\begin_layout Standard
There are various package options to format the created figure/table sections.
- For more information we refer to the
+ For more information we refer you to the
\series bold
endfloat
\series default
Floats
\family default
.
- On the LyX screen captions appear as label, e.
+ On the LyX screen captions appear as a label, e.
\begin_inset space \thinspace{}
\end_inset
\begin_layout Standard
Notes are inserted with the toolbar button
-\family sans
-
\begin_inset Info
type "icon"
arg "note-insert"
\end_inset
-
-\family default
or the menu
\family sans
Insert\SpecialChar \menuseparator
\end_inset
When you use the toolbar button
-\family sans
-
\begin_inset Info
type "icon"
arg "note-insert"
\end_inset
-
-\family default
to insert notes, a
\family sans
LyX
Note
\family default
is inserted.
- You can switch between the five note types by right-clicking on the note-box.
+ You can switch between the three note types by right-clicking on the note-box.
\family roman
\series medium
\begin_layout Standard
Footnotes can be inserted using the toolbar button
-\family sans
-
\begin_inset Info
type "icon"
arg "footnote-insert"
\end_inset
-
-\family default
or the menu
\family sans
Insert\SpecialChar \menuseparator
Footnote
\family default
.
-
-\family roman
-\series medium
-\bar no
-You'll see
-\family default
-\series default
-\bar default
- then the following footnote-box:
+ You will then see the following footnote-box:
\begin_inset Graphics
filename clipart/footnoteQt4.png
scale 80
position where the footnote box is placed.
The footnote text is placed at the bottom of the current page.
The footnote number is calculated by LaTeX; the numbers are consecutive.
- It depends on your document-class, whether the footnote number is reset
- for every chapter.
+ Whether the footnote number is reset for every chapter depends on your
+ document class.
\end_layout
\begin_layout Standard
Note
\family default
or the toolbar button
-\family sans
-
\begin_inset Info
type "icon"
arg "marginalnote-insert"
\end_inset
-
-\family default
.
A grey
\family roman
Box
\family default
or the toolbar button
-\family sans
-
\begin_inset Info
type "icon"
arg "box-insert Frameless"
\end_inset
-
-\family default
.
A grey box with the label
\family sans
\begin_layout Plain Layout
-\lang german
+\lang ngerman
Dies ist ein deutscher Text.
Dies ist ein deutscher Text.
Dies ist ein deutscher Text.
\begin_layout Plain Layout
-\lang german
+\lang ngerman
Dies ist eine deutsche Fußnote.
\end_layout
\end_inset
This is an English Text.
-
\end_layout
\end_inset
special "none"
height "1in"
height_special "totalheight"
-status collapsed
+status open
\begin_layout Plain Layout
This a text within a parbox.
\series bold
Note:
\series default
- Some DVI-viewers can't display rotated or scaled material.
+ Not all DVI-viewers are able to display rotated or scaled material.
\end_layout
\end_inset
\series bold
Note:
\series default
- Floats mustn't be inside a rotated or scaled box.
+ Floats are not allowed inside a rotated or scaled box.
\end_layout
\end_inset
status collapsed
\begin_layout Plain Layout
-Rotated material
-\end_layout
-
-\end_inset
-
-
-\begin_inset Index idx
-status collapsed
-
-\begin_layout Plain Layout
-Figures ! rotated
-\end_layout
-
-\end_inset
-
-
-\begin_inset Index idx
-status collapsed
-
-\begin_layout Plain Layout
-Table Customization ! Rotating
+Rotated Material
\end_layout
\end_inset
\end_inset
and table.
-\end_layout
-
-\begin_layout Subsection
-Scaled Boxes
\begin_inset Index idx
status collapsed
\begin_layout Plain Layout
-Boxes ! scaled
+Figures ! rotated
\end_layout
\end_inset
status collapsed
\begin_layout Plain Layout
-Scaled material
+Table Customization ! Rotating
\end_layout
\end_inset
+\end_layout
+
+\begin_layout Subsection
+Scaled Boxes
\begin_inset Index idx
status collapsed
\begin_layout Plain Layout
-Figures ! scaled
+Boxes ! scaled
\end_layout
\end_inset
status collapsed
\begin_layout Plain Layout
-Table Customization ! Scaling
+Scaled Material
\end_layout
\end_inset
\end_inset
+\begin_inset Index idx
+status collapsed
+
+\begin_layout Plain Layout
+Figures ! scaled
+\end_layout
+
+\end_inset
+
+
+\begin_inset Index idx
+status collapsed
+
+\begin_layout Plain Layout
+Table Customization ! Scaling
+\end_layout
+
+\end_inset
+
+
\end_layout
\begin_layout Standard
\begin_layout Plain Layout
LaTeX-packages ! wrapfig
-\begin_inset ERT
-status collapsed
-
-\begin_layout Plain Layout
-
-
-\backslash
-vspace{4mm}
-\end_layout
-
-\end_inset
-
-
\end_layout
\end_inset
Insert\SpecialChar \menuseparator
File
\family default
- you can insert external material to your document.
+ you can insert external material into your document.
This can be:
\end_layout
\end_layout
\begin_layout Standard
-The external material feature allows you to insert files in to your document
+The external material feature allows you to insert files into your document
without converting them to a format that can be read by the document output
format.
LyX takes care of the necessary conversions.
, and a master document connects them to print the full document or parts
of it.
- A child document inherits elements of its master, for example the LaTeX
+ A child document inherits elements from its master, for example the LaTeX
preamble, the bibliography, and labels for cross-references.
\end_layout
Include You can include LyX- and LaTeX-documents.
When you press the
\family sans
-Load
+Edit
\family default
button in the
\family sans
Child Document
\family default
- dialog, the included documents will be opened in LyX in a new file tab
- so that you can modify them.
+ dialog, the included document will be opened in LyX in a new file tab so
+ that you can modify it.
\begin_inset Newline newline
\end_inset
\end_inset
+\change_inserted -195340706 1334604968
+.
+ A list of listings which contains all listings with captions can be created
+ via the
+\family sans
+Insert\SpecialChar \menuseparator
+List
+\begin_inset space ~
+\end_inset
+
+/
+\begin_inset space ~
+\end_inset
+
+TOC\SpecialChar \menuseparator
+List of Listings
+\family default
+ submenu.
+ The list entries are the listing caption and the listing number.
+\change_unchanged
+
\end_layout
\begin_layout Standard
\family sans
View
\family default
- menu or by using the toolbar button
-\begin_inset Graphics
- filename ../images/buffer-view_ps.png
- scale 85
- scaleBeforeRotation
-
-\end_inset
-
-.
+ menu.
\end_layout
\begin_layout Section
\family sans
View
\family default
- menu or by using the toolbar button
-\begin_inset Graphics
- filename ../images/buffer-view_pdf2.png
- scale 85
- scaleBeforeRotation
-
-\end_inset
-
-
-\family sans
-(
-\family default
-that uses
-\family sans
-PDF
-\begin_inset space ~
-\end_inset
-
-(pdflatex)
-\family default
-).
+ menu or by using a toolbar button.
\end_layout
\begin_layout Chapter