EmbeddedObjects.lyx: description how to color every second table row

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@40854 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Uwe Stöhr 2012-03-04 23:51:57 +00:00
parent b2a03f4e67
commit d43406f035
5 changed files with 3438 additions and 53 deletions

View File

@ -81,6 +81,9 @@
\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}}{}
@ -17752,6 +17755,676 @@ fi
\end_inset
\end_layout
\begin_layout Subsection
Colored Rows
\begin_inset Index idx
status collapsed
\begin_layout Plain Layout
Table Color ! for Rows
\end_layout
\end_inset
\begin_inset Index idx
status collapsed
\begin_layout Plain Layout
Color ! for Table Rows
\end_layout
\end_inset
\end_layout
\begin_layout Standard
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
\end_layout
\end_inset
in the document preamble with the command
\end_layout
\begin_layout Standard
\series bold
\backslash
usepackage[table]{xcolor}
\end_layout
\begin_layout Standard
\series bold
xcolor
\series default
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
, 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
\begin_layout Plain Layout
\backslash
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
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
leads to the coloring scheme of Table
\begin_inset space ~
\end_inset
\begin_inset CommandInset ref
LatexCommand ref
reference "tab:Table-rowcolors"
\end_inset
.
The command
\end_layout
\begin_layout Standard
\series bold
\backslash
rowcolors[
\backslash
hline]{1}{lightgray}{cyan}
\end_layout
\begin_layout Standard
leads to the coloring scheme of Table
\begin_inset space ~
\end_inset
\begin_inset CommandInset ref
LatexCommand ref
reference "tab:Table-rowcolors-2"
\end_inset
.
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
\backslash
rowcolors{1}{}{}
\end_layout
\begin_layout Standard
deletes all colors.
\series bold
\backslash
rowcolors
\series default
affects all tables following that command.
\end_layout
\begin_layout Standard
\begin_inset ERT
status open
\begin_layout Plain Layout
\backslash
rowcolors{1}{white}{lightgray}
\end_layout
\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 Caption
\begin_layout Plain Layout
\begin_inset CommandInset label
LatexCommand label
name "tab:Table-rowcolors"
\end_inset
Table where every second row is colored light gray.
\end_layout
\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="0pt">
<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
\begin_layout Plain Layout
Y
\end_layout
\end_inset
</cell>
<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" usebox="none">
\begin_inset Text
\begin_layout Plain Layout
1
\end_layout
\end_inset
</cell>
<cell alignment="center" valignment="top" usebox="none">
\begin_inset Text
\begin_layout Plain Layout
2
\end_layout
\end_inset
</cell>
<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" 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>
</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 open
\begin_layout Plain Layout
\backslash
rowcolors[
\backslash
hline]{1}{lightgray}{cyan}
\end_layout
\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 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
\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
\begin_layout Plain Layout
Y
\end_layout
\end_inset
</cell>
<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" usebox="none">
\begin_inset Text
\begin_layout Plain Layout
1
\end_layout
\end_inset
</cell>
<cell alignment="center" valignment="top" usebox="none">
\begin_inset Text
\begin_layout Plain Layout
2
\end_layout
\end_inset
</cell>
<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" 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>
</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
@ -35489,19 +36162,6 @@ status collapsed
\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

View File

@ -79,6 +79,9 @@
\setboolean{colortbl}{true}}
{\setboolean{colortbl}{false}}
% wird bei farbigen Tabellenzeilen benutzt
\usepackage[table]{xcolor}
% wird benutzt, um Tabellenzellen zu vergrößern
\@ifundefined{extrarowheight}
{\usepackage{array}}{}
@ -17915,6 +17918,647 @@ fi
\end_inset
\end_layout
\begin_layout Subsection
Farbige Zeilen
\begin_inset Index idx
status collapsed
\begin_layout Plain Layout
farbige ! Tabellenzeilen
\end_layout
\end_inset
\end_layout
\begin_layout Standard
Für den Fall dass jede zweite Tabellenzeile gefärbt werden soll, gibt es
eine Alternative zur im vorhergehenden Abschnitt beschriebenen Methode:
Man lädt das LaTeX-Paket
\series bold
xcolor
\series default
\begin_inset Index idx
status collapsed
\begin_layout Plain Layout
LaTeX-Pakete ! xcolor
\begin_inset ERT
status collapsed
\begin_layout Plain Layout
\backslash
vspace{4mm}
\end_layout
\end_inset
\end_layout
\end_inset
im LaTeX-Vorspann mit dem Befehl
\end_layout
\begin_layout Standard
\series bold
\backslash
usepackage[table]{xcolor}
\end_layout
\begin_layout Standard
\series bold
xcolor
\series default
lädt automatisch auch das LaTeX-Paket
\series bold
colortbl
\series default
\begin_inset Index idx
status collapsed
\begin_layout Plain Layout
LaTeX-Pakete ! colortbl
\end_layout
\end_inset
, so dass
\series bold
colortbl
\series default
in Ihrer LaTeX-Distribution installiert sein muss, ansonsten bekommt man
LaTeX-Fehler.
\end_layout
\begin_layout Standard
\begin_inset ERT
status collapsed
\begin_layout Plain Layout
\backslash
ifcolortbl
\end_layout
\end_inset
\begin_inset Note Note
status open
\begin_layout Plain Layout
Der folgende Teil wird nur gedruckt, wenn das LaTeX-Paket
\series bold
colortbl
\series default
installiert ist.
\end_layout
\end_inset
\end_layout
\begin_layout Standard
Die Tabellenzeilen werden mit dem Befehl
\end_layout
\begin_layout Standard
\series bold
\backslash
rowcolors[Befehle]{Zeilennummer}{ungerade Zeilenfarbe}{gerade Zeilenfarbe}
\end_layout
\begin_layout Standard
eingefärbt, der entweder in den LaTeX-Vorspann oder als TeX-Code vor der
ersten zu färbenden Tabelle eingefügt wird.
Zeilennummer ist die Nummer der ersten Zeile, die entsprechend der ungeraden
Zeilenfarbe gefärbt werden soll.
Befehle können zusätzliche Befehle sein, die vor jeder Tabellenzeile ausgeführt
werden.
So führt zum Beispiel der Befehl
\end_layout
\begin_layout Standard
\series bold
\backslash
rowcolors{1}{white}{lightgray}
\end_layout
\begin_layout Standard
zum Farbschema von Tabelle
\begin_inset space ~
\end_inset
\begin_inset CommandInset ref
LatexCommand ref
reference "tab:Tabelle-rowcolors"
\end_inset
.
Der Befehl
\end_layout
\begin_layout Standard
\series bold
\backslash
rowcolors[
\backslash
hline]{1}{lightgray}{cyan}
\end_layout
\begin_layout Standard
führt zum Farbschema von Tabelle
\begin_inset space ~
\end_inset
\begin_inset CommandInset ref
LatexCommand ref
reference "tab:Tabelle-rowcolors-2"
\end_inset
.
Wenn ungerade Zeilenfarbe und/oder gerade Zeilenfarbe nicht angegeben werden,
wird keine Farbe verwendet, so dass der Befehl
\end_layout
\begin_layout Standard
\series bold
\backslash
rowcolors{1}{}{}
\end_layout
\begin_layout Standard
alle Farben löscht.
\series bold
\backslash
rowcolors
\series default
beeinflusst alle diesem Befehl folgenden Tabellen.
\end_layout
\begin_layout Standard
\begin_inset ERT
status open
\begin_layout Plain Layout
\backslash
rowcolors{1}{white}{lightgray}
\end_layout
\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 Caption
\begin_layout Plain Layout
\begin_inset CommandInset label
LatexCommand label
name "tab:Tabelle-rowcolors"
\end_inset
Tabelle bei der jede zweite Zeile grau gefärbt ist.
\end_layout
\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="0pt">
<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
\begin_layout Plain Layout
Y
\end_layout
\end_inset
</cell>
<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" usebox="none">
\begin_inset Text
\begin_layout Plain Layout
1
\end_layout
\end_inset
</cell>
<cell alignment="center" valignment="top" usebox="none">
\begin_inset Text
\begin_layout Plain Layout
2
\end_layout
\end_inset
</cell>
<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" 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>
</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 open
\begin_layout Plain Layout
\backslash
rowcolors[
\backslash
hline]{1}{lightgray}{cyan}
\end_layout
\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 Caption
\begin_layout Plain Layout
\begin_inset CommandInset label
LatexCommand label
name "tab:Tabelle-rowcolors-2"
\end_inset
Tabelle bei der jede zweite Zeile cyan gefärbt ist und bei der sich eine
Linie zwischen jeder Zeile befindet.
\end_layout
\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
\begin_layout Plain Layout
Y
\end_layout
\end_inset
</cell>
<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" usebox="none">
\begin_inset Text
\begin_layout Plain Layout
1
\end_layout
\end_inset
</cell>
<cell alignment="center" valignment="top" usebox="none">
\begin_inset Text
\begin_layout Plain Layout
2
\end_layout
\end_inset
</cell>
<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" 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>
</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
schaltet die Färbung aus
\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
Der folgende Teil wird gedruckt, wenn das LaTeX-Paket
\series bold
colortbl
\series default
nicht installiert ist:
\end_layout
\end_inset
\end_layout
\begin_layout Standard
Sie müssen das LaTeX-Paket
\series bold
colortbl
\series default
installiert haben um den Inhalt dieses Abschnitts zu sehen.
\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
@ -35550,19 +36194,6 @@ status collapsed
\begin_layout Plain Layout
LaTeX-Pakete ! wrapfig
\begin_inset ERT
status collapsed
\begin_layout Plain Layout
\backslash
vspace{4mm}
\end_layout
\end_inset
\end_layout
\end_inset

