Graphics, Figures & TablesBottomrule + columncolor

Information and discussion about graphics, figures & tables in LaTeX documents.
Post Reply
lorelore
Posts: 1
Joined: Tue Aug 04, 2009 11:41 pm

Bottomrule + columncolor

Post by lorelore »

Hi everybody!

I´m a newbie trying to make my tables look better.
I´m trying to use bottomrule in the middle of the table to separate rows (in fact this could be seen as 2 tables but I want to keep them together)
This code is ok and produces the table depicted in table1.jpg :

Code: Select all

\begin{tabularx}{50pt}{lX}
\toprule
A1 & AA1\\\midrule
B1 & BB1\\\midrule
C1 & CC1\\\bottomrule
A2 & AA2\\\midrule
B2 & BB2\\\midrule
& CC21\\
\multirow{-2}{*}{C2}& CC22\\\bottomrule
\end{tabularx}
Tabhttp://www.latex-community.org/forum/download/file.php?mode=view&id=1162&sid=3bdab42ff9005bb8cd28f2cf9892968ble without colorcolumn
Tabhttp://www.latex-community.org/forum/download/file.php?mode=view&id=1162&sid=3bdab42ff9005bb8cd28f2cf9892968ble without colorcolumn
table1.jpg (7.3 KiB) Viewed 1974 times
But I want to color the first column. Here is my code to do so:

Code: Select all

\begin{tabularx}{50pt}{>{\columncolor[gray]{.8}[\tabcolsep]}lX}
\toprule
A1 & AA1\\\midrule
B1 & BB1\\\midrule
C1 & CC1\\\bottomrule
A2 & AA2\\\midrule
B2 & BB2\\\midrule
& CC21\\
\multirow{-2}{*}{C2}& CC22\\\bottomrule
\end{tabularx}
Table with colorcolumn
Table with colorcolumn
table2.jpg (8.43 KiB) Viewed 1974 times
As you can see in table2.jpg "bottomrule" lines seem thiner on the colored column.
Any ideas?
thanks
Lorena

Recommended reading 2024:

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

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

Post Reply