TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am trying to construct this in TikZ but I am having a terrible time doing it. I was hoping someone can improve the code, I have below and make it look similar to the picture.

\draw  (-0.5,1.5) rectangle (2,0);
\draw  (-9.5,1.5) rectangle (-7,0);

\draw  (-4.5,5) rectangle (-2,3.5);
\draw  (-4.5,-2) rectangle (-2,-3.5);
\draw  (4,1.5) rectangle (6.5,0);
\draw [-latex](-4.5,4.5) -- (-8,1.5);
\draw [-latex] (-8,0) -- (-4.5,-3);
\draw  [-latex](-2,-3) -- (1,0);
\draw [-latex] (-2,4.5) -- (1,1.5);
\draw  [-latex](2,0.5) -- (4,0.5);

I tried adding text inside the rectangles but I couldn't figure out how to. If someone has a solution other than TikZ then that also works.

share|improve this question
@egreg The name of the diagram I want to draw is called the "diamond e model". So it's not a typo. – Jeel Shah Oct 31 '13 at 12:59
up vote 7 down vote accepted
block/.style = {draw,rectangle,text width = 4em,align=left, rounded corners=0ex,     minimum height=2.0em}
\node[block] at (0,0) (a) {A. Some text};
\node[block,above right = .15cm and 1cm of a,] (b) {B. Some text};
\node[block, below right = .15cm and 1cm of a,] (c) {c. Some text};
\node[block, below right = .15cm and 1cm of b,]  (d) {D. Some text};
\node[block,  right = 1cm of d]  (e) {E. Some text};
%% lines
\draw[-latex] (a.10) -- (b.185);
\draw[-latex] (a.-10) -- (c.175);
\draw[-latex] (b.-10) -- (d.175);
\draw[-latex] (c.10) -- (d.185);
\draw[-latex] (d) -- (e);

enter image description here

share|improve this answer
That works! I made a minor change however to your code. I changed 4em to 6em to change the text width but other then that it's great! – Jeel Shah Oct 30 '13 at 0:19

The new CVS graphdrawing library can do stuff like this quite easily, but must be compiiled with luatex:




\begin{tikzpicture}[every node/.style={draw, text width=4em}, >=stealth]

\graph [layered layout,grow=right, level distance=1in, sibling distance=0.5in, 
  tail anchor=east, head anchor=west]
        "A. Some text" -> {" B. Some text", "C. Some text"} 
        -> "D. Some text" -> "E. Some text"



enter image description here

share|improve this answer
Wow this makes drawing flowcharts so much easier! Amazing. Thanks for pointing this out. – Ingo Jan 11 '14 at 12:07

With matrix node, one can achieve this. The blocks separation can be changed via column sep and row sep key. Colors selection are also possible for texts and block borderlines (it is black here)

enter image description here



\begin{tikzpicture}[boxes/.style={draw, rectangle,%
                thick,minimum height=1cm, rounded corners,
                minimum width=1cm, black, text=black,
                text width=25mm, align=center},scale=2]
  \matrix (mat) [matrix of nodes, nodes=boxes, column sep=1cm, row sep=1cm] 
              &   B. Some Text    &                &                  \\ 
 A. Some Text &                   &  D.Some Text   & E. Some Text     \\
              &   C. Some Text    &                &                  \\ 
\draw [very thick, black, ->] (mat-2-1.east)--(mat-1-2.west);  
\draw [very thick, black, ->] (mat-2-1.east)--(mat-3-2.west);
\draw [very thick, black, ->] (mat-3-2.east)--(mat-2-3.west);
\draw [very thick, black, ->] (mat-1-2.east)--(mat-2-3.west);
\draw [very thick, black, ->] (mat-2-3.east)--(mat-2-4.west);
share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.