6

I recently read the post about insets (Image inside another image) and am trying to implement the method that uses overlaps. I can get the inset to appear, but I can't figure out how to position it. My LaTeX looks like this:

\begin{figure}[h]
\centering
\includegraphics[scale=0.9]{figure2_2.eps}\llap{\includegraphics[height=2cm]{inset_f2_cropped.pdf}}
\caption{words}
\label{f2}
\end{figure}

The inset shows up in the lower left, mostly outside of the actual figure; I am a relatively new user, so if this is just the result of misinterpreting the original answer, I'm sorry!

3

1 Answer 1

6

You can use picture mode coordinates.

\begin{figure}
\includegraphics[scale=0.9]{figure2_2.eps}%
\begin{picture}(0,0)
\put(-10,-10){\includegraphics[height=2cm]{inset_f2_cropped.pdf}}
\end{picture}
\caption{words}
\label{f2}
\end{figure}

The first image will determine the space left for the figure, the second figure takes up no space (because the picture size is (0,0) but by adjusting the (-10,-10) coordinate you can position the second figure at any point over the first. (I removed the [h] option to figure, if you use the option at all you should almost always include at least t and p)

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .