Figures in LaTex

  • LaTeX
  • Thread starter Clausius2
  • Start date
  • #1
Clausius2
Science Advisor
Gold Member
1,435
5
Hi,

I don't really know how to put a figure aside to another. I mean, If "X" is a figure, what can I do to make:

X X

in the same line.

Thanks.
 

Answers and Replies

  • #2
graphic7
Gold Member
450
2
LaTeX is very picky about figures. Even if you specify where you'd like the figure on the page, sometimes, it'll move it just because it wants to. You can try setting the position to argument to [h], which means "here." LaTeX will then try to place the figure where you want it.

I'm not sure if figure automatically does newlines, in that case you'll be screwed. But, try it. Make sure you don't newline between the figures.
 
  • #3
Clausius2
Science Advisor
Gold Member
1,435
5
Thanks. I've been googling and finally I've found how to do about that.

Yes, LaTex has an automatic newline between figures.

Here it is what I found:

\begin{figure}
\begin{minipage}[t]{8cm}
\begin{center}
\includegraphics[width=8cm,clip]{figure1.eps}
\caption[Short caption for figure 1]{\label{labelFig1} Long caption figure 1}
\end{center}
\end{minipage}
\hfill
\begin{minipage}[t]{7.5cm}
\begin{center}
\includegraphics[width=7.5cm,clip]{figure2.eps}
\caption[Short caption for figure 2]{\label{labelFig2} Long caption figure 2.}
\end{center}
\end{minipage}
\end{figure}

And it works!
 
  • #4
102
0
try checking into various packages such as placeins.

Figures are "floats" so you really have to force it to go somewhere using tables or whatever.
 

Related Threads on Figures in LaTex

  • Last Post
Replies
2
Views
2K
  • Last Post
Replies
6
Views
3K
  • Last Post
Replies
5
Views
5K
Replies
4
Views
39K
  • Last Post
Replies
6
Views
6K
Replies
11
Views
14K
Replies
6
Views
17K
Replies
4
Views
20K
  • Last Post
Replies
1
Views
8K
Replies
4
Views
4K
Top