Possible Duplicate:
Column padding in tables
I want to make a table where one column heading has superscript which overlaps with hline above it. How can I increase the height of just that row so that it does not overlap? I tried commands such as \arraystretch
, but this increases the whole table which then looks odd in the document. The exact code is copied below (MWE).
\documentclass{article}
\usepackage{amsmath}
\begin{document}
\begin{table}[htbp]
\caption{Some values}
\begin{center}
{
%\renewcommand{\arraystretch}{1.35}
\begin{tabular}{|c|c|c||c|c|c|}
\hline
& \multicolumn{2}{c||}{L2 Unit} & \multicolumn{3}{c|}{SUB} \\ \cline{2-6}
Unit & $E^{\text{Dyn}}_{\text{L2}}$& $P^{\text{SUP}}_{\text{L2}}$ & Number &$E^{\text{Dyn}}_{\text{SUB}}$ &$P^{\text{SUP}}_{\text{SUB}}$ \\
Size & (unit) & (unit) & ($N$) &(unit) & (unit) \\\hline
4MB& 0.289& 1.39 &2 & .005 &.006\\\hline
\end{tabular}
}
\end{center}
\end{table}
\end{document}
Best Answer
You can use a
\rule
of zero width and the desired height; however, I would like to suggest you the use of thebooktabs
package to build your tables (this implies giving up on vertical rules, but the result is much better). Below an example with and withoutbooktabs
: