How to center multiple figures in LaTex

Hi Guys,

Below you can find  a block of code to center your  figures in Latex.

In this example, two figures are used.

documentclass{article}
usepackage{subfigure}
usepackage{graphicx}

begin{document}

begin{figure}[ht]
begin{center}
subfigure[Caption for Figure 1]{
label{fig:first}
includegraphics[width=0.25textwidth]{./images/Figure1.eps}
}
subfigure[Caption for Figure 1]{
label{fig:second}
includegraphics[width=0.25textwidth]{./images/Figure2.eps}
}
end{center}
caption{(a) Figure 1, (b) Figure 2 }
label{fig:subfigures}
end{figure}

end{document}

Preview:Example_subfigures

Hope this is useful.

Reference

http://nixtricks.wordpress.com/2009/11/09/latex-multiple-figures-under-the-same-caption-using-subfigure/

 

Leave a Reply