summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/latex/fast-diagram/sources_help/exemple.tex
blob: 60b3d8b699d14c9a9c5ff5d7f29f666f641dfbf8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
\section{Un exemple presque complet}\label{exemple}
%==========================================





	%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
	\begin{center}
	\footnotesize

	\definecolor{fastCouleurFondFS}{rgb}{0.90,0.85,0.70}
	\definecolor{fastCouleurFondFT}{rgb}{1,0.96,0.89}
	\definecolor{fastCouleurFondST}{rgb}{1,1,1}
	\renewcommand*{\fastHauteurBoite}{2.6em}
	\renewcommand*{\fastDecalageTrait}{-1.3em}
	\renewcommand*{\fastEspaceColonne}{9em}

	\begin{fast}{Déplacer la voiture téléguidée}
		\FT{Gérer les informations}
			{
			\FT{Démarrer la voiture}
				{
				\ST{Bouton marche/arrêt}
					[\FV{\includegraphics[height=1cm]{./sources_help/images/bouton.png}}]
				}
			\FT{Capter les ordres de la télécommande}
				{
				\ST{Antenne}
					[\FV{\includegraphics[height=1cm]{./sources_help/images/antenne.png}}]
				}
			\FT{Gérer les informations et distribuer}
				{
				\ST{Récepteur 2 voies}
					[\FV{\includegraphics[height=1cm]{./sources_help/images/recepteur.png}}]
				}
			}
		\FT{Stocker l'énergie}
				{
				\trait{\ST{Batterie électrique}
					[\FV{\includegraphics[height=1cm]{./sources_help/images/batterie.png}}]
				}}
		\FT{Propulser la voiture}
			{
			\FT{Transformer en énergie mécanique}
				{
				\ST{Moteur à courant continu}
					[\FV{\includegraphics[height=1cm]{./sources_help/images/moteur.png}}]
				}
			\FT{Adapter l'énergie mécanique}
				{
				\ST{Engrenages}
					[\FV{\includegraphics[height=1cm]{./sources_help/images/pignons.png}}]
				}
			\FT{Transmettre l'énergie mécanique}
				{
				\ST{Roues}
					[\FV{\includegraphics[height=1cm]{./sources_help/images/roue.png}}]
				}
			}
		\FT{Diriger la voiture}
			{
			\FT{Transformer l'énergie}
				{
				\ST{Servomoteur}
					[\FV{\includegraphics[height=1cm]{./sources_help/images/servomoteur.png}}]
				}
			\FT{Transmettre aux roues}
				{
				\ST{Biellettes}
					[\FV{\includegraphics[height=1cm]{./sources_help/images/biellettes.png}}]
				}
			}
	\end{fast}
	\fastReset
	\end{center}
	%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%


	L'exemple ci-dessus est donné par le code suivant :

%######################################
\begin{lstlisting}
\begin{center}
\footnotesize

\definecolor{fastCouleurFondFS}{rgb}{0.90,0.85,0.70}
\definecolor{fastCouleurFondFT}{rgb}{1,0.96,0.89}
\definecolor{fastCouleurFondST}{rgb}{1,1,1}
\renewcommand*{\fastHauteurBoite}{2.6em}
\renewcommand*{\fastDecalageTrait}{-1.3em}
\renewcommand*{\fastEspaceColonne}{9em}

\begin{fast}{Déplacer la voiture téléguidée}
	\FT{Gérer les informations}
		{\FT{Démarrer la voiture}
			{\ST{Bouton marche/arrêt}
				[\FV{\includegraphics[height=1cm]
				{./sources_help/images/bouton.png}}]
			}
		\FT{Capter les ordres de la télécommande}
			{\ST{Antenne}
				[\FV{\includegraphics[height=1cm]
				{./sources_help/images/antenne.png}}]
			}
		\FT{Gérer les informations et distribuer}
			{\ST{Récepteur 2 voies}
				[\FV{\includegraphics[height=1cm]
				{./sources_help/images/recepteur.png}}]
		}	}
	\FT{Stocker énergie}
		{\trait{
			\ST{Batterie électrique}
				[\FV{\includegraphics[height=1cm]
				{./sources_help/images/batterie.png}}]
		}	}
	\FT{Propulser la voiture}
		{\FT{Transformer en énergie mécanique}
			{\ST{Moteur à courant continu}
				[\FV{\includegraphics[height=1cm]
				{./sources_help/images/moteur.png}}]
			}
		\FT{Adapter l'énergie mécanique}
			{\ST{Engrenages}
				[\FV{\includegraphics[height=1cm]
				{./sources_help/images/pignons.png}}]
			}
		\FT{Transmettre l'énergie mécanique}
			{\ST{Roues}
				[\FV{\includegraphics[height=1cm]
				{./sources_help/images/roue.png}}]
		}	}
	\FT{Diriger la voiture}
		{\FT{Transformer l'énergie}
			{\ST{Servomoteur}
				[\FV{\includegraphics[height=1cm]
				{./sources_help/images/servomoteur.png}}]
			}
		\FT{Transmettre aux roues}
			{\ST{Biellettes}
				[\FV{\includegraphics[height=1cm]
				{./sources_help/images/biellettes.png}}]
		}	}
\end{fast}
\fastReset
\end{center}
\end{lstlisting}