Is there a way to increase the length of my rules using \toprule, \bottomrule, and \midrule? I want them to extend past the text on both sides of the table a little bit.
Here's my minimal code:
\documentclass{article}
\usepackage{booktabs}
\begin{document}
\begin{table}[h]
\centering
\begin{tabular}{lc}
\toprule
\emph{X} & \emph{Y} \\
\midrule
1 & 2\\
3 & 4\\
\bottomrule
\end{tabular}
\end{table}
\end{document}
Thanks!
{lc}
to something like{@{~~~}lc@{~~~}}
.h
as the sole location option for a float.