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 composed a diagram that takes up the entire sheet of paper in landscape mode, called diagram.tex (compiled it to generate pdf). I'm trying to include that into an article, but only half of it is showing; the bottom half is cut off by the right end of the paper.

I was able to get it in the proper orientation by using


But because the bottom half of it is cut off, I need some sort of option where I can do something like this:

\includegraphics[angle=90, shift left = 5cm]{diagram.pdf}

to pull the rest of the image left (or up, depending on how you're looking at it).

So how can I move the figure around?

I'm not sure if this is relevant, but I'm using the following documentclass and packages in my paper:

\usepackage{tikz, graphicx}


This is not an issue with pushing it past the margins. Half of the picture is not on the paper (sort of like if you stuck half of your left hand behind the left side of your monitor). I need to pull the paper left (just like you would shift your hand left to see it).

share|improve this question
have you tried to specify \includegraphics[width=1\textwidth, angle=90]{...}? – Holene Apr 7 '13 at 8:24
@Holene I tried it an it shrinks the image, even though all of it is there – AlanH Apr 7 '13 at 8:30
@KevinC Could you expand on that? I'm not even sure where in the manual I would be able to find that. – AlanH Apr 7 '13 at 8:32
width = 1\textwidth will scale the input pdf such that it actually fits the page. I may misunderstand how your problem really looks like, but to me it sounds like you want to push the left side of the pdf past the page margins. In my opinion it's better to stay to the margins. Alternatively you could use the PDFpages package and include the entire PDF? – Holene Apr 7 '13 at 8:34
@AlanH: Sorry I was wrong about my previous suggestion. But how about this: \hspace{-<some number>in}\includegraphics[angel=90]{...}? Basically this shifts the included picture left by <some number> inch. – Herr K. Apr 7 '13 at 9:03
up vote 28 down vote accepted

\includegraphics makes a box that is positioned the same way \mbox{} or A are positioned. If you want to move it 3cm to the left use

share|improve this answer
Sorry to interrupt; why use the starred version of \hspace? – Svend Tveskæg Apr 7 '13 at 9:35
@SvendTveskæg because if it is the beginning of a line white glue is discarded so white space and normal \hspace have no effect. – David Carlisle Apr 7 '13 at 9:39
Thank you, David! – Svend Tveskæg Apr 7 '13 at 9:43

To include shifts directly in the options part of the \includegraphics[options]{graphic.pdf} part of the command, a more straight forward way is the

`trim=left bottom right top` 

option. Here, left, bottom, right, and top are units of length, which trim the graphic for positive values and add space for negative values.

So to move to the right by 5cm and 1 cm from the top, you would do:

\includegraphics[trim=-5cm 0 0 -1cm]{diagram.pdf}
share|improve this answer
It is better so post complete working examples instead fragments of code – Christian Hupfer Jul 15 '14 at 12:54
This worked for me. – polym May 13 '15 at 23:28

Opting for an answer as the comments with a lot of code have pretty low readability. The ninja pic is taken from http://tinyurl.com/btapmmx

    \node {Node 1: \includegraphics[width=1 in]{images/ninja}};
    \node {Node 2: \includegraphics[width=1 in]{images/ninja}};

Node 2 is now shifted, so if you skip the code for the scopes and node 1, and include your pdf in node 2 you should be able to shift the included pdf here and there.

The result: enter image description here

share|improve this answer
Hmm, does the xshift option only work when there are two scopes? I was trying with only one scope, and the xshift option wasn't doing anything... – Herr K. Apr 7 '13 at 9:16
@KevinC No, you can simply do: \begin{tikzpicture}[xshift=-5cm] \node{node content}; \end{tikzpicture}. I added the two scopes just to illustrate the difference with and without xshift =) It works fine for me using only one scope too. – Holene Apr 7 '13 at 9:17
@Holene Okay, I think it's because the picture I'm importing has a slight margin, so I need to pull it past the margin in my article, which is why nothing was shifting for me, it's already pulled to the margin of the article. If I rescale it, which I tried, the picture doesn't look right. – AlanH Apr 7 '13 at 9:19
Have you tried adding the .tex source file in a figure environment instead of the compiled pdf, e.g. \input{source_file.tex}. I think you'll have to fix the orientation etc. in the .tex file though. – Holene Apr 7 '13 at 9:21
@Holene: I did exactly what you said there... Perhaps it's my home computer's fault (I haven't updated my MikTeX for ages). – Herr K. Apr 7 '13 at 9:22

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.