TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. Join them; it only takes a minute:

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'm just starting to use Latex and I was wondering if it's possible to produce a graphic like the following.


It seems like I would have to start with something like a table and then somehow add in the arrows. Any pointers to produce something like this would appreciated.

share|improve this question
up vote 7 down vote accepted

One possibility using TikZ; you place some nodes and then draw the arrows:



  inner sep=2pt
shorten >= 3pt,
shorten <= 3pt
\node[mydot,label={left:1}] (a1) {}; 
\node[mydot,below=of a1,label={left:2}] (a2) {}; 
\node[mydot,below=of a2,label={left:3}] (a3) {}; 
\node[mydot,below=of a3,label={left:4}] (a4) {}; 

\node[mydot,right=2cm of a1,label={right:1}] (b1) {}; 
\node[mydot,below=of b1,label={right:2}] (b2) {}; 
\node[mydot,below=of b2,label={right:3}] (b3) {}; 
\node[mydot,below=of b3,label={right:4}] (b4) {}; 

\path[->] (a1) edge (b1)
  edge (b2)
  edge (b3)
  edge (b4);
\path[->] (a2) edge (b3)
  edge (b4);
\path[->] (a3) edge (b1)
  edge (b3);
\path[->] (a4) edge (b2) 
  edge (b4);


enter image description here

A more "traditional" approach using the picture environment:









enter image description here

share|improve this answer
That's exactly what I need. Thanks! Another quick question though, what does this part >=latex, shorten >= 3pt, shorten <= 3pt do? – user3254763 Feb 4 '14 at 3:57
@user3254763 those options shorten the start (shorten <= 3pt) and end (shorten >= 3pt) of the arrows so they don't touch the filled circles. – Gonzalo Medina Feb 4 '14 at 4:10

With PSTricks just for fun as usual.

[name=l1]   & [name=r1]\\
[name=l2]   & [name=r2]\\
[name=l3]   & [name=r3]\\
[name=l4]   & [name=r4]
% just add your own connecting lines here

enter image description here

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.