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 tried the following:

  \pgftext{\includegraphics[width=150pt]{pic1.png}} at (0pt,0pt);
  \pgftext{\includegraphics[width=150pt]{pic2.png}} at (100pt,0);

But both pictures are placed at upper-left corner of image, at the same position. I tried including them inside nodes as well - no effect either.

What am I doing wrong?

share|improve this question
Try \node (myfirstpic) at (0,0) {\includegraphics{pic1.png}}; –  Jubobs May 19 '13 at 15:02
@Jubobs - that worked! Thanks. Seems that in my earlier attempt I tried to nest \includegraphics inside \pgftext. –  Rogach May 19 '13 at 15:06
\pgftext is not a TikZ command. The \node thing from @Jubobs should work. \pgftext[at={\pgfpoint{0pt}{0pt}}]{…} and \pgftext[x=100pt, y=0pt]{…} are possible \pgftext solutions. (The at … stuff you wrote is just ignored by TikZ as usual.) –  Qrrbrbirlbel May 19 '13 at 15:07
Closely related: tex.stackexchange.com/questions/9559/… –  juliohm May 19 '13 at 19:27
Related http://tex.stackexchange.com/q/95273/15717 –  texenthusiast May 19 '13 at 22:03

1 Answer 1

up vote 21 down vote accepted

The prefered way to embed external pictures in a tikzpicture environment is to insert an \includegraphics{...} inside a \node. See the code below for an example.

enter image description here



\node[inner sep=0pt] (russell) at (0,0)
\node[inner sep=0pt] (whitehead) at (5,-6)
\draw[<->,thick] (russell.south east) -- (whitehead.north west)
    node[midway,fill=white] {Principia Mathematica};

Links to the original pictures:

share|improve this answer

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.