Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

\cellcolor and tabu #13

Open
skokoska opened this issue Feb 18, 2019 · 1 comment
Open

\cellcolor and tabu #13

skokoska opened this issue Feb 18, 2019 · 1 comment
Labels
bug Something isn't working duplicate This issue or pull request already exists

Comments

@skokoska
Copy link

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}

image

@u-fischer
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working duplicate This issue or pull request already exists
Projects
None yet
Development

No branches or pull requests

3 participants