diff --git a/lib/doc/EmbeddedObjects.lyx b/lib/doc/EmbeddedObjects.lyx index 0a66065dac..b2ece19589 100644 --- a/lib/doc/EmbeddedObjects.lyx +++ b/lib/doc/EmbeddedObjects.lyx @@ -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 + + + + + + + +\begin_inset Text + +\begin_layout Plain Layout +X +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +Y +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +Z +\end_layout + +\end_inset + + + + +\begin_inset Text + +\begin_layout Plain Layout +1 +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +2 +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +3 +\end_layout + +\end_inset + + + + +\begin_inset Text + +\begin_layout Plain Layout +4 +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +5 +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +6 +\end_layout + +\end_inset + + + + +\begin_inset Text + +\begin_layout Plain Layout +7 +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +8 +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +9 +\end_layout + +\end_inset + + + + +\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 + + + + + + + +\begin_inset Text + +\begin_layout Plain Layout +X +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +Y +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +Z +\end_layout + +\end_inset + + + + +\begin_inset Text + +\begin_layout Plain Layout +1 +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +2 +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +3 +\end_layout + +\end_inset + + + + +\begin_inset Text + +\begin_layout Plain Layout +4 +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +5 +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +6 +\end_layout + +\end_inset + + + + +\begin_inset Text + +\begin_layout Plain Layout +7 +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +8 +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +9 +\end_layout + +\end_inset + + + + +\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 diff --git a/lib/doc/de/EmbeddedObjects.lyx b/lib/doc/de/EmbeddedObjects.lyx index 49290684da..fd0431ac4f 100644 --- a/lib/doc/de/EmbeddedObjects.lyx +++ b/lib/doc/de/EmbeddedObjects.lyx @@ -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 + + + + + + + +\begin_inset Text + +\begin_layout Plain Layout +X +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +Y +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +Z +\end_layout + +\end_inset + + + + +\begin_inset Text + +\begin_layout Plain Layout +1 +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +2 +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +3 +\end_layout + +\end_inset + + + + +\begin_inset Text + +\begin_layout Plain Layout +4 +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +5 +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +6 +\end_layout + +\end_inset + + + + +\begin_inset Text + +\begin_layout Plain Layout +7 +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +8 +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +9 +\end_layout + +\end_inset + + + + +\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 + + + + + + + +\begin_inset Text + +\begin_layout Plain Layout +X +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +Y +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +Z +\end_layout + +\end_inset + + + + +\begin_inset Text + +\begin_layout Plain Layout +1 +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +2 +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +3 +\end_layout + +\end_inset + + + + +\begin_inset Text + +\begin_layout Plain Layout +4 +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +5 +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +6 +\end_layout + +\end_inset + + + + +\begin_inset Text + +\begin_layout Plain Layout +7 +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +8 +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +9 +\end_layout + +\end_inset + + + + +\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 diff --git a/lib/doc/es/EmbeddedObjects.lyx b/lib/doc/es/EmbeddedObjects.lyx index 73bb480a31..86ae0842da 100644 --- a/lib/doc/es/EmbeddedObjects.lyx +++ b/lib/doc/es/EmbeddedObjects.lyx @@ -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 + + + + + + + +\begin_inset Text + +\begin_layout Plain Layout +X +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +Y +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +Z +\end_layout + +\end_inset + + + + +\begin_inset Text + +\begin_layout Plain Layout +1 +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +2 +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +3 +\end_layout + +\end_inset + + + + +\begin_inset Text + +\begin_layout Plain Layout +4 +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +5 +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +6 +\end_layout + +\end_inset + + + + +\begin_inset Text + +\begin_layout Plain Layout +7 +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +8 +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +9 +\end_layout + +\end_inset + + + + +\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 + + + + + + + +\begin_inset Text + +\begin_layout Plain Layout +X +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +Y +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +Z +\end_layout + +\end_inset + + + + +\begin_inset Text + +\begin_layout Plain Layout +1 +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +2 +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +3 +\end_layout + +\end_inset + + + + +\begin_inset Text + +\begin_layout Plain Layout +4 +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +5 +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +6 +\end_layout + +\end_inset + + + + +\begin_inset Text + +\begin_layout Plain Layout +7 +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +8 +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +9 +\end_layout + +\end_inset + + + + +\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 diff --git a/lib/doc/fr/EmbeddedObjects.lyx b/lib/doc/fr/EmbeddedObjects.lyx index 32d152fe01..fcc81a1025 100644 --- a/lib/doc/fr/EmbeddedObjects.lyx +++ b/lib/doc/fr/EmbeddedObjects.lyx @@ -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 + + + + + + + +\begin_inset Text + +\begin_layout Plain Layout +X +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +Y +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +Z +\end_layout + +\end_inset + + + + +\begin_inset Text + +\begin_layout Plain Layout +1 +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +2 +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +3 +\end_layout + +\end_inset + + + + +\begin_inset Text + +\begin_layout Plain Layout +4 +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +5 +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +6 +\end_layout + +\end_inset + + + + +\begin_inset Text + +\begin_layout Plain Layout +7 +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +8 +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +9 +\end_layout + +\end_inset + + + + +\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 + + + + + + + +\begin_inset Text + +\begin_layout Plain Layout +X +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +Y +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +Z +\end_layout + +\end_inset + + + + +\begin_inset Text + +\begin_layout Plain Layout +1 +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +2 +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +3 +\end_layout + +\end_inset + + + + +\begin_inset Text + +\begin_layout Plain Layout +4 +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +5 +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +6 +\end_layout + +\end_inset + + + + +\begin_inset Text + +\begin_layout Plain Layout +7 +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +8 +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +9 +\end_layout + +\end_inset + + + + +\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 diff --git a/lib/doc/ja/EmbeddedObjects.lyx b/lib/doc/ja/EmbeddedObjects.lyx index 7dbed9fcdf..6008f7eb83 100644 --- a/lib/doc/ja/EmbeddedObjects.lyx +++ b/lib/doc/ja/EmbeddedObjects.lyx @@ -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 + + + + + + + +\begin_inset Text + +\begin_layout Plain Layout +X +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +Y +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +Z +\end_layout + +\end_inset + + + + +\begin_inset Text + +\begin_layout Plain Layout +1 +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +2 +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +3 +\end_layout + +\end_inset + + + + +\begin_inset Text + +\begin_layout Plain Layout +4 +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +5 +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +6 +\end_layout + +\end_inset + + + + +\begin_inset Text + +\begin_layout Plain Layout +7 +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +8 +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +9 +\end_layout + +\end_inset + + + + +\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 + + + + + + + +\begin_inset Text + +\begin_layout Plain Layout +X +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +Y +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +Z +\end_layout + +\end_inset + + + + +\begin_inset Text + +\begin_layout Plain Layout +1 +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +2 +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +3 +\end_layout + +\end_inset + + + + +\begin_inset Text + +\begin_layout Plain Layout +4 +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +5 +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +6 +\end_layout + +\end_inset + + + + +\begin_inset Text + +\begin_layout Plain Layout +7 +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +8 +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +9 +\end_layout + +\end_inset + + + + +\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