0

I'm trying to colorize lines in a longtable, which is working except it is colorizing also the caption, like this -

\documentclass[a4paper,12pt]{report}
\usepackage[table,hyperref,dvipsnames]{xcolor}

\rowcolors{2}{green!25}{} 
\begin{longtable}{| p{.3\textwidth}| p{.7\textwidth}|}
\hline
cell one & cell two \\ \hline
cell three & cell four \\ \hline
cell five & cell six \\ \hline
cell seven & cell eight \\
\hline
\caption{Just a test table}
\end{longtable}

This always colorizes the caption line if there is an odd number of lines. This is in emacs 24.5.50.1, and utilising auctex in debian 8.

How can I get it so that the caption is always uncolored please?

boudiccas
  • 319

0 Answers0