I tried to color the text of the headers of my tables. Sadly it doesn't work properly as soon as you use it with paragraph columns.
Below is my MWE presented. The header in the first table is as I want it to be. Unfortunately the table is too long, so I need a paragraph column for the right column. But when I use this, I get problems with the layout (see second table in picture).
Can anyone tell me, why this happens and/or how to correct it?
\documentclass{article}
\usepackage{array}
\usepackage{xcolor}
\makeatletter
\newcommand*{\@rowstyle}{}
\newcommand*{\rowstyle}[1]{% sets the style of the next row
\gdef\@rowstyle{#1}%
\@rowstyle\ignorespaces%
}
\newcolumntype{=}{% resets the row style
>{\gdef\@rowstyle{}}%
}
\newcolumntype{+}{% adds the current row style to the next column
>{\@rowstyle}%
}
\makeatother
\begin{document}
\begin{tabular}{=l +l}
\rowstyle{\color{red}}
Kategorie & Behandelte Frage(n) \\
\bfseries Usability & Ist das System einfach und intuitiv zu bedienen?\\
\bfseries Adaptability & Kann man das System an die eigenen Prozesse anpassen? Gibt es eigene Workflows und Felder?\\
\end{tabular}
\vspace{25pt}
\begin{tabular}{=l +p{9cm}}
\rowstyle{\color{red}}
Kategorie & Behandelte Frage(n) \\
\bfseries Usability & Ist das System einfach und intuitiv zu bedienen?\\
\bfseries Adaptability & Kann man das System an die eigenen Prozesse anpassen? Gibt es eigene Workflows und Felder?\\
\end{tabular}
\end{document}

