[Tex/LaTex] Centering tabular array of images

graphicshorizontal alignment

I have a tabular array of four images and I am not able to center it. My images are pushed towards the right edge of the sheet. The centering looks fine for single images , so I am guessing this issue is of centering starting from the margin. How do I make an visually pleasing centering of my images.

\begin{center}

\begin{table}[h]
\begin{tabular}{cc}
\textbf{blah}  & \textbf{text} $m=\pi,n=e$  \\
\includegraphics[height=45mm]{liss0.png} &
\includegraphics[height=45mm]{liss1.png} \\ 
\includegraphics[height=45mm]{liss2.png} & 
\includegraphics[height=45mm]{liss3.png} \\
\textbf{text} & text

\end{tabular}
\end{table}
\end{center}

I would not mind if my image breaks a little off into the left margin.

Best Answer

It's by no means necessary to insert tabular environments in table environments. It appears that you are trying to typeset a "here table", so that it can't float. Then

\begin{center}
\begin{tabular}{@{}cc@{}}
\textbf{blah}  & \textbf{text} $m=\pi,n=e$  \\
\includegraphics[height=45mm]{liss0} &
\includegraphics[height=45mm]{liss1} \\ 
\includegraphics[height=45mm]{liss2} & 
\includegraphics[height=45mm]{liss3} \\
\textbf{text} & text
\end{tabular}
\end{center}

is probably what you need. In case you are satisfied with making the images sticking into the margins, add \makebox[0pt]{ in front of \begin{tabular} and the closing } immediately following \end{tabular}.

However, this might spoil your pagination, if this object falls near a page break. You may consider to use a floating table environment and the subfig or subcaption packages.

Related Question