13

Possible Duplicates:
Drawing on an image with TikZ
How to superimpose LaTeX on a picture?

I was wondering if it's possible to have an existing image (possibly in a figure environment) and then add text at arbitrary locations within that image/figure. Does maybe Tikz allow something like that?

For clarity: This wiki link has this synapse image with hyperlinks at the beginning of arrows that point to specific parts of the synapse. When clicking on the image I only see the png file and the hyperlinks disappeared and only arrows without description pointing to stuff so I would like to reintroduce these texts.

marked as duplicate by Philipp, Jake, Martin Scharrer Apr 19 '12 at 10:10

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

  • 2
    Take a look at the question Drawing on an image with TikZ as it seems similar. Does that help? If not, it would be useful if you could explain how your situation differs from that. – Loop Space Apr 19 '12 at 9:52
  • That looks exactly like what I need. Thanks! – Philipp Apr 19 '12 at 9:55
  • 1
    As this doesn't say TikZ must be used, I've added a link to a question with non-TikZ ways of doing this as well. – Loop Space Apr 19 '12 at 10:28
31

No doubt you can use TikZ but if you just want to overlay text you don't need any extra packages at all

\begin{picture}(100,100)
\put(0,0){\includegraphics{....}}
\put(10,10){hello}
\end{picture}

will write "hello" over your image.

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