Am Donnerstag, 25. November 2004 16:49 schrieb RENARD Francois 144138:
> Hello,
>
> Does somebody know how to color a line of a table in LYX ?
>
> Thank you,
> Fran�ois
you need the colortbl  latex package

so write in the preamble

\usepackage{colortbl}
\setlength{\minrowclearance}{1pt}

and define the colors in the preamble  example

%Farben f�r die Tabellen Oberpunkt+Zeile1 + Zeile2+
\definecolor{rowcol0}{cmyk}{0.0,0.12,0.03,0.0}
\definecolor{rowcol1}{cmyk}{0.05,0.01,0,0.0}
\definecolor{rowcol2}{cmyk}{0.1,0.02,0.0,0.0}
\definecolor{rowcol3}{cmyk}{0.2,0.04,0.0,0.0}
%f�r zwei Oberbegriffe hintereinander
\definecolor{rowcol0a}{cmyk}{0.0,0.2,0.04,0.0}

then you need 0 pt column at the beginning to insert the necesseary ERT

an example table is annexed.
-- 
Dr. Joachim Heidemeier                  Tel. +49-30-8903-2780 
Fachgebiet II 2.2                       [EMAIL PROTECTED] 
Umweltbundesamt, Bismarckplatz 1 D-14191 Berlin


#LyX 1.3 created this file. For more info see http://www.lyx.org/
\lyxformat 221
\textclass scrbook
\begin_preamble
\input{preamble-inc}
\end_preamble
\options tablecaptionabove
\language ngerman
\inputencoding latin1
\fontscheme default
\graphics dvips
\float_placement htb
\paperfontsize 10
\spacing single 
\papersize a4paper
\paperpackage a4
\use_geometry 1
\use_amsmath 0
\use_natbib 1
\use_numerical_citations 0
\paperorientation portrait
\secnumdepth 4
\tocdepth 4
\paragraph_separation indent
\defskip medskip
\quotes_language german
\quotes_times 2
\papercolumns 1
\papersides 1
\paperpagestyle default

\layout Standard


\begin_inset Float table
wide false
collapsed false

\layout Caption

Biologische Qualit�tskomponenten
\layout Standard
\align center 

\begin_inset  Tabular
<lyxtabular version="3" rows="7" columns="6">
<features>
<column alignment="left" valignment="top" width="0" special="v{3.8cm}">
<column alignment="left" valignment="top" width="0cm" special="v{3cm}">
<column alignment="left" valignment="top" width="0" special="c">
<column alignment="left" valignment="top" width="0" special="c">
<column alignment="left" valignment="top" width="0" special="c">
<column alignment="left" valignment="top" width="0" special="c">
<row>
<cell multicolumn="1" alignment="left" valignment="top" topline="true" bottomline="true" usebox="none" special="V{3.8cm}">
\begin_inset Text

\layout Standard


\begin_inset ERT
status Collapsed

\layout Standard

\backslash 
savefn
\end_inset 

 Qualit�tskomponente
\end_inset 
</cell>
<cell multicolumn="1" alignment="left" valignment="top" topline="true" bottomline="true" usebox="none" special="V{3cm}">
\begin_inset Text

\layout Standard

Teilkomponente
\end_inset 
</cell>
<cell multicolumn="1" alignment="left" valignment="top" topline="true" bottomline="true" usebox="none" special="V{1.2cm}">
\begin_inset Text

\layout Standard

Fl�sse
\end_inset 
</cell>
<cell multicolumn="1" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none" special="Z">
\begin_inset Text

\layout Standard

Seen
\end_inset 
</cell>
<cell multicolumn="1" alignment="left" valignment="top" topline="true" bottomline="true" usebox="none" special="V{1.5cm}">
\begin_inset Text

\layout Standard

�bergangsgew�sser
\end_inset 
</cell>
<cell multicolumn="1" alignment="left" valignment="top" topline="true" bottomline="true" usebox="none" special="V{1.3cm}">
\begin_inset Text

\layout Standard

K�stengew�sser
\end_inset 
</cell>
</row>
<row>
<cell alignment="left" valignment="top" usebox="none">
\begin_inset Text

\layout Standard

