When I run this MWE I have a strange black rectangle in the first row right after the Innovations. The original code for the table is by Excel2LaTeX. I'm just trying to highlight rows, columns, and cells using colortbl (which took me three hours just to get more or less working).
Code: Select all
Code, edit and compile here:
\documentclass{article}\renewcommand{\arraystretch}{1.5}\usepackage{tabulary}\usepackage{xcolor}\usepackage{colortbl}\usepackage{booktabs}\usepackage[newcommands]{ragged2e}\begin{document}\begin{tabulary}{1\textwidth}{LLLLLLL}\toprule\multicolumn{1}{l}{} & \multicolumn{1}{l}{Innovations} & & & Logs & & \\\midrule\multicolumn{1}{l}{Variables} & \multicolumn{1}{c}{3} & \multicolumn{1}{c}{2} & \multicolumn{1}{c}{1} & \multicolumn{1}{c}{3} & \multicolumn{1}{c}{2} & \multicolumn{1}{c}{1} \\\multicolumn{1}{l}{} & \multicolumn{1}{l}{(-1.15)} & \multicolumn{1}{l}{(-1.79)} & \multicolumn{1}{l}{(-1.39)} & \multicolumn{1}{l}{(-1.24)} & \multicolumn{1}{l}{(-1.65)} & \multicolumn{1}{l}{(-1.43)} \\\rowcolor[gray]{0.95}\multicolumn{1}{l}{ $EQ\_VOL_{t}$} & \multicolumn{1}{l}{1.43***} & \multicolumn{1}{l}{1.22***} & \multicolumn{1}{l}{1.17***} & \multicolumn{1}{l}{0.28***} & \multicolumn{1}{l}{0.26***} & \multicolumn{1}{l}{0.28***} \\\bottomrule\end{tabulary}\end{document}
Here is the file list:
Code: Select all
*File List*article.cls 2007/10/19 v1.4h Standard LaTeX document classsize10.clo 2007/10/19 v1.4h Standard LaTeX file (size option)tabulary.sty 2008/12/01 v0.9 tabulary package (DPC)array.sty 2008/09/09 v2.4c Tabular extension package (FMi)xcolor.sty 2007/01/21 v2.11 LaTeX color extensions (UK)color.cfg 2007/01/18 v1.5 color configuration of teTeX/TeXLivepdftex.def 2011/05/27 v0.06d Graphics/color for pdfTeXinfwarerr.sty 2010/04/08 v1.3 Providing info/warning/error messages (HO)ltxcmds.sty 2011/11/09 v1.22 LaTeX kernel commands for general use (HO)colortbl.sty 2012/02/13 v1.0a Color table columns (DPC)booktabs.sty 2005/04/14 v1.61803 publication quality tablesragged2e.sty 2009/05/21 v2.1 ragged2e Package (MS)everysel.sty 2011/10/28 v1.2 EverySelectfont Package (MS)supp-pdf.mkii***********
Thank you,
Arsenio