I am making a table with displaystyle inline math, and am having trouble getting a consistent vertical spacing between each row.
To be clear, I want the vertical padding for the fraction to be the same as that of the gobbledygook. I have tried using \def\arraystretch{...}, but it doesn't produce a consistent spacing.
The solutions in How to set the space between rows in a table don't really seem to solve this problem generally.
MWE:
\documentclass{article}
\begin{document}
\begin{tabular}{|c|}
\hline
Gobbledygook\\
\hline
$\displaystyle\frac{a}{b}$\\
\hline
\end{tabular}
\end{document}



ccolumn which has no line wrapping, so there is nothing to preserve. – David Carlisle Dec 01 '23 at 17:39