I am using a documentclass requried by a journal, which also defines the format of a picture. I am using the following code for expanding the figures to the page width and getting badbox error. What am I missing here?
\documentclass[12pt]{spieman}
\usepackage{graphicx}
\begin{document}
\section{Introduction}
\begin{figure}[b]
\begin{center}
\begin{tabular}{c}
\includegraphics[width=\textwidth]{pics/figures1.pdf}
\\
\hspace{1.6cm} (a) \hspace{7.4cm} (b) \hspace{2cm}
\end{tabular}
\end{center}
\caption
{ \label{fig:figures1}
figure caption.}
\end{figure}
\end{document}
Thanks for the help.
tabular
environment? Why not simply\begin{figure} \centering \includegraphics[width=\linewidth]{example-image-a}\\ \hspace{1.6cm} (a) \hspace{7.4cm} (b) \hspace{2cm} \caption{\label{fig:figures1}figure caption.} \end{figure}
?tabular
is to be used, remove the padding:\begin{tabular}{@{}c@{}}
tabular
?