GeneralCommand conflicts between "multicolumn" and "rowcolor"

LaTeX specific issues not fitting into one of the other forums of this category.
Post Reply
workerbee
Posts: 43
Joined: Sat Nov 22, 2008 1:53 am

Command conflicts between "multicolumn" and "rowcolor"

Post by workerbee »

I was wondering if anyone knew how to shade a row in a table that uses the \multicolumn command. For instance:

...
\begin{tabular}[H]{ m{2cm} p{9.8cm} ...
\rowcolor[gray]{0.9}\color{black}\multicolumn{2}{l}{MODEL INDIRECT:}
...

I've found that when these commands are alone they work perfectly but an error always develops when I try and combine them. Any suggestions or feedback would be extremely helpful and appreciated. Thanks!

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

Juanjo
Posts: 657
Joined: Sat Jan 27, 2007 12:46 am

Command conflicts between "multicolumn" and "rowcolor"

Post by Juanjo »

There is a related thread. Have a look.
The CTAN lion is an artwork by Duane Bibby. Courtesy of www.ctan.org.
workerbee
Posts: 43
Joined: Sat Nov 22, 2008 1:53 am

Re: Command conflicts between "multicolumn" and "rowcolor"

Post by workerbee »

Thanks, Juan. It helped a lot!
Post Reply