I wrote some TikZ code to make drawing the box diagrams used in this paper easier.

A short description of the code is here (the source file of this description contains a lot of examples). The main code is here.