I have an equation in a cell with several rows (also called a merged cell) that needs to be vertically centered. I am using the following code snippet:
\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^bf(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 trial and error?
source share