You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am trying to use \cellcolor in a tabu environment. It works in a tabular environment, but not with tabu. Here is a minimal example. The two tables are not the same on my system. No error messages. No color in the tabu table.
What else do I need to use \cellcolor with tabu. Thanks.
It looks as if the fix ...set up old version of array package \@classz to avoid... and the definition of \tabu@classz@oldarray doesn't contain the color code from colortbl.
I am trying to use \cellcolor in a tabu environment. It works in a tabular environment, but not with tabu. Here is a minimal example. The two tables are not the same on my system. No error messages. No color in the tabu table.
What else do I need to use \cellcolor with tabu. Thanks.
\documentclass{book}
\usepackage{tabu}
\usepackage[table]{xcolor}
\usepackage{lmodern}
\usepackage[T1]{fontenc}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\begin{document}
This is a test of tabu and cellcolor.
\bigskip
\begin{tabu}[t]{| l | l | l |}
\hline
\rowcolor{cyan}1& 2& 3\
\hline
\cellcolor{yellow}4 & 5& 6\
\hline
7 & \cellcolor{blue}8 & \cellcolor{yellow}9\
\hline
10 & \cellcolor{blue}11 & 12 \
13 & \cellcolor{cyan}{14} & 15 \
16 & 17 & \cellcolor{green}18 \
\hline
\end{tabu}
\bigskip
This is a test using tabular.
\bigskip
\begin{tabular}[t]{| l | l | l |}
\hline
\rowcolor{cyan}1& 2& 3\
\hline
\cellcolor{yellow}4 & 5& 6\
\hline
7 & \cellcolor{blue}8 & \cellcolor{yellow}9\
10 & \cellcolor{blue}11 & 12 \
13 & \cellcolor{cyan}{14} & 15 \
16 & 17 & \cellcolor{green}18 \
\hline
\end{tabular}
\end{document}
The text was updated successfully, but these errors were encountered: