I want to make an ER diagram using TikZ with its
er
library. Unfortunately I have a problem with the alignment of the node labels.The label seems to use a different alignment than the node, i.e. the label is some units right of the place it supposed to be, and even not in the node. Here is my code:
Code: Select all
\documentclass[11pt]{article}
\usepackage[T1]{fontenc}
\usepackage{tikz}
\usetikzlibrary{er}
\begin{document}
\tikzstyle{every entity} = [draw=blue, fill=blue!20]
\begin{tikzpicture}
\node[entity] (person) {Person};
\end{tikzpicture}
\end{document}