I have a table containing mathematics with sub and superscripts. These touch both the lines above and below in the table. I tried quite a few alternatives but have not been able to find anything that gives suitable spacing in the rows without also messing up the spacing of the title row (ie making the headings too tightly left aligned). Any pointers on the best approach for this would be appreciated.
Here is my current result (I am using the array package):
\begin{table}[htbp]
\begin{center}
\begin{tabular}{| m{2.7cm} | m{8cm}|}
\hline
\textbf{Marginalised term} & \textbf{3 variable terms} \\
\hline \hline
$H_\partial^{12}(\{12\})$ &
$\begin{aligned}
&H_\partial^{123}(\{12\}) + H_\partial^{123}(\{3\}\{12\}) \\
&+ H_\partial^{123}(\{12\}\{13\}) + H_\partial^{123}(\{12\}\{23\}) \\
&+ H_\partial^{123}(\{12\}\{13\}\{23\})
\end{aligned}$ \\
\hline
$H_\partial^{12}(\{1\})$ &
$H_\partial^{123}(\{1\})+H_\partial^{123}(\{1\}\{23\})+H_\partial^{123}(\{1\}\{3\})$ \\
\hline
$H_\partial^{12}(\{2\})$ &
$H_\partial^{123}(\{2\})+H_\partial^{123}(\{2\}\{13\})+H_\partial^{123}(\{2\}\{3\})$ \\
\hline
$H_\partial^{12}(\{1\}\{2\})$ &
$H_\partial^{123}(\{1\}\{2\})+H_\partial^{123}(\{1\}\{2\}\{3\})$ \\
\hline
\end{tabular}
\end{center}
\end{table}
Setting extrarowheight fixes the top spacing for the lower three rows, but they still all touch the lower hline and the first row touches both above and below.
Adding extrarowheight
doesn't work:
Nor does arraystrectch
(top row touches and vertical centering off):
renewcommand\arraystretch{2}
(or whatever value you want) either in the document preamble or if just this table, at the start of thetable
environment – David Carlisle Feb 3 '17 at 11:57