the picture doesn't fit onto an A4 page. So what I would like to change/add is:
- the node distance
- the font size
- a vertical text which groups nodes together
- a number infront of each node as the "step number"
- a bigger distance between the "groups"
- a better way to code maybe as a macro, so when I have to include a node I don't need to change all the numbers
This is how far I got but the distance between the first and second node is different to the rest. I also used in my original document:
\documentclass[12pt, oneside,openright]{mpreport}
\usepackage[latin1]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{textcomp}
\usepackage[scaled=0.9]{helvet}
\usepackage{ngerman}
\usepackage[babel,german=quotes]{csquotes}
but for the picture I had to use \"u for ü and so on...
Here's the code:
\documentclass{article}
\usepackage{tikz}
\usetikzlibrary{positioning,shadows,arrows,backgrounds,fit}
\begin{document}
\begin{figure}
\begin{tikzpicture}
[schritt/.style= {draw, fill=gray!10, text width=22em, minimum width=25em, minimum height=1.5em, drop shadow, rounded corners, font=\small},
pfeil/.style= {<-,shorten <=1pt,>=stealth',semithick},
hintergrund/.style= {draw, dashed, fill=gray!40,rounded corners}]
\newcommand{\beschr}[1]{\hfill\textit{#1}};
% Bauteil einlegen
\node (1) [schritt] {Frg 1\beschr{Freigabe Einfahrt Bauteil}};
\node (2) [schritt] [below=1] {MZ 11 V\beschr{Sauger ein}}
edge [pfeil] (1);
\node (3) [schritt] [below=2] {Frg 2\beschr{Freigabe Ausfahrt Bauteil}}
edge [pfeil] (2);
% Arbeitsstellung
\node (4) [schritt] [below=3] {MZ 12 V\beschr{Spanner Innenblech vorw\"arts}}
edge [pfeil] (3);
\node (5) [schritt] [below=4] {M1 \& M2 V\beschr{B\"ugel M1 \& M2 vorw\"arts}}
edge [pfeil] (4);
\node (6) [schritt] [below=5] {M3 \& M6 V\beschr{B\"ugel M3 \& M6 vorw\"arts}}
edge [pfeil] (5);
\node (7) [schritt] [below=6] {M4 \& M5 V\beschr{B\"ugel M4 \& M5 vorw\"arts}}
edge [pfeil] (6);
\node (8) [schritt] [below=7] {MZ 13 V\beschr{Klemmeinheit l\"osen}}
edge [pfeil] (7);
\node (9) [schritt] [below=8] {MZ 14 V\beschr{Niederhalteraufnahme vorw\"arts}}
edge [pfeil] (8);
\node (10) [schritt] [below=9] {MZ 15-19 V\beschr{Niederhalteraufnahmen vorw\"arts}}
edge [pfeil] (9);
\node (11) [schritt] [below=10] {MZ 21-22 V\beschr{Niederhalterzustellungen vorw\"arts}}
edge [pfeil] (10);
\node (12) [schritt] [below=11] {MZ 23-24 V\beschr{Niederhalterzustellungen vorw\"arts}}
edge [pfeil] (11);
\node (13) [schritt] [below=12] {MZ 20 V\beschr{Sperrventil vorw\"arts}}
edge [pfeil] (12);
% Falzvorgang
\node (14) [schritt] [below=13] {M7 Pos 1\beschr{Hauptantrieb zur Vorfalzposition}}
edge [pfeil] (13);
\node (15) [schritt] [below=14] {M7 Pos 4\beschr{Hauptantrieb zur Grundstellung}}
edge [pfeil] (14);
\node (16) [schritt] [below=15] {MZ 25-30 V\beschr{Vorfalzantriebe vorw\"arts}}
edge [pfeil] (15);
\node (17) [schritt] [below=16] {M7 Pos 3\beschr{Hauptantrieb zur Falzposition}}
edge [pfeil] (16);
% Grundstellung
\node (18) [schritt] [below=17] {M7 Pos 4\beschr{Hauptantrieb zur Grundstellung}}
edge [pfeil] (17);
\node (19) [schritt] [below=18] {MZ 25-30 R\beschr{Vorfalzantriebe r\"uckw\"arts}}
edge [pfeil] (18);
\node (20) [schritt] [below=19] {MZ 23-24 R\beschr{Niederhalterzustellungen r\"uckw\"arts}}
edge [pfeil] (19);
\node (21) [schritt] [below=20] {MZ 21-22 R\beschr{Niederhalterzustellungen r\"uckw\"arts}}
edge [pfeil] (20);
\node (22) [schritt] [below=21] {MZ 20 V\beschr{Sperrventil r\"uckw\"arts}}
edge [pfeil] (21);
\node (23) [schritt] [below=22] {MZ 15-19 V\beschr{Niederhalteraufnahmen r\"uckw\"arts}}
edge [pfeil] (22);
\node (24) [schritt] [below=23] {MZ 14 V\beschr{Niederhalteraufnahme r\"uckw\"arts}}
edge [pfeil] (23);
\node (25) [schritt] [below=24] {MZ 13 V\beschr{Klemmeinheit r\"uckw\"arts}}
edge [pfeil] (24);
\node (26) [schritt] [below=25] {M4 \& M5 V\beschr{B\"ugel M4 \& M5 r\"uckw\"arts}}
edge [pfeil] (25);
\node (27) [schritt] [below=26] {M3 \& M6 V\beschr{B\"ugel M3 \& M6 r\"uckw\"arts}}
edge [pfeil] (26);
\node (28) [schritt] [below=27] {M1 \& M2 V\beschr{B\"ugel M1 \& M2 r\"uckw\"arts}}
edge [pfeil] (27);
\node (29) [schritt] [below=28] {MZ 12 V\beschr{Spanner Innenblech r\"uckw\"arts}}
edge [pfeil] (28);
% Bauteilentnahme
\node (30) [schritt] [below=29] {Frg 1\beschr{Freigabe Einfahrt Bauteilentnahme}};
edge [pfeil] (29);
\node (31) [schritt] [below=30] {MZ 11 V\beschr{Sauger ein}}
edge [pfeil] (30);
\node (32) [schritt] [below=31] {Frg 2\beschr{Freigabe Ausfahrt Bauteilentnahme}};
% Hintergrund
\begin{pgfonlayer}{background}
\node [hintergrund, fit=(1)(2)(3), label={[rotate=90,xshift=1.5cm,yshift=0.5cm]left:Bauteil einlegen}] {};
\node [hintergrund, fit=(4)(5)(6)(7)(8)(9)(10)(11)(12)(13), label={[rotate=90,xshift=1.5cm,yshift=0.5cm]left:Falze in Arbeitsstellung}] {};
\node [hintergrund, fit=(14)(15)(16)(17), label={[rotate=90,xshift=1.5cm,yshift=0.5cm]left:Bauteil einlegen}] {};
\node [hintergrund, fit=(18)(19)(20)(21)(22)(23)(24)(25)(26)(27)(28)(29), label={[rotate=90,xshift=1.5cm,yshift=0.5cm]left:Falze in Grundstellung}] {};
\node [hintergrund, fit=(30)(31)(32), label={[rotate=90,xshift=1.5cm,yshift=0.5cm]left:Bauteilentnahme}] {};
\end{pgfonlayer}
\end{tikzpicture}
\caption{Prozessablauf}
\label{abb:Prozessablauf}
\end{figure}
\end{document}

node distanceusebelow=3mm of ...(frompositioninglibrary which you already charged). – Ignasi Jun 27 '13 at 17:42number in frontcould use\node[label=left:number] ...– Ignasi Jun 27 '13 at 17:44fitall nodes, with upper and lower is enough. Instead offit=(4)(5)...(13)usefit=(4)(13). – Ignasi Jun 27 '13 at 17:46matrix of nodesone for group. Then you don't needbackground nodesbecause the matrix is already a node with its own border. Not the best example but you can look at this answer – Ignasi Jun 27 '13 at 17:52