7

There seems to have a compatibility issue between the colortbl and delarray packages because when compiling the following code :

\documentclass{article}
\usepackage[T1]{fontenc}
\usepackage[ansinew]{inputenc}
\usepackage{delarray,colortbl}
\begin{document}
$\begin{array}({ll})
a & b \\
c & d
\end{array}$
\end{document}

pdfLaTeX complain about a

missing \right. at \end{array}.

When I remove the colortbl package, then it works as normal. I've got old TeX sources with a lot of matrices defined with the help of delarray. I discovered this problem because I wanted to put some colors on these documents.

Is there a fix for that?

3
  • 1
    Welcome to TeX.SX! You can have a look at our starter guide to familiarize yourself further with our format. Aug 17, 2013 at 9:11
  • It's hard to get package authors to coordinate with each other.... Aug 17, 2013 at 10:48
  • I've got the same problem when playing tennis :-)
    – bertrand
    Aug 17, 2013 at 11:10

1 Answer 1

7

oops, sorry.

\documentclass{article}
\usepackage[T1]{fontenc}
\usepackage[ansinew]{inputenc}
\usepackage{delarray,colortbl}
\makeatletter
\def\endarray{\crcr \egroup  \egroup\@arrayright  \gdef\@preamble{}\CT@end}
\makeatother
\begin{document}
$\begin{array}({ll})
a & b \\
c & d
\end{array}$

\end{document}
1
  • 2
    wow I didn't expect a quick answer from the package's author himself ! Many thanks for your impressive work on LaTeX.
    – bertrand
    Aug 17, 2013 at 11:02

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .