
Estou escrevendo um artigo e preciso exibir figuras lado a lado. Usei os comandos do link a seguirComo ordenar 3 imagens horizontalmente?fazer isso. No entanto, os números são numerados em sequência, por exemplo. Figura 1, Figura 2 Figura 3. Gostaria que todas elas fizessem parte da mesma figura 1 e tivessem subseções como (a), (b) e (c).
Responder1
Você também pode usar o subcaption
pacote e seu subfigure
ambiente. O exemplo a seguir configura as subfiguras para que ocupem toda a largura do bloco de texto. Também assume que os gráficos associados a cada subfigura são todos igualmente largos; se não for esse o caso, basta ajustar as larguras dos subfigure
s adequadamente.
\documentclass{article}
\usepackage{subcaption}
\usepackage[demo]{graphicx} % omit 'demo' for real document
\begin{document}
\begin{figure}
\begin{subfigure}{0.31\textwidth}
\includegraphics[width=\linewidth]{fig_a.pdf}
\caption{First subfigure} \label{fig:1a}
\end{subfigure}%
\hspace*{\fill} % maximize separation between the subfigures
\begin{subfigure}{0.31\textwidth}
\includegraphics[width=\linewidth]{fig_b.pdf}
\caption{Second subfigure} \label{fig:1b}
\end{subfigure}%
\hspace*{\fill} % maximizeseparation between the subfigures
\begin{subfigure}{0.31\textwidth}
\includegraphics[width=\linewidth]{fig_c.pdf}
\caption{Third subfigure} \label{fig:1c}
\end{subfigure}
\caption{A figure that contains three subfigures} \label{fig:1}
\end{figure}
\end{document}
Responder2
Você pode usar subfig
o pacote:
\usepackage{subfig}
\begin{figure}[htbp]
\subfloat[subfig-a's caption]{\includegraphics[height=1.8in]{...}}
\subfloat[subfig-b's caption]{\includegraphics[height=1.8in]{...}}
\subfloat[subfig-c's caption]{\includegraphics[height=1.8in]{...}}
\caption{...}
\end{figure}