I want to put two imagem side to side. How can I do this?
Thanks
General ⇒ Images side to side
NEW: TikZ book now 40% off at Amazon.com for a short time.

Images side to side
If they are independent figures, you can use minipage environments. If they are subfigures, use the subfig package.
A little example of the former situation:
I used \rule commands only to simulate actual figures.
A little example of the former situation:
Code: Select all
Code, edit and compile here:
\documentclass{article}\usepackage{caption}\begin{document}\noindent\begin{minipage}{.45\textwidth}\centering\rule{.7\linewidth}{1cm}\captionof{figure}{Test figure 1}\label{fig:testfig1}\end{minipage}\begin{minipage}{.45\textwidth}\centering\rule{.7\linewidth}{1cm}\captionof{figure}{Test figure 2}\label{fig:testfig2}\end{minipage}\end{document}
Last edited by gmedina on Thu May 08, 2008 5:23 pm, edited 1 time in total.
1,1,2,3,5,8,13,21,34,55,89,144,233,...
- Stefan Kottwitz
- Site Admin
- Posts: 10345
- Joined: Mon Mar 10, 2008 9:44 pm
Images side to side
Hi pedrovg2,
perhaps see de-tex-faq 6.1.6 for an example. It's in german, but the tex code should be understanable.
Stefan
perhaps see de-tex-faq 6.1.6 for an example. It's in german, but the tex code should be understanable.
Stefan
LaTeX.org admin
Re: Images side to side
I don't solve this yet. I don't know where I have to give the arquive of the imagem, where i have to put pegend etc.
Thanks
Thanks
- Stefan Kottwitz
- Site Admin
- Posts: 10345
- Joined: Mon Mar 10, 2008 9:44 pm
Images side to side
Hi,
gmedina has given a complete example above.
Just replace \rule (simulating the image) by \includegraphics{imagename}.
Don't forget \usepackage{graphicx} in your preamble. You may have a look at the graphics guide page 9.
Stefan
gmedina has given a complete example above.
Just replace \rule (simulating the image) by \includegraphics{imagename}.
Don't forget \usepackage{graphicx} in your preamble. You may have a look at the graphics guide page 9.
Stefan
LaTeX.org admin