2

I use the easytable package to make isometric tables. This package provide the TAB (with caps) environment to make tables.

In the same time I use the xcolor package with table option to colorize cells.

The \cellcolor command provided by the table option of xcolor work correctly inside a tabular environment or other table environments except with the TAB environment.

As you can see in the following MWE, \cellcolor colorize the cell in the cell in tabular environment but not the one in TAB environment:

\documentclass{article}
\usepackage[thinlines]{easytable}
\usepackage[table]{xcolor}


\begin{document}

\begin{TAB}(e,0.4cm,0.4cm){|c|}{|c:c:c:c|}
  T \cellcolor{blue!25} \\
  ~ \\
  ~ \\
  ~ \\
\end{TAB}


\begin{tabular}{l|c|r}
  \hline
  Some & \cellcolor{blue!25}coloured & contents \\
  \hline
\end{tabular}
\end{document}

And this is his rendering: enter image description here

So, how can I force coloration of a cell in TAB environment (with xcolor or other solution, it doesn’t matter)?

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.