[Tex/LaTex] How to typeset non-inline math in tables

math-modetables

I have to typeset mathematics in table and want to avoid it being scaled down because I have to use inline math (\( \)). However, using \[ \] for example does not work. What is the best way to typeset tables with formulas, in such a way that the math is not scaled down?

MWE:

\documentclass{article}
\usepackage{amsmath}

\begin{document}

\[ test \] % works

\begin{tabular}{cc}
\[ test  \] & \[ test \]\\ % doesn't work
\end{tabular}

\end{document}

Best Answer

You can add \displaystyle within the inline math environment, e.g.

\documentclass{article}
\usepackage{amsmath}
%\usepackage{fixltx2e}  % fixes that \( \) are fragile, but not necessary with recent versions of LaTeX
\begin{document}
\begin{tabular}{cc}
\( \lim_{x\to 0} \frac{\sin x}{x}   \) & \( \sum_{i=1}^n x_i \) \\
\(\displaystyle \lim_{x\to 0} \frac{\sin x}{x}   \) & \( \displaystyle \sum_{i=1}^n x_i \)
\end{tabular}
\end{document}

enter image description here