it's metapost with additional macros created by eddie for drawing the element boxes. i was going to point you to an example but i couldn't get it to work... maybe later. -- Douglas S. J. De Couto decouto at lcs.mit.edu