I have to make the following block diagram in TikZ. As I am new to it, I can make a simple horizontal block diagram however, I am unable to connect blocks as shown in the picture below. Kindly can someone provide a TikZ code for this. I have a complicated block diagram, I have just added a part of it. Once I understand this, I can draw the complete diagram.
That's the code I have so far:
\documentclass{article}
\usepackage[latin1]{inputenc}
\usepackage{tikz}
\usetikzlibrary{arrows,calc,positioning,shadows,shapes}
\begin{document}
\pagestyle{empty}
\tikzstyle{line} = [draw, -latex']
\tikzset{label/.style={draw=gray, ultra thin, rounded corners=.25ex, fill=gray!20,text width=4cm, text badly centered, inner sep=2ex, anchor=east, minimum height=4em}}
\begin{figure}[!htb]
\centering
\resizebox{\textwidth}{!}{%
\begin{tikzpicture}[node distance=5cm,auto,>=latex']
% Place nodes
\node [label] (init) {One};
\node [label, right of=init] (node) {One A1};
\node [label, right of=node] (node1) {One A2};
\node [label, right of=node1] (node2) {One B1};
\node [label, right of=node2] (node3) {One B2};
\node [label, right of=node3] (node4) {Two};
% Draw edges
\path [line] (init) -- (node);
\path [line] (node) -- (node1);
\path [line] (node1) -- (node2);
\path [line] (node2) -- (node3);
\path [line] (node3) -- (node4);
\end{tikzpicture}
}
\caption{Figure caption}
\label{fig:dummy}
\end {figure}
\end{document}
The output for the code is
\documentclass
and the appropriate packages that sets up the problem and shows how far you have gotten. While solving problems can be fun, setting them up is not. Then, those trying to help can simply cut and paste your MWE and get started on solving the problem, and provide you help with the specific problem you are having. – Peter Grill Oct 27 '14 at 20:12