Flow Chart
This example requires at least version 3.0 of the PGF/TiKZ bundle.\documentclass{article} \usepackage{tikz}[2013/12/13]% use at least version 3.0 \usetikzlibrary{arrows.meta} \usetikzlibrary{shapes.geometric} \usetikzlibrary{positioning} \begin{document} \begin{tikzpicture}[ultra thick,>={Triangle[]}] \node[rounded corners,draw,fill=red!30] (start) {Ray-gun doesn't work}; \node[diamond,aspect=2,draw,fill=yellow,below=of start] (query) {Is it charged?}; \begin{scope}[every node/.style={draw,fill=green!40,rounded corners}] \node[right=of query] (recharge) {Recharge battery}; \node[below=of query] (repair) {Repair ray-gun}; \end{scope} % draw in arrows: \draw[->] (start) -- (query); \draw[->] (query) -- (recharge) node[midway,above] {No}; \draw[->] (query) -- (repair) node[midway,right] {Yes}; \end{tikzpicture} \end{document}
Download flowchart-sample.tex or flowchart-sample.pdf.