Graphics, Figures & Tablesfigures overlap

Information and discussion about graphics, figures & tables in LaTeX documents.
Post Reply
sgp
Posts: 30
Joined: Thu Jul 22, 2010 11:45 am

figures overlap

Post by sgp »

Hi all,
I am writing a journal article using elsevier class file and while i use subfigure package and insert two figures, the second one overlaps with the first one. I am using the trim option in \includefigure. When the figures are inserted individually, there is no problem but when inserted in subfigure option, this overlap occurs.

Recommended reading 2024:

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

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

And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p

Stefan Kottwitz
Site Admin
Posts: 10335
Joined: Mon Mar 10, 2008 9:44 pm

figures overlap

Post by Stefan Kottwitz »

Hi sgp,

the subfigure package is obsolete, I recommend using the subfig package instead. Perhaps the problem doesn't occur with that newer package.

Stefan
LaTeX.org admin
User avatar
sommerfee
Posts: 503
Joined: Mon Apr 09, 2007 4:20 pm

Re: figures overlap

Post by sommerfee »

Try putting a \fbox around the pictures: \fbox{\includegraphics[...]{...}}

This way you see where your pictures end, if the margins are correct etc.

As an (quick & dirty) alternative to fixing the picture margins you can try to separate the \subfigures with \hspace or \vspace.
Post Reply