I would like to vertically align several table cells, one of which includes an array
. Consider the following MWE:
\documentclass{article}
\usepackage{graphicx}
\usepackage{array}
\begin{document}
\begin{tabular}{*{5}{m{0.2\textwidth}}}
Some text &
\includegraphics[width=15mm]{example-grid-100x100pt} &
\(\left(\begin{array}{cc}
1 & 0 \\
0 & 1
\end{array}\right)\) &
\((1,0,1,0)\) &
\rule{15mm}{15mm}
\end{tabular}
\end{document}
Which yields (green reference line added by me):
The text, image, simple inline math, and rule are all correctly aligned vertically, but the array
is pushed down. Instead I would have expected the following:
Why is the array not centered vertically? What is the easiest way to fix this?