View File

@ -81,6 +81,9 @@
\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}}{}
@ -16965,7 +16968,7 @@ ifcolortbl
\begin_inset Note Note
status collapsed
status open
\begin_layout Plain Layout
La siguiente sección sólo se mostrará en pantalla si está instalado el paquete
@ -17548,6 +17551,711 @@ else
\end_inset
\begin_inset Note Note
status open
\begin_layout Plain Layout
Lo siguiente se mostrará en pantalla si no está instalado el paquete LaTeX
\series bold
colortbl
\series default
.
\end_layout
\end_inset
\end_layout
\begin_layout Standard
Debes instalar el paquete LaTeX
\series bold
colortbl
\series default
para ver la parte siguiente en la salida.
\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
\lang english
Colored Rows
\lang spanish
\begin_inset Index idx
status collapsed
\begin_layout Plain Layout
Cuadros ! Color !
\lang english
for Rows
\end_layout
\end_inset
\begin_inset Index idx
status collapsed
\begin_layout Plain Layout
Color !
\lang english
for Table Rows
\end_layout
\end_inset
\end_layout
\begin_layout Standard
\lang english
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
\lang spanish
\begin_inset Index idx
status collapsed
\begin_layout Plain Layout
LaTeX-paquetes ! xcolor
\begin_inset ERT
status collapsed
\begin_layout Plain Layout
\backslash
vspace{4mm}
\end_layout
\end_inset
\end_layout
\end_inset
\lang english
in the document preamble with the command
\end_layout
\begin_layout Standard
\series bold
\backslash
usepackage[table]{xcolor}
\end_layout
\begin_layout Standard
\series bold
\lang english
xcolor
\series default
automatically loads also the package
\series bold
colortbl
\series default
\lang spanish
\begin_inset Index idx
status collapsed
\begin_layout Plain Layout
LaTeX-paquetes ! colortbl
\end_layout
\end_inset
\lang english
, 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
\begin_layout Plain Layout
\backslash
ifcolortbl
\end_layout
\end_inset
\begin_inset Note Note
status open
\begin_layout Plain Layout
La siguiente sección sólo se mostrará en pantalla si está instalado el paquete
LaTeX
\series bold
colortbl
\series default
.
\end_layout
\end_inset
\end_layout
\begin_layout Standard
\lang english
The table rows are colored with the command
\end_layout
\begin_layout Standard
\series bold
\lang english
\backslash
rowcolors[commands]{row number}{odd row color}{even row color}
\end_layout
\begin_layout Standard
\lang english
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
\lang english
leads to the coloring scheme of Table
\begin_inset space ~
\end_inset
\begin_inset CommandInset ref
LatexCommand ref
reference "tab:Table-rowcolors"
\end_inset
.
The command
\end_layout
\begin_layout Standard
\series bold
\backslash
rowcolors[
\backslash
hline]{1}{lightgray}{cyan}
\end_layout
\begin_layout Standard
\lang english
leads to the coloring scheme of Table
\begin_inset space ~
\end_inset
\begin_inset CommandInset ref
LatexCommand ref
reference "tab:Table-rowcolors-2"
\end_inset
.
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
\backslash
rowcolors{1}{}{}
\end_layout
\begin_layout Standard
\lang english
deletes all colors.
\series bold
\backslash
rowcolors
\series default
affects all tables following that command.
\end_layout
\begin_layout Standard
\begin_inset ERT
status open
\begin_layout Plain Layout
\backslash
rowcolors{1}{white}{lightgray}
\end_layout
\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 Caption
\begin_layout Plain Layout
\lang english
\begin_inset CommandInset label
LatexCommand label
name "tab:Table-rowcolors"
\end_inset
Table where every second row is colored light gray.
\end_layout
\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="0pt">
<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
\begin_layout Plain Layout
Y
\end_layout
\end_inset
</cell>
<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" usebox="none">
\begin_inset Text
\begin_layout Plain Layout
1
\end_layout
\end_inset
</cell>
<cell alignment="center" valignment="top" usebox="none">
\begin_inset Text
\begin_layout Plain Layout
2
\end_layout
\end_inset
</cell>
<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" 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>
</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 open
\begin_layout Plain Layout
\backslash
rowcolors[
\backslash
hline]{1}{lightgray}{cyan}
\end_layout
\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 Caption
\begin_layout Plain Layout
\lang english
\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
\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
\begin_layout Plain Layout
Y
\end_layout
\end_inset
</cell>
<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" usebox="none">
\begin_inset Text
\begin_layout Plain Layout
1
\end_layout
\end_inset
</cell>
<cell alignment="center" valignment="top" usebox="none">
\begin_inset Text
\begin_layout Plain Layout
2
\end_layout
\end_inset
</cell>
<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" 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>
</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
\lang english
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 collapsed
@ -34965,19 +35673,6 @@ status collapsed
\begin_layout Plain Layout
LaTeX-paquetes ! wrapfig
\begin_inset ERT
status collapsed
\begin_layout Plain Layout
\backslash
vspace{4mm}
\end_layout
\end_inset
\end_layout
\end_inset

