Can I render a figure inside another figure. For example, I want to have a big figure and showing a small one (like for zooming in) instead of the legend.
Can I do that using latex?
Thanks.
I \llap the embedded image after setting the large image. The 2.5in is the vertical rise and the 0.2in is the leftward offset of the embedded image.
\documentclass{article}
\usepackage{graphicx}
\usepackage{mwe}
\begin{document}
Here is some text.
\begin{figure}[ht]
\includegraphics[scale=1]{example-image-1x1}
\centering
\llap{\shortstack{%
\includegraphics[scale=.2]{example-image}\\
\rule{0ex}{2.5in}%
}
\rule{0.2in}{0ex}}
\caption{This is my embedded figure}
\end{figure}
And text continues\ldots
\end{document}

stackengine package can do this function directly with the \stackinset macro.
– Steven B. Segletes
Apr 10 '18 at 13:11
figureenvironments. think of this more as "including two graphic objects in the same float environment". – barbara beeton Jun 05 '13 at 12:53stackenginepackage which embodies this kind of logic in commands\topinsetand\bottominset. They are more convenient than even the what I gave below. – Steven B. Segletes Jul 01 '13 at 18:40