I have an equation in a multi row cell (aka a merged cell) that should be vertically centered.
I do using the following code snippet:
Code: Select all
\documentclass{article}\usepackage{multirow,longtable,array}\begin{document}\begin{tabular}{|*{2}{c|}}\hline\parbox[c][1cm]{5cm}{Description} & \parbox[c][1cm]{5cm}{Formula}\\\hline\multirow{3}*{\parbox[c][1cm]{5cm}{%\centering$\displaystyle \int_a^b f(x)\, \textrm{d}x=F(b)-F(a)$}%}%&\parbox[c][1cm]{5cm}{ A } \\\cline{2-2}&\parbox[c][1cm]{5cm}{ B } \\\cline{2-2}&\parbox[c][1cm]{5cm}{ C } \\\hline\parbox[c][1cm]{5cm}{D} & \parbox[c][1cm]{5cm}{E}\\\hline\end{tabular}\end{document}
Is there a way to make it vertically centered without doing trial and error adjustments?
Thank you in advance.
regards,
Yoyo