approachSimpleRules.tex 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. \definecolor{myred}{HTML}{d01e1e}
  2. \definecolor{mygreen}{HTML}{129d1c}
  3. \definecolor{myblue}{HTML}{0000FF}
  4. \makeatletter
  5. \begin{tikzpicture}[>=latex, node distance=1cm, on grid, auto]
  6. %A
  7. \node (A2) [draw, circle, minimum size=0.5mm, color=myred] {};
  8. \path (A2.west)+(-0.25,-1) node (A1) [draw, regular polygon, regular
  9. polygon sides=6, minimum size=1cm, color=myred] {}; %{A};
  10. \path[-,color=myred] (A1) edge (A2);
  11. \path (A2.west)+(-1.5,-0.5) node (arrow) [minimum size=0.5cm] {$\longrightarrow$};
  12. \path (arrow.west)+(-1,0) node (A) {A};
  13. %ligne1
  14. \node (sepAS) [right of=A2] {} ;
  15. \path[draw,-] (sepAS)+(0,1) edge (sepAS)+(0,-1);
  16. %;
  17. \node (seq) [right of=sepAS] {;} ;
  18. \path (seq.east)+(1,0) node (arrow) [minimum size=0.5cm] {$\longrightarrow$};
  19. \path (arrow.east)+(1.5,0.5) node (S1) [draw, regular polygon, regular polygon sides=3, minimum size=1cm, shape border rotate=180, color=mygreen] {}; %{;};
  20. \path (S1.west)+(-0.5,-1) node (SA2) [circle, minimum size=0.5mm] {};
  21. \path (S1.east)+(0.5,-1) node (S2) [draw, rectangle, minimum size=0.5mm, color=mygreen] {};
  22. \path[-,color=mygreen] (SA2) edge (S1);
  23. \path[-,color=mygreen] (S1) edge (S2);
  24. %\node (S1) [draw, regular polygon, regular polygon sides=3, minimum
  25. %size=1cm, shape border rotate=180, color=mygreen] {}; %{;};
  26. %\path (S1.west)+(-0.5,-1) node (SA2) [circle, minimum size=0.5mm] {};
  27. %\path (S1.east)+(0.5,-1) node (S2) [draw, rectangle, minimum size=0.5mm, color=mygreen] {};
  28. %\path[-,color=mygreen] (SA2) edge (S1);
  29. %\path[-,color=mygreen] (S1) edge (S2);
  30. %\path (S1.west)+(-1.5,-0.5) node (arrow) [minimum size=0.5cm] {$\longrightarrow$};
  31. %\path (arrow.west)+(-1,0) node (seq) {;};
  32. %ligne2
  33. \node (SBH) [right of=S2] {} ;
  34. \node (SBB) [below of=SBH, ] {} ;
  35. \path[draw,-] (SBH) edge (SBB);
  36. %B
  37. \node (BS2) [rectangle, minimum size=0.5mm] {};
  38. \path (BS2.east)+(0.25,-1) node (B1) [draw, regular polygon, regular polygon
  39. sides=5, minimum size=1cm, color=myblue] {}; %{B};
  40. \path[-,color=myblue] (BS2) edge (B1);
  41. \path (BS2.west)+(-1.5,-0.5) node (arrow) [minimum size=0.5cm] {$\longrightarrow$};
  42. \path (arrow.west)+(-1,0) node (B) {B};
  43. \end{tikzpicture}