In order to include a small sub-figure in my main figure, I tried to use scaled scope. However, when I try to refer to a node out of the scaled scope, the node pointed is at the position of the old non-scaled node… Here is a picture :
Do you know how to avoid that ?
Thank you !
PS : Here is my WME.
\documentclass{report}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage[francais]{babel}
\usepackage{float}
\usepackage{tikz}
\usetikzlibrary{shapes.geometric,arrows}
\usetikzlibrary{mindmap,backgrounds,positioning}
\usetikzlibrary{automata,positioning,fit,backgrounds}
\usetikzlibrary{positioning,arrows,matrix,calc}
\begin{document}
\begin{figure}[H]
\centering
\begin{tikzpicture}
\begin{scope}[transform canvas={scale=1},overlay]
\node[fill=green] (a) {A};
\node[fill=green,right=of a] (b) {B};
\end{scope}
\node[draw,below=5mm of b] (c) {C};
\draw[<->] (c) -- (b);
\end{tikzpicture}%
\hspace{3cm}%
\begin{tikzpicture}
\begin{scope}[transform canvas={scale=0.2},overlay]
\node[fill=green] (a) {A};
\node[fill=green,right=of a] (b) {B};
\end{scope}
\node[draw,below=5mm of b] (c) {C};
\draw[<->] (c) -- (b);
\end{tikzpicture}%
\end{figure}
\end{document}
Best Answer
Perhaps you want this?