View File

@ -81,6 +81,9 @@
\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}}{}
@ -18144,6 +18147,711 @@ fi
\end_inset
\end_layout
\begin_layout Subsection
\lang english
Colored Rows
\lang french
\begin_inset Index idx
status collapsed
\begin_layout Plain Layout
Tableau Coloré ! pour
\lang english
Rows
\end_layout
\end_inset
\begin_inset Index idx
status collapsed
\begin_layout Plain Layout
Couleur ! Pour les
\lang english
Table Rows
\end_layout
\end_inset
\end_layout
\begin_layout Standard
\lang english
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
\lang french
\series bold
xcolor
\series default
\begin_inset Index idx
status collapsed
\begin_layout Plain Layout
Paquetages LaTeX ! xcolor
\begin_inset ERT
status collapsed
\begin_layout Plain Layout
\backslash
vspace{4mm}
\end_layout
\end_inset
\end_layout
\end_inset
\lang english
in the document preamble with the command
\end_layout
\begin_layout Standard
\series bold
\backslash
usepackage[table]{xcolor}
\end_layout
\begin_layout Standard
\series bold
\lang english
xcolor
\series default
automatically loads also the package
\lang french
\series bold
colortbl
\series default
\begin_inset Index idx
status collapsed
\begin_layout Plain Layout
Paquetages LaTeX ! colortbl
\end_layout
\end_inset
\lang english
, 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
\begin_layout Plain Layout
\backslash
ifcolortbl
\end_layout
\end_inset
\begin_inset Note Note
status open
\begin_layout Plain Layout
La section qui suit ne sera affichée que si vous avez installé le paquetage
LaTeX
\series bold
colortbl
\series default
.
\end_layout
\end_inset
\end_layout
\begin_layout Standard
\lang english
The table rows are colored with the command
\end_layout
\begin_layout Standard
\series bold
\lang english
\backslash
rowcolors[commands]{row number}{odd row color}{even row color}
\end_layout
\begin_layout Standard
\lang english
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
\lang english
leads to the coloring scheme of Table
\begin_inset space ~
\end_inset
\begin_inset CommandInset ref
LatexCommand ref
reference "tab:Table-rowcolors"
\end_inset
.
The command
\end_layout
\begin_layout Standard
\series bold
\backslash
rowcolors[
\backslash
hline]{1}{lightgray}{cyan}
\end_layout
\begin_layout Standard
\lang english
leads to the coloring scheme of Table
\begin_inset space ~
\end_inset
\begin_inset CommandInset ref
LatexCommand ref
reference "tab:Table-rowcolors-2"
\end_inset
.
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
\backslash
rowcolors{1}{}{}
\end_layout
\begin_layout Standard
\lang english
deletes all colors.
\series bold
\backslash
rowcolors
\series default
affects all tables following that command.
\end_layout
\begin_layout Standard
\begin_inset ERT
status open
\begin_layout Plain Layout
\backslash
rowcolors{1}{white}{lightgray}
\end_layout
\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 Caption
\begin_layout Plain Layout
\lang english
\begin_inset CommandInset label
LatexCommand label
name "tab:Table-rowcolors"
\end_inset
Table where every second row is colored light gray.
\end_layout
\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="0pt">
<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
\begin_layout Plain Layout
Y
\end_layout
\end_inset
</cell>
<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" usebox="none">
\begin_inset Text
\begin_layout Plain Layout
1
\end_layout
\end_inset
</cell>
<cell alignment="center" valignment="top" usebox="none">
\begin_inset Text
\begin_layout Plain Layout
2
\end_layout
\end_inset
</cell>
<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" 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>
</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 open
\begin_layout Plain Layout
\backslash
rowcolors[
\backslash
hline]{1}{lightgray}{cyan}
\end_layout
\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 Caption
\begin_layout Plain Layout
\lang english
\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
\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
\begin_layout Plain Layout
Y
\end_layout
\end_inset
</cell>
<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" usebox="none">
\begin_inset Text
\begin_layout Plain Layout
1
\end_layout
\end_inset
</cell>
<cell alignment="center" valignment="top" usebox="none">
\begin_inset Text
\begin_layout Plain Layout
2
\end_layout
\end_inset
</cell>
<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" 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>
</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
\lang english
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
Ce qui suit sera affiché si le paquetage
\series bold
colortbl
\series default
n'est pas installé :
\end_layout
\end_inset
\end_layout
\begin_layout Standard
Vous devez installer le paquetage
\series bold
colortbl
\series default
pour voir le contenu des cette section dans la sortie imprimée.
\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
@ -36343,19 +37051,6 @@ status collapsed
\begin_layout Plain Layout
Paquetages LaTeX ! wrapfig
\begin_inset ERT
status collapsed
\begin_layout Plain Layout
\backslash
vspace{4mm}
\end_layout
\end_inset
\end_layout
\end_inset

View File

@ -87,6 +87,9 @@
\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}}{}
@ -17113,6 +17116,707 @@ fi
\end_inset
\end_layout
\begin_layout Subsection
\lang english
Colored Rows
\begin_inset Index idx
status collapsed
\begin_layout Plain Layout
\lang english
Table Color ! for Rows
\end_layout
\end_inset
\begin_inset Index idx
status collapsed
\begin_layout Plain Layout
\lang english
Color ! for Table Rows
\end_layout
\end_inset
\end_layout
\begin_layout Standard
\lang english
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
\lang japanese
\begin_inset Index idx
status collapsed
\begin_layout Plain Layout
LaTeXぱっけーじ@LaTeXパッケージ ! xcolor
\begin_inset ERT
status collapsed
\begin_layout Plain Layout
\backslash
vspace{4mm}
\end_layout
\end_inset
\end_layout
\end_inset
\lang english
in the document preamble with the command
\end_layout
\begin_layout Standard
\series bold
\backslash
usepackage[table]{xcolor}
\end_layout
\begin_layout Standard
\series bold
\lang english
xcolor
\series default
automatically loads also the package
\series bold
colortbl
\series default
\lang japanese
\begin_inset Index idx
status collapsed
\begin_layout Plain Layout
LaTeXぱっけーじ@LaTeXパッケージ ! colortbl
\end_layout
\end_inset
\lang english
, 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
\begin_layout Plain Layout
\backslash
ifcolortbl
\end_layout
\end_inset
\begin_inset Note Note
status open
\begin_layout Plain Layout
本節の以下の部分は、LaTeXパッケージ
\series bold
colortbl
\series default
が導入済みのときのみ表示されます。
\end_layout
\end_inset
\end_layout
\begin_layout Standard
\lang english
The table rows are colored with the command
\end_layout
\begin_layout Standard
\series bold
\lang english
\backslash
rowcolors[commands]{row number}{odd row color}{even row color}
\end_layout
\begin_layout Standard
\lang english
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
\lang english
leads to the coloring scheme of Table
\begin_inset space ~
\end_inset
\begin_inset CommandInset ref
LatexCommand ref
reference "tab:Table-rowcolors"
\end_inset
.
The command
\end_layout
\begin_layout Standard
\series bold
\backslash
rowcolors[
\backslash
hline]{1}{lightgray}{cyan}
\end_layout
\begin_layout Standard
\lang english
leads to the coloring scheme of Table
\begin_inset space ~
\end_inset
\begin_inset CommandInset ref
LatexCommand ref
reference "tab:Table-rowcolors-2"
\end_inset
.
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
\backslash
rowcolors{1}{}{}
\end_layout
\begin_layout Standard
\lang english
deletes all colors.
\series bold
\backslash
rowcolors
\series default
affects all tables following that command.
\end_layout
\begin_layout Standard
\begin_inset ERT
status open
\begin_layout Plain Layout
\backslash
rowcolors{1}{white}{lightgray}
\end_layout
\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 Caption
\begin_layout Plain Layout
\lang english
\begin_inset CommandInset label
LatexCommand label
name "tab:Table-rowcolors"
\end_inset
Table where every second row is colored light gray.
\end_layout
\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="0pt">
<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
\begin_layout Plain Layout
Y
\end_layout
\end_inset
</cell>
<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" usebox="none">
\begin_inset Text
\begin_layout Plain Layout
1
\end_layout
\end_inset
</cell>
<cell alignment="center" valignment="top" usebox="none">
\begin_inset Text
\begin_layout Plain Layout
2
\end_layout
\end_inset
</cell>
<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" 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>
</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 open
\begin_layout Plain Layout
\backslash
rowcolors[
\backslash
hline]{1}{lightgray}{cyan}
\end_layout
\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 Caption
\begin_layout Plain Layout
\lang english
\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
\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
\begin_layout Plain Layout
Y
\end_layout
\end_inset
</cell>
<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" usebox="none">
\begin_inset Text
\begin_layout Plain Layout
1
\end_layout
\end_inset
</cell>
<cell alignment="center" valignment="top" usebox="none">
\begin_inset Text
\begin_layout Plain Layout
2
\end_layout
\end_inset
</cell>
<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" 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>
</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
\lang english
turn 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
以下は、LaTeXパッケージ
\series bold
colortbl
\series default
が導入されていないときに表示されます。
\end_layout
\end_inset
\end_layout
\begin_layout Standard
この節の内容を出力で表示させるには、
\series bold
colortbl
\series default
パッケージを導入する必要があります。
\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