Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

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

\begin{center}
    \hspace*{-1in}
    \includegraphics[width=8.5in]{rmse.pdf}
    \vspace*{-2in}
    \hspace*{-1in}
    \includegraphics[width=8.5in]{mae.pdf}
\end{center}

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
1  
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

1 Answer 1

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

 
discard

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.