1

This doesn't compile for me (adapted from p.521 of the Tikz manual, v3.0.0):

\documentclass{article}

\usepackage{tikz}
\usetikzlibrary{automata}

\begin{document}

\begin{tikzpicture}[shorten >=1pt,node distance=2cm,on grid,auto]
\draw[help lines] (0,0) grid (3,2);
\node[state,initial] (q_0) {$q_0$};
\node[state] (q_1) [above right=of q_0] {$q_1$};
\node[state] (q_2) [below right=of q_0] {$q_2$};
\node[state,accepting](q_3) [below right=of q_1] {$q_3$};
\end{tikzpicture}

\end{document}

Tikz doesn't seem to recognize on grid or the of operator. I was previously using Tikz 2.1 so I went through a laborious manual upgrade to TeXLive 2014 so that I could pull version 3.0.0 into my Ubuntu system.

Unfortunately I'm getting exactly the same error, so I must be missing something really quite silly. Help?

Roly
  • 4,221
  • 4
  • 26
  • 56

1 Answers1

2

You forgot to include positioning library (section 17.5.3 Advanced Placement Options) which is needed when of parts are used in node placement specifications.

Ignasi
  • 136,588