0

I want to add like the figure below each subfigure has (a) (b) c d. Then a main title for it. My code is this but its wrong. My image is at the bottom.

\begin{figure*}[htb]
\centering
\begin{minipage}[b]{.4\textwidth}
\includegraphics[width=\textwidth]{a}
\caption{(a)}\label{label-a}
\end{minipage}\qquad
\begin{minipage}[b]{.4\textwidth}
\includegraphics[width=\textwidth]{b}
\caption{(b)}\label{label-b}
\end{minipage}
\end{figure*}

enter image description here

enter image description here

  • Load the subcaption package, and the subfigure environment. – Bernard Dec 27 '16 at 10:54
  • Which document class do you use? – Mico Dec 27 '16 at 10:57
2

Please update the beow coding with the packages subfloat, subfig, graphicx

Add sub caption if needed in the option \subfloat[caption here]

\begin{figure*}[htb]
\centering
\subfloat[]{\includegraphics[width=\textwidth]{figure(a)}}
\subfloat[]{\includegraphics[width=\textwidth]{figure(b)}}\\
\subfloat[]{\includegraphics[width=\textwidth]{figure(c)}}
\subfloat[]{\includegraphics[width=\textwidth]{figure(d)}}
\end{figure*}
  • Did you try out this code? I would use \columnwidth rather than \textwidth, and I'd use spacers between the first/second and third/fourth subfigures. – Mico Dec 27 '16 at 11:12

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.