Friday, July 4, 2014

Create Flowchart on Latex Using TikzPicture

You can place it under figure or directly on main text.

\begin{figure}
\begin{tikzpicture}[node distance=3cm, auto]
\node [cloud](awal){mulai};
\node [data, below of=mulai](input){masukkan suhu dalam skala {\tt C}};
\node [decision, below of =input](F){F?};
\node [decision, right of =F](R){R?};
\node [decision, right of =R](K){K?};
\node [block, below of = F](pF){$\frac{9}{5}*C+32$};
\node [block, below of = R](pR){$\frac{4}{5}*C$};
\node [block, below of = K](pK){$C+273$};
\node [cloud,below of=pF](akhir){selesai};

\path [line](awal)--(input);
\path [line](input)--(F);
\path [line](F)--node{ya}(pF);
\path [line](pF)--(akhir);
\path [line](F)--node{tidak}(R);
\path [line](R)--node{tidak}(K);
\path [line](R)--node{ya}(pR);
\path [line](K)--node{ya}(pK);
\path [line](pR)|-(akhir);
\path [line](pK)|-(akhir);

\end{tikzpicture}
\caption{Program Konversi Suhu \label{fkonversi}}
\end{figure}