Historique des modifications [retour]
cliquez ici pour masquer/afficher la révision 9
mineure code

04 Fév '21, 13:46

Pathe's gravatar image

Pathe
7.6k49210252

Essayez d'éviter un `tikzpicture` dans un autre `tikzpicture`. Pour obtenir un résultat analogue, on peut faire quelque chose comme ça : \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}[transform canvas={rotate=20,scale=1.5},yshift=-170,xshift=-100] \node (A) at (1,0) {$A$}; \node (B) at (5.5,0) {$B$}; \node (C) at (10,0) {$C$}; \draw (A.south west) rectangle (C.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{scope} \end{tikzpicture} \end{document} ![alt text][1] <img src="/upfiles/Screen_Shot_2019-07-09_at_10.13.15.png" style="width: 100%;"/> La même chose plusieurs fois : \documentclass[a4paper,12pt, %DIV50 ]{article} \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc} \usepackage{lmodern} \usepackage{graphicx} \usepackage[french]{babel} \usepackage[]{tikz} \usetikzlibrary{shapes,positioning} \newcommand{\foo}{% \node (A) at (1,0) {$A$}; \node (B) at (5.5,0) {$B$}; \node (C) at (10,0) {$C$}; \draw (A.south west) rectangle (C.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); } \begin{document} \begin{tikzpicture} \begin{scope}[transform canvas={rotate=20,scale=1.5},yshift=-170,xshift=-100] \foo \end{scope} \begin{scope}[transform canvas={rotate=-20,scale=1.5},yshift=-100,xshift=-20,red] \foo \end{scope} \end{tikzpicture} \end{document} ![alt text][2] [1]: https://texnique.fr/osqa/upfiles/Screen_Shot_2019-07-09_at_10.13.15.png [2]: https://texnique.fr/osqa/upfiles/Screen_Shot_2019-07-09_at_10.53.16.png <img src="/upfiles/Screen_Shot_2019-07-09_at_10.53.16.png" style="width: 100%;"/>
cliquez ici pour masquer/afficher la révision 8
mineure

26 Nov '19, 13:24

Pathe's gravatar image

Pathe
7.6k49210252

Essayez d'éviter un `tikzpicture` dans un autre `tikzpicture`. Au lieue Pour obtenir un résultat analogue, on peut faire quelque chose comme ça : \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}[transform canvas={rotate=20,scale=1.5},yshift=-170,xshift=-100] \node (A) at (1,0) {$A$}; \node (B) at (5.5,0) {$B$}; \node (C) at (10,0) {$C$}; \draw (A.south west) rectangle (C.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{scope} \end{tikzpicture} \end{document} ![alt text][1] La même chose plusieurs fois : \documentclass[a4paper,12pt, %DIV50 ]{article} \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc} \usepackage{lmodern} \usepackage{graphicx} \usepackage[french]{babel} \usepackage[]{tikz} \usetikzlibrary{shapes,positioning} \newcommand{\foo}{% \node (A) at (1,0) {$A$}; \node (B) at (5.5,0) {$B$}; \node (C) at (10,0) {$C$}; \draw (A.south west) rectangle (C.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); } \begin{document} \begin{tikzpicture} \begin{scope}[transform canvas={rotate=20,scale=1.5},yshift=-170,xshift=-100] \foo \end{scope} \begin{scope}[transform canvas={rotate=-20,scale=1.5},yshift=-100,xshift=-20,red] \foo \end{scope} \end{tikzpicture} \end{document} ![alt text][2] [1]: https://texnique.fr/osqa/upfiles/Screen_Shot_2019-07-09_at_10.13.15.png [2]: https://texnique.fr/osqa/upfiles/Screen_Shot_2019-07-09_at_10.53.16.png
cliquez ici pour masquer/afficher la révision 7

09 Jul '19, 20:07

samcarter's gravatar image

samcarter
8.6k2817

cliquez ici pour masquer/afficher la révision 6

09 Jul '19, 15:49

samcarter's gravatar image

samcarter
8.6k2817

cliquez ici pour masquer/afficher la révision 5

09 Jul '19, 15:49

samcarter's gravatar image

samcarter
8.6k2817

cliquez ici pour masquer/afficher la révision 4

09 Jul '19, 15:48

samcarter's gravatar image

samcarter
8.6k2817

cliquez ici pour masquer/afficher la révision 3

09 Jul '19, 15:07

samcarter's gravatar image

samcarter
8.6k2817

cliquez ici pour masquer/afficher la révision 2

09 Jul '19, 15:07

samcarter's gravatar image

samcarter
8.6k2817

cliquez ici pour masquer/afficher la révision 1

09 Jul '19, 15:05

samcarter's gravatar image

samcarter
8.6k2817

C'est votre première visite ici ? Consultez la FAQ !

×