TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have the following to insert two images into a latex document:


This allows them to width across the width of the page perfectly, but the problem is I can't get them both on the same page. They would easily fit, except latex is insisting there be about 3 inches between them. I've tried a figure, subfigures and negative vspace* (which gets ignored).

Can anyone tell me a simple way to reduce the spacing/margins/whatever to get latex to realize they fit together?

share|improve this question
In the title and the description you speak of \vspace, the code contains \hspace. Perhaps edit the question to make it less ambiguous. – Stefan Kottwitz Dec 9 '10 at 1:06
up vote 5 down vote accepted
  • You could use pdfcrop to crop the interfering margins off the two pdf files. This small tool could already be part of your LaTeX distribution.

  • \includegraphics understands optional arguments for cropping the margins, you might use for instance trim or viewport.

  • Macros like \makebox, \llap and \rlap could reduce the effective width of the image.

share|improve this answer
I didn't even think about the fact that the pdf itself would have margins. Thanks! – David Kanarek Dec 9 '10 at 1:49

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.