[Tex/LaTex] Inserting two figures with two captions in one column

floatsieeetran

Using IEEEtran package, I want to place two figures with two captions (one right one left) in a column. A layout like this

----------------------------    ----------------------------
----------------------------    ----------------------------
----------------------------    
----------------------------     *********     **********
----------------------------     *********     **********
----------------------------     *********     **********
----------------------------     *********     **********
----------------------------     *********     **********
----------------------------     caption1       caption2
----------------------------    
----------------------------    ----------------------------
----------------------------    ----------------------------

When I search for that, the results mostly explain about "how to put a wide figure on two columns".

current code which stack the figures is listed below

\begin{figure}[!h]
    \centering
    \includegraphics[width=0.6\textwidth]{figs1.eps}
    \caption{caption1}
    \label{f1}
\end{figure}  

\begin{figure}[!h]
    \centering
    \includegraphics[width=0.6\textwidth]{figs2.eps}
    \caption{caption2}
    \label{f2}
\end{figure}  

What is the solution then?

UPDATE

After applying the method in the answer, the width of caption2 exceeds the column width. I used the codes that I understood from the answer. Please let me where did I made the mistake

\begin{figure}[!h]
\begin{minipage}[t]{0.5\linewidth}
    \centering
    \includegraphics[width=1\textwidth]{figs1.eps}
    \caption{caption1}
    \label{f1}
\end{minipage}
\hspace{0.1cm}
\begin{minipage}[t]{0.5\linewidth} 
    \centering
    \includegraphics[width=1\textwidth]{figs2.eps}
    \caption{caption2}
    \label{f2}
\end{minipage}        
\end{figure}  

enter image description here

Best Answer

You can insert two minipages inside a single figure environment.

\documentclass{IEEEtran}
\usepackage[demo]{graphicx}
\usepackage{lipsum}

\begin{document}

\lipsum[1-8]

\begin{figure}[htbp]
\begin{minipage}[t]{0.45\linewidth}
    \includegraphics[width=\linewidth]{figs1.eps}
    \caption{caption1}
    \label{f1}
\end{minipage}%
    \hfill%
\begin{minipage}[t]{0.45\linewidth}
    \includegraphics[width=\linewidth]{figs2.eps}
    \caption{caption2}
    \label{f2}
\end{minipage} 
\end{figure}

\lipsum[1]

\end{document} 

enter image description here

Related Question