1

When using \rowcolors to alternate row coloring, some vertical lines are missing in the restulting table.

\documentclass{scrreprt}
\usepackage[table]{xcolor}

\begin{document}
\begin{table}
\rowcolors{2}{gray!25}{white}
\begin{tabular}{l|ccc|cc|ccc|}
           & A & B & C & D & E & F & G & H \\\hline   
Verfahren  & p & a & p & a & a & a & a & a \\
Verfahren  & p & a & p & a & a & a & a & a \\
Verfahren  & p & a & p & a & a & a & a & a \\
Verfahren  & p & a & p & a & a & a & a & a \\
\end{tabular}
\end{table}

\end{document}

Result

If I manually insert \rowcolor{gray!25} for every other row, the lines are correct for the "white" rows (since they are not explicitly set to to white as in the \rowcolors case)

Am I missing something?

David Carlisle
  • 757,742

0 Answers0