Wednesday, October 10, 2012

How to put two figures next to each other

Use the minipage command, and the epsfig package e.g.

\begin{figure}[h]
  \hfill
  \begin{minipage}[t]{.45\textwidth}
    \begin{center}  
      \epsfig{file=figure1.eps, scale=0.5}
      \caption{figure 1}
      \label{fig-tc}
    \end{center}
  \end{minipage}
  \hfill
  \begin{minipage}[t]{.45\textwidth}
    \begin{center}  
      \epsfig{file=figure2.eps, scale=0.5}
      \caption{figure 2}
      \label{fig-tc}
    \end{center}
  \end{minipage}
  \hfill
\end{figure}

This, and other possible ways to put figures next to each other can be found here:
http://www.cse.iitd.ernet.in/~bagchi/latex-tips.html

1 comment:

  1. For anyone seeing this in recent times:

    Just substitute \epsfig with \includegraphics. Cheers!

    ReplyDelete