Skip to content

\cellcolor in tabular inside tabular #2797

@tp971

Description

@tp971

When using \cellcolor in a tabular that is inside another tabular, it colors the outer instead of the inner cell:

\documentclass{article}

\usepackage{colortbl}

\begin{document}

\begin{tabular}{ccc}
a & b & c \\
d & \begin{tabular}{ccc}
    e & e & e \\
    e & \cellcolor{red}e & e \\
    e & e & e
\end{tabular} & f \\
g & h & i
\end{tabular}

\end{document}

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions