What is the easiest way to get that last square aligned the same was as the first two? Do I need to create a \newcolumntype
that somehow centers the content both vertically and horizontally? If so, how do I do that?
\documentclass{article}
\usepackage{tikz}
\usepackage{tabularx}
\newcolumntype{C}[1]{>{\centering\arraybackslash}m{#1}}
\newcolumntype{Y}{>{\centering\arraybackslash}X}
\begin{document}
\begin{tabularx}{16cm}{C{5cm}C{5cm}Y}
\begin{tikzpicture}[scale=0.7]
\draw (0,0) rectangle (4,4);
\end{tikzpicture}
&
\begin{tikzpicture}[scale=0.7]
\draw (0,0) rectangle (4,4);
\end{tikzpicture}
&
\begin{tikzpicture}[scale=0.7]
\draw (0,0) rectangle (4,4);
\end{tikzpicture}\\
\end{tabularx}
\end{document}
\renewcommand{\tabularxcolumn}[1]{>{\centering\arraybackslash}m{#1}}
to change whatX
does but I'm not sure you can do it for just one column.tabularx
row.