# Compatibility of bigdelim and rowcolors

\documentclass{standalone}

\usepackage{bigdelim}
\usepackage[table]{xcolor}

\begin{document}

\rowcolors{2}{green!25}{green!75}

\begin{tabular}{cccc}
\ldelim\{{3}{*}& 1 & 2 & 3 \\
& 4 & 5 & 6 \\
& 7 & 8 & 9 \\
\end{tabular}

\end{document}


gives

As you can see the row coloring covers the bigdelim which I think should not happen.

Is there a possibility to see the bigdelim when using rowcolors?

Related questions

Update

The very helpful answer from Zarko unfortunately does not work when removing the intercolumn space with

\begin{tabular}{c@{}ccc}


## 2 Answers

Try

\documentclass{standalone}

\usepackage{bigdelim}
\usepackage[table]{xcolor}

\begin{document}

\rowcolors{2}{green!25}{green!75}

\begin{tabular}{cccc}
& 1 & 2 & 3 \\
& 4 & 5 & 6 \\
\ldelim\{{-3}{*} & 7 & 8 & 9 \\
\end{tabular}

\end{document}


:-)

As you see, you need first to write table with color and on the end add (in last table row) big delimiter (which had to span rows before it, hence - at number of rows!

Addendum: While you are waiting for bug fix for bigdelim package, maybe you may use the following solution with use of the nicematrix package:

\documentclass[margin=3mm, varwidth]{standalone}
\usepackage{nicematrix}
\usetikzlibrary{decorations.pathreplacing,
calligraphy}
\tikzset{
B/.style = {decorate,
decoration={calligraphic brace, amplitude=4pt,
raise=1pt, mirror},% for mirroring of brace
thick,
pen colour=black},
F/.style args = {#1/#2}{fill=#1, blend mode = multiply,
inner sep=-\pgflinewidth/2, fit=#2}
}

\begin{document}
$\setlength\arraycolsep{1pt} \begin{NiceArray}{R@{}CCC}% [create-large-nodes, code-after = {\begin{tikzpicture}[name suffix=-large] \draw[B] (1-2.north west) -- (3-2.south west); \node [F=green!25/(2-1) (2-4)] {} ; \node [F=green!75/(3-1) (3-4)] {} ; \end{tikzpicture}} ] ~~ & 1 & 2 & 3 \\ ~~ & 4 & 5 & 6 \\ ~~ & 7 & 8 & 9 \\ \end{NiceArray}$
\end{document}


For correct result you need to compile above MWE at least twice.

• Yes, that is an easy solution. Thanks. – Hotschke Feb 26 '20 at 11:03
• Great suggestion.... – MadyYuvi Feb 26 '20 at 11:07
• Follow up question: it does not work anymore when I want to squeeze the intercolumn space with \begin{tabular}{c@{}ccc}. Do you happen to know what to do then? – Hotschke Feb 26 '20 at 15:39
• Unfortunately, \bigdelim doesn't work ' with colortbl (or [table]{xcolor}) well. This seems to be a bug (or missed features). Try to report it or contact package authors. – Zarko Feb 26 '20 at 16:25
• @Hotschke, my answer solve your original question ... It is not my fault, if packages has bugs and not help you at your follow-up question in comment. It will be fer from you, that about this you ask new question, that some other can help you and this question consider as solved. – Zarko Feb 27 '20 at 16:01

I finally found out this is a problem with the colortbl package, as it extends its color into the first column (it assumes that there is the normal intercolumn space, which it fills with the color to prevent gaps between the columns. This is called the overhang. It can be changed with \columncolor{white}[0pt][\tabcolsep]. So this gives the solution

\documentclass{standalone}

\usepackage{bigdelim}
\usepackage[table]{xcolor}
\begin{document}

\rowcolors{2}{green!25}{green!75}

\begin{tabular}{c@{}>{\columncolor{white}[0pt][\tabcolsep]}ccc}
& 1 & 2 & 3 \\
& 4 & 5 & 6 \\
\ldelim\{{-3}{*} & 7 & 8 & 9 \\
\end{tabular}

\end{document}