Graphics, Figures & TablesTwo Figures with Captions at same Height

Information and discussion about graphics, figures & tables in LaTeX documents.
Post Reply
hvn
Posts: 13
Joined: Thu Feb 03, 2011 9:40 pm

Two Figures with Captions at same Height

Post by hvn »

Hi,

I want to show two figures next to each other and each with its own caption and label. However, as soon as I place the caption, the second figure automatically moves to the position below. I use the code below without the captions to show both figures next to each other. Can this be done? Thank you.

Code: Select all

\begin{figure}[!ht]
\includegraphics[scale=.35]{mean_tlc}
%\caption{Mean of TLC}
\label{mean_tlc}
\includegraphics[scale=.35]{rms_elat}
%\caption{RMS of e_lat}
\label{rms_elat}
\end{figure}
Last edited by localghost on Sun Jul 01, 2012 11:01 am, edited 2 times in total.

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

kaiserkarl13
Posts: 707
Joined: Tue Mar 25, 2008 5:02 pm

Two Figures with Captions at same Height

Post by kaiserkarl13 »

I think it will work to use a minipage:

Code: Select all

\documentclass{article}
\begin{document}
  \begin{figure}[!ht]
    \begin{minipage}{0.5\linewidth}
    \rule{2in}{2in}
    \caption{Mean of TLC}
    \label{mean_tlc}
    \end{minipage}
    \hspace{1pc}%
    \begin{minipage}{0.5\linewidth}
    \rule{2in}{2in}
    \caption{RMS of e\textunderscore{}lat}
    \label{rms_elat}
    \end{minipage}
    \end{figure}
\end{document}
hvn
Posts: 13
Joined: Thu Feb 03, 2011 9:40 pm

Two Figures with Captions at same Height

Post by hvn »

Had to remove the \rule commands, but it works. Thank you.
kaiserkarl13
Posts: 707
Joined: Tue Mar 25, 2008 5:02 pm

Two Figures with Captions at same Height

Post by kaiserkarl13 »

hvn wrote:Had to remove the \rule commands, but it works. Thank you.
The rules were there as placeholders for images, since I don't have copies of your graphics.
Post Reply