Dupliquer une figure TikZ en changeant sa position, sa taille, son orientation
Soit une figure créé créée avec Tikz
Ti*k*Z :
\documentclass[a4paper,12pt,
%DIV50
]{article}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{lmodern}
\usepackage{graphicx}
\usepackage[french]{babel}
\usepackage[]{tikz}
\usetikzlibrary{shapes,positioning}
\begin{document}
\begin{tikzpicture}
\begin{scope}[local bounding box=foo]
\node (A) at (1,0) {$A$};
\node (B) at (5,0) {$B$};
\node (C) at (10,0) {$C$};
\end{scope}
\draw (foo.south west) rectangle (foo.north east);
\node[below of = A,node distance=3cm] (A1) {A1};
\node[below of = B,node distance=3cm] (B1) {B1};
\node[below of = C,node distance=3cm] (C1) {C1};
\draw[->] (A.south) -- (A1);
\draw[->] (B.south) -- (B1);
\draw[->] (C.south) -- (C1);
\end{tikzpicture}
\end{document}
Comment la dupliquer en modifiant sa position, son orientation, sa taille, sa couleur etc ... ?
---
Voici un essai qui oblige a à répéter le code de la figure,ce figure, ce qui serait lourd pour une duplication :
\documentclass{article}
\usepackage{tikz}
\usepackage{lipsum}
\tikzset{quadri/.style={rectangle,draw,text=blue}}
\begin{document}
bonjour
\begin{tikzpicture}[remember picture,overlay]
\node[shift={(current page.south west)},shift={(10,10)},scale=1,rotate=45]
{\begin{tikzpicture}[remember picture,overlay]
\begin{tikzpicture}
\begin{scope}[local bounding box=foo]
\node (A) at (1,0) {$A$};
\node (B) at (5,0) {$B$};
\node (C) at (10,0) {$C$};
\end{scope}
\draw (foo.south west) rectangle (foo.north east);
\node[below of = A,node distance=3cm] (A1) {A1};
\node[below of = B,node distance=3cm] (B1) {B1};
\node[below of = C,node distance=3cm] (C1) {C1};
\draw[->] (A.south) -- (A1);
\draw[->] (B.south) -- (B1);
\draw[->] (C.south) -- (C1);
\end{tikzpicture}
\end{tikzpicture}
};
\end{tikzpicture}
\end{document}
- Ce serait bien de pouvoir nommer la figure, pour avoir juste à placer le nom de la figure, pas son code
code ;
- Je je situe mal le centre de la figure qui ne me semble pas placé à (10,10) à partir du bas de la page
![alt text][1]
[1]: https://i.imgur.com/M3FGwE3.pngpage.
<img src="https://i.imgur.com/M3FGwE3.png" style="width: 90%;"/>