According to link it is possible to create magnified subfigures and corresponding boxes for portions of a large image like this one:

enter image description here

I would like obtain the same effect but with different subfigures i.e. not magnified from figure a. It is possible? How?

Thank you in advance!

  • 1
    If not from a, then from where to magnify? – user11232 Mar 31 '15 at 8:29
  • 1
    Please provide an MWE! Your question could be reduced to two images (on of them bordered) with a line between the two subfigures. The rectangles can be done like tex.stackexchange.com/q/30427 or tex.stackexchange.com/q/9559. As Harish pointed out, the link to the magnifying is quite useless here. – LaRiFaRi Mar 31 '15 at 8:29
  • The subfigures are magnified a part (manually)... Image A is a map, subfigures B should be photos – Kevin Mar 31 '15 at 10:23

Here's one possible approach using Caramdir's solution linked in the comments as a starting point in conjunction with the package subcaption.

\tikzset{boximg/.style={remember picture,red,thick,draw,inner sep=0pt,outer sep=0pt}}

      \node[anchor=south west] (img) {\includegraphics[width=\linewidth]{example-image-a}};
      \begin{scope}[x=(img.south east),y=(img.north west)]
        \node[draw,minimum height=1.6cm,minimum width=1.00cm] (B1) at (0.2,0.60) {};
        \node[draw,minimum height=0.8cm,minimum width=0.50cm] (B2) at (0.7,0.25) {};
        \node[draw,minimum height=0.4cm,minimum width=0.25cm] (B3) at (0.9,0.10) {};
      \node (img1) {\includegraphics[width=0.3\linewidth]{example-image-10x16}};
      \draw (img1.south west) rectangle (img1.north east);
      \node (img2) {\includegraphics[width=0.3\linewidth]{example-image-10x16}};
      \draw (img2.south west) rectangle (img2.north east);
      \node (img3) {\includegraphics[width=0.3\linewidth]{example-image-10x16}};
      \draw (img3.south west) rectangle (img3.north east);
    \draw (B1) -- (img1);
    \draw (B2) -- (img2);
    \draw (B3) -- (img3);
  \caption{The National Gallery of Canada}

enter image description here


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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