Gew�sserflora
\end_inset 
</cell>
<cell alignment="left" valignment="top" usebox="none">
\begin_inset Text

\layout Standard

\end_inset 
</cell>
<cell alignment="left" valignment="top" usebox="none">
\begin_inset Text

\layout Standard

\end_inset 
</cell>
<cell alignment="left" valignment="top" usebox="none">
\begin_inset Text

\layout Standard

\end_inset 
</cell>
<cell alignment="left" valignment="top" usebox="none">
\begin_inset Text

\layout Standard

\end_inset 
</cell>
<cell alignment="left" valignment="top" usebox="none">
\begin_inset Text

\layout Standard

\end_inset 
</cell>
</row>
<row>
<cell alignment="left" valignment="top" usebox="none">
\begin_inset Text

\layout Standard

\end_inset 
</cell>
<cell alignment="left" valignment="top" usebox="none">
\begin_inset Text

\layout Standard

Phytoplankton
\end_inset 
</cell>
<cell alignment="left" valignment="top" usebox="none">
\begin_inset Text

\layout Standard


\begin_inset Formula $\bullet$
\end_inset 


\begin_inset ERT
status Open

\layout Standard

\backslash 
footnotemark
\end_inset 


\end_inset 
</cell>
<cell alignment="left" valignment="top" usebox="none">
\begin_inset Text

\layout Standard


\begin_inset Formula $\bullet$
\end_inset 


\end_inset 
</cell>
<cell alignment="left" valignment="top" usebox="none">
\begin_inset Text

\layout Standard


\begin_inset Formula $\bullet$
\end_inset 


\end_inset 
</cell>
<cell alignment="left" valignment="top" usebox="none">
\begin_inset Text

\layout Standard


\begin_inset Formula $\bullet$
\end_inset 


\end_inset 
</cell>
</row>
<row>
<cell alignment="left" valignment="top" usebox="none">
\begin_inset Text

\layout Standard

\end_inset 
</cell>
<cell alignment="left" valignment="top" usebox="none">
\begin_inset Text

\layout Standard

Gro�algen oder Angiospermen
\end_inset 
</cell>
<cell alignment="left" valignment="top" usebox="none">
\begin_inset Text

\layout Standard

\end_inset 
</cell>
<cell alignment="left" valignment="top" usebox="none">
\begin_inset Text

\layout Standard

\end_inset 
</cell>
<cell alignment="left" valignment="top" usebox="none">
\begin_inset Text

\layout Standard


\begin_inset Formula $\bullet$
\end_inset 


\begin_inset ERT
status Open

\layout Standard

\backslash 
footnotemark
\end_inset 


\end_inset 
</cell>
<cell alignment="left" valignment="top" usebox="none">
\begin_inset Text

\layout Standard


\begin_inset Formula $\bullet$
\end_inset 


\begin_inset ERT
status Open

\layout Standard

\backslash 
samefnmark{-1}
\end_inset 


\end_inset 
</cell>
</row>
<row>
<cell alignment="left" valignment="top" usebox="none">
\begin_inset Text

\layout Standard

\end_inset 
</cell>
<cell alignment="left" valignment="top" usebox="none">
\begin_inset Text

\layout Standard

Makrophyten, Phytobenthos
\end_inset 
</cell>
<cell alignment="left" valignment="top" usebox="none">
\begin_inset Text

\layout Standard


\begin_inset Formula $\bullet$
\end_inset 


\begin_inset ERT
status Open

\layout Standard

\backslash 
samefnmark{-2}
\end_inset 


\end_inset 
</cell>
<cell alignment="left" valignment="top" usebox="none">
\begin_inset Text

\layout Standard


\begin_inset Formula $\bullet$
\end_inset 


\end_inset 
</cell>
<cell alignment="left" valignment="top" usebox="none">
\begin_inset Text

\layout Standard


\begin_inset Formula $\bullet$
\end_inset 


\begin_inset ERT
status Open

\layout Standard

\backslash 
samefnmark{-1}
\end_inset 


\end_inset 
</cell>
<cell alignment="left" valignment="top" usebox="none">
\begin_inset Text

\layout Standard


\begin_inset Formula $\bullet$
\end_inset 


\begin_inset ERT
status Open

\layout Standard

