When having inline math in tables, fractions etc. appear "squeezed". I have now added the line
\everymath{\displaystyle}
to my preamble after finding the answer here to another question. This very neatly let's every equation in my document be displayed in large format.
But apparently the table rows do not detect these larger equations. Fractions etc. "bulge" out of the row and the rows therefore overlap. From this answer I got the following code to add to the preamble:
\def\arraystretch{2}
This stretches the table rows to double size. But this happens on all rows. Is there a way to reach only the rows with too wide content, so only those rows will be stretched?
An example:
\begin{center}
\begin{tabular}{l c l}
$k^0$ &$=$& $1$\\
$k^{-1}$ &$=$& $\frac1k$\\
$k^{-2}$ &$=$& $\frac1{k^2}=\frac{1}{k\cdot k}$\\
$k^{-3}$ &$=$& $\frac1{k^3}=\frac{1}{k\cdot k\cdot k}$\\
\end{tabular}
\end{center}
Giving the result:
Adding the \arraystretch command will make the rows higher - but all rows will be higher, also rows that do not have any problematic math content. Therefore everything fills more. I am looking for a way to reach only the rows with too tall content with the \arraystretch command.





arrayenvironment ;-) – Oct 15 '15 at 10:12\documentclass{article} \begin{document}and\end{document}the rows are close but do not overlap. – David Carlisle Oct 15 '15 at 10:33\everymath{\displaystyle}is a bad idea, in general. – egreg Oct 15 '15 at 12:20