I'm creating a few flowcharts for my thesis but I'm having trouble getting them to look right.
My processes are based upon this one:
however I can't work out how to
- Insert a key
- Make my arrows 'tunnel'
By point two I mean like the arrow going from 'Program Interupt?' to 'Acquire data'
Here's my current TiKZ code:
\documentclass{article}
\usepackage[latin1]{inputenc}
\usepackage{tikz}
\usetikzlibrary{shapes,arrows}
\usepackage{verbatim}
\usepackage[active,tightpage]{preview}
\PreviewEnvironment{tikzpicture}
\setlength\PreviewBorder{5pt}%
\begin{document}
\pagestyle{empty}
% Define block styles
\tikzstyle{decision} = [diamond, draw, fill=blue!20,
text width=4.5em, text badly centered, node distance=2.5cm, inner sep=0pt]
\tikzstyle{block} = [rectangle, draw, fill=yellow!20,
text width=5em, text centered, rounded corners, minimum height=4em]
\tikzstyle{line} = [draw, very thick, color=black!50, -latex']
\tikzstyle{cloud} = [draw, ellipse,fill=red!20, node distance=2.5cm,
minimum height=2em]
\tikzstyle{data} = [trapezium, draw, fill=green!20,
text width=5em, text centered, node distance=2.5cm, minimum height=0.5em]
\tikzstyle{input} = [regular polygon,regular polygon sides=5, draw, fill=cyan!20, text width=5em, text centered, node distance=2.5cm, minimum height=0.25em]
\begin{tikzpicture}[scale=2, node distance = 2cm, auto]
% Place nodes
\node [cloud] (start) {start};
\node [input, below of=start, node distance=2.5cm] (input) {Input parameters};
\node [input, below of=input, node distance=4cm] (initiate) {Initiate};
\node [block, below of=initiate, node distance=3cm] (calc) {Calculate focal laws};
\node [block, right of=calc, node distance=3cm] (acq) {Acquire data};
\node [data, below of=acq] (FMC) {FMC};
\node [data, below of=FMC] (process) {Process data};
\node [data, left of=process, node distance=3cm] (focal) {Focal laws};
\node [data, below of=process] (render) {Render image};
\node [decision, below of=render] (decide) {Interupt prgoramme?};
\node [cloud, below of=decide] (end) {end};
% Draw edges
\path [line] (start) -- (input);
\path [line] (input) -- (initiate);
\path [line] (initiate) -- (calc);
\path [line] (calc) -- (focal);
\path [line] (initiate) -| (acq);
\path [line] (acq) -- (FMC);
\path [line] (FMC) -- (process);
\path [line] (process) -- (render);
\path [line] (render) -- (decide);
\path [line] (focal) -- (process);
\path [line] (decide) -- node [, color=black] {yes}(end);
\path [line] (decide) -| node [, color=black] {no}(focal);
\end{tikzpicture}
\end{document}
The solution in this answer gives a similar look to what I'm after, but how do I convert it from co-ordinates (such as (0,2)) to my nodes?

tunnelingdo you mean this? – Ignasi Mar 29 '16 at 16:47\tikzstyleis deprecated. – cfr Mar 29 '16 at 21:04\tikzset{}is the replacement. – cfr Apr 01 '16 at 11:07(FMC)or whatever in place of(0,2), for example. – cfr Apr 01 '16 at 11:59