General2 different figures side by side?

LaTeX specific issues not fitting into one of the other forums of this category.
Post Reply
Stephy
Posts: 7
Joined: Thu Apr 10, 2008 6:22 pm

2 different figures side by side?

Post by Stephy »

Hi everybody,

this is my second post today, a lot of questions show up when using LaTeX ;-)

I tried without success to put 2 figures (quite small) side by side on a document (one one the left, the other on the right), but I couldn't manage to find the right command...so if somebody knows if it's possible that would be great!

thank's!!

Steph

(I use MacOSX and TexShop)

Recommended reading 2024:

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

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

localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

2 different figures side by side?

Post by localghost »

There are two possible solutions.
  1. The figures belong together and represent some kind of sub-figures. Then the subfig or floatrow package is your friend.
  2. The figures are independent from each other and have their own numbering. In this case you could put two minipage environments side by side and label the figures with the \captionof command from the caption package.
In both cases the documentations of the mentioned packages show you how to get things work. The document "Using Imported Graphics in LaTeX and pdfLaTeX" (epslatex) could also be helpful in this context. In case of difficulties, feel to ask further questions.


Best regards
Thorsten¹
Last edited by localghost on Thu Apr 10, 2008 8:23 pm, edited 1 time in total.
User avatar
gmedina
Posts: 2313
Joined: Wed Jul 11, 2007 11:45 pm

2 different figures side by side?

Post by gmedina »

The subfig package could be useful. The documentation contains examples.
1,1,2,3,5,8,13,21,34,55,89,144,233,...
Stephy
Posts: 7
Joined: Thu Apr 10, 2008 6:22 pm

Re: 2 different figures side by side?

Post by Stephy »

oh cool!!
I will try asap!!
thank's a lot!!
kusikanki
Posts: 1
Joined: Wed Jan 28, 2009 4:02 pm

2 different figures side by side?

Post by kusikanki »

Hello i'm having the same problem, and i tried using the suggested packages but as i'm a mac user, with TeX live 2008, the packages don't exist...

I tried to install them, but as i'm no computer wizard i didn't understand the explanations given in http://www.math.toronto.edu/ivrii/Computer/tl2008.php and still, i don't know were to find, say, the subfig package...

i'm sorry to bother you with my incompetence, but can anybody help me?
User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

2 different figures side by side?

Post by localghost »

In the section "On your machine" you will find explicit description of how to install or update packages with the package manager (tlmgr). More useful information may be given in the documentation section of the Tex Live homepage.

A very good alternative to the already mentioned packages is the subcaption package that comes with the caption package.


Best regards and welcome to the board
Thorsten¹
Post Reply