\backslash 
samefnmark{-1}
\end_inset 


\end_inset 
</cell>
</row>
<row>
<cell alignment="left" valignment="top" usebox="none">
\begin_inset Text

\layout Standard

benthische wir\SpecialChar \-
bel\SpecialChar \-
lose Fauna
\end_inset 
</cell>
<cell alignment="left" valignment="top" usebox="none">
\begin_inset Text

\layout Standard

Makrozoobenthos
\end_inset 
</cell>
<cell alignment="left" valignment="top" usebox="none">
\begin_inset Text

\layout Standard


\begin_inset Formula $\bullet$
\end_inset 


\end_inset 
</cell>
<cell alignment="left" valignment="top" usebox="none">
\begin_inset Text

\layout Standard


\begin_inset Formula $\bullet$
\end_inset 


\end_inset 
</cell>
<cell alignment="left" valignment="top" usebox="none">
\begin_inset Text

\layout Standard


\begin_inset Formula $\bullet$
\end_inset 


\end_inset 
</cell>
<cell alignment="left" valignment="top" usebox="none">
\begin_inset Text

\layout Standard


\begin_inset Formula $\bullet$
\end_inset 


\end_inset 
</cell>
</row>
<row bottomline="true">
<cell alignment="left" valignment="top" usebox="none">
\begin_inset Text

\layout Standard

Fischfauna
\end_inset 
</cell>
<cell alignment="left" valignment="top" usebox="none">
\begin_inset Text

\layout Standard

\end_inset 
</cell>
<cell alignment="left" valignment="top" usebox="none">
\begin_inset Text

\layout Standard


\begin_inset Formula $\bullet$
\end_inset 


\end_inset 
</cell>
<cell alignment="left" valignment="top" usebox="none">
\begin_inset Text

\layout Standard


\begin_inset Formula $\bullet$
\end_inset 


\end_inset 
</cell>
<cell alignment="left" valignment="top" usebox="none">
\begin_inset Text

\layout Standard


\begin_inset Formula $\bullet$
\end_inset 


\end_inset 
</cell>
<cell alignment="left" valignment="top" usebox="none">
\begin_inset Text

\layout Standard

\end_inset 
</cell>
</row>
</lyxtabular>

\end_inset 


\layout Standard


\begin_inset ERT
status Open

\layout Standard

\backslash 
addtocounter{footnote}{-2}
\layout Standard

\backslash 
myFootnote{Bei planktondominierten Gew�ssern ist Phytoplankton zu bestimmen, bei nicht planktondominierten Gew�ssern sind Makrophyten bzw. Phytobenthos zu bestimmen}
\layout Standard

\backslash 
myFootnote{Zus�tzlich zu Phytoplankton ist die jeweils geeignete Teilkomponente zu bestimmen}
\layout Standard

\backslash 
restorefn
\end_inset 


\end_inset 


\the_end
 % standard includedatei
%pdf-if
\newif\ifpdf
\ifx\pdfoutput\undefined
 \pdffalse 
\else
 \pdfoutput=1
 \pdftrue
\fi
%\usepackage[hang]{caption2}

\usepackage{float}
\usepackage{bibentry}
\nobibliography*
\newcommand{\xbibentry}[1]{%
  \vspace{0.25ex}%
  \bibentry{#1}%
  \vspace{0.25ex}%
}
%
\usepackage{wrapfig}
\usepackage{calc}
\usepackage{tocloft}
\usepackage{array}
%\usepackage{raggedx}
\usepackage{dcolumn}
\usepackage{longtable}
%define columntypes for tables
% schrift Tabelle nomal, �berschriften Footnotesize
\newcolumntype{d}[1]{>{}D{,}{,}{#1}}
%\newcolumntype{e}[3]{>[EMAIL PROTECTED]<[EMAIL PROTECTED]
%\makeatletter

\newcolumntype{e}[3]{>[EMAIL PROTECTED]<[EMAIL PROTECTED]
\newcolumntype{E}[3]{>[EMAIL PROTECTED]<[EMAIL PROTECTED]
\newcolumntype{b}[1]{>{}E{,}{,}{#1}}
\newcolumntype{Z}{>{\footnotesize}c}
%\makeatother
\newcolumntype{f}{>{$}l<{$}}
\newcolumntype{F}{>{\footnotenotesize$}l<{$}}
\newcolumntype{n}{>{}l}
\newcolumntype{N}{>{\footnotesize}l}
\newcolumntype{v}[1]{>{\raggedright\hspace{0pt}}p{#1}}
\newcolumntype{V}[1]{>{\footnotesize\raggedright\hspace{0pt}}p{#1}}
\usepackage{units}
%externe referenzen, fuer Build die auskommentierte Version nehmen
\usepackage{xr}
%\externaldocument[K1-]{Kapitel1}
%\externaldocument[K2-]{Kapitel2}
%\externaldocument[K3-]{Kapitel3}
%\externaldocument[K4-]{Kapitel4}
%\externaldocument[K5-]{Kapitel5}
%\externaldocument[K6-]{Kapitel6}
%\externaldocument[K7-]{Kapitel7}
%\externaldocument[K8-]{Kapitel8}
%\externaldocument[K9-]{Kapitel8}
%\externaldocument[K10-]{Kapitel10}
\externaldocument{../../Kapitel-1/Texte/Kapitel1}
\externaldocument{../../Kapitel-2/Texte/Kapitel2}
\externaldocument{../../Kapitel-3/Texte/Kapitel3}
\externaldocument{../../Kapitel-4/Texte/Kapitel4}
\externaldocument{../../Kapitel-5/Texte/Kapitel5}
\externaldocument{../../Kapitel-6/Texte/Kapitel6}
\externaldocument{../../Kapitel-7/Texte/Kapitel7}
\externaldocument{../../Kapitel-8/Texte/Kapitel8}
\externaldocument{../../Kapitel-9/Texte/Kapitel8}
\externaldocument{../../Kapitel-10/Texte/Kapitel10}
%
\newcommand\myFootnote[1]{%
  \textsuperscript{\scriptsize\refstepcounter{footnote}\thefootnote}%
  \footnotesize #1\normalsize%
}
% local footnoteroutines for tables
\newcounter{fnback}
%savecounter for footnote save and restore
\newcommand{\savefn}{%
  \setcounter{fnback}{\value{footnote}}%
  \setcounter{footnote}{0}%
}
\newcommand{\restorefn}{%
  \setcounter{footnote}{\value{fnback}}%
}
%set same footnote as refered to by argument
% e.g. -1 for the last
% restores footnote afterwards
\newcounter{fnxx}
\newcommand{\samefnmark}[1]{%
  \setcounter{fnxx}{\value{footnote}}%
  \addtocounter{footnote}{#1}%
  \footnotemark%
  \setcounter{footnote}{\value{fnxx}}%
} 
\addtolength{\cfttabnumwidth}{2em}
%\setlength{\captionmargin}{10pt}
%\setlength{\belowcaptionskip}{5pt}
\addtokomafont{caption}{\small}
\usepackage{babel}
\usepackage{color}
\definecolor{lblue}{rgb}{0.72,0.79,0.94}
\definecolor{ocker}{rgb}{0.97,0.82,0.56}
% Boxes
\newfloat {floatBox}{htb}{mp}
%    \newenvironment{myBox} {%
%      \noindent%
%     [EMAIL PROTECTED]      
%      \begin{minipage}[t]{0.5\columnwidth}%
%       \vspace{0.5ex}% 
%    }{%
%    \end{minipage}%
%    \end{lrbox}%      
%    [EMAIL PROTECTED]
%      \vspace{0.5ex}%
%    }
   \newenvironment{myFloatBox}{%
      \begin{floatBox}%
      \begin{myBox}%
   }{%
      \end{myBox}%
       \end{floatBox}
     }   
    \newenvironment{myWrapBox}{%
      \begin{wrapfloat}{floatBox}{O}[1.5cm]{0.55\columnwidth}%
      \begin{myBox}%
   }{%
      \end{myBox}%
       \end{wrapfloat}
     }   

\ifpdf

\usepackage[pdftex,colorlinks=true,linkcolor=lblue,pagebackref]{hyperref}
\fi
%\usepackage{lucidaso}
\showcols
%%% Local Variables: 
%%% mode: latex
%%% TeX-master: t
%%% End: 

Reply via email to