1. Pável Calado
  2. tikz-er2

Wiki

Clone wiki

tikz-er2 / Home

The Tikz-er2 Package

A LaTeX Package for Drawing Entity-Relationship Diagrams

Tikz-er2 is a LaTeX package that uses the Tikz/PGF library to draw Entity-Relationship diagrams. It is, in practice, a set of Tikz styles, which you can use together with your usual Tikz instructions to draw the diagrams.

Tikz already has an E-R diagram library. However, I felt it was very incomplete, lacking some of the features I usually require when designing databases. Thus, I implemented Tikz-er2, which uses the E-R notation described in the book Database System Concepts, 5th edition, by Silberchatz et al.

You can download the package here:

If you want an example, here is an E-R diagram generated with Tikz-er2.


This work is licensed under a Creative Commons Attribution 2.5 Generic License.


About using the 5th Edition of Database System Concepts

Two reasons:

  1. When I started this, the book was still at its 5th edition;
  2. I strongly dislike the notation of the 6th edition. They may as well use UML class diagrams and forget E-R once and for all.

Updated