\documentclass[12pt]{article}
\usepackage{amsmath,amsthm,amssymb,amsfonts}
\usepackage[a4paper]{geometry}
\usepackage{graphicx}
\usepackage{booktabs}
\usepackage{rotating}
\usepackage{textcomp}
\usepackage{subfigure}
\usepackage{hyperref}
\usepackage{amsmath}
\usepackage[margin=10pt,font=small,labelfont=bf, labelsep=endash]{caption}
\usepackage{booktabs}
\begin{document}
\newcommand{\ra}[1]{\renewcommand{\arraystretch}{#1}}
\begin{table*}[h]
\centering
\ra{1}
\resizebox{\textwidth}{!}{
\begin{tabular}{cccccccccc}\toprule
&& \multicolumn{2}{c}{Phase 1} & \phantom{ab}& \multicolumn{2}{c}{Phase 2} && \multicolumn{2}{c}{Phase 3}\\
\cmidrule{3-4} \cmidrule{6-7} \cmidrule{9-10}
Day &\phantom{ab}& AAR & CAAR & \phantom{ab} & AAR & CAAR & \phantom{ab} & AAR & CAAR \\ \midrule
$-10$ & \phantom{ab}&0.00211&0.00211 &\phantom{ab}& -0.00104& 0.6& \phantom{ab}&0.00211&0.7\\
&\phantom{ab}& \footnotesize(0.61)& \footnotesize(0.61)&\phantom{ab}& \footnotesize(0.61)\\
$-9$ & \phantom{ab}& 0.00242 &0.00453 & \phantom{ab}&0.00211 & 0.6& \phantom{ab}&0.00211&0.7\\
&\phantom{ab}& \footnotesize(0.90)& \footnotesize (1.04)&\phantom{ab}& \footnotesize(0.61)\\
\hline\hline
\multicolumn{3}{l}{\footnotesize \textit{t} statistics in parentheses}\\
\multicolumn{3}{l}{\footnotesize {*} \(p<0.05\), {**} \(p<0.01\), {***} \(p<0.001\)}\\
\bottomrule
\end{tabular}
}
\end{table*}\end{document}
Hi,guys. I am trying to create a nice-looking table and I have encountered some issues. First, is there any way to get rid of \footnotesize in every second row and make automatic fontsize change? And second, how to make the line under "Phase 1" be a bit shorter from the left side so that it was right above the numbers?



booktabsandamsmathtwice. The latter is not needed here and could be replaced by the newermathtools. Do not use\hlines inside such a nicebooktabs-table. You should put numbers in between$$. The minus is displayed incorrectly. You can shorten the left side of a\cmidruleas\cmidrule(l){3-4}. The rest of the superseding line comes from wrong spacing (maybe all those strange phantoms). – LaRiFaRi Aug 17 '16 at 08:21