I am quite new to TikZ. I have the following code:
\documentclass{article}
\usepackage{tikz}
\usetikzlibrary{chains}
\begin{document}
\begin{tikzpicture}[start chain=circle placed {at=(\tikzchaincount*30:1.5)},
regular/.style={draw,circle,inner sep=0,minimum size=4mm}]
\foreach \i in {0,...,11}
\node [on chain, regular] (\i) {\i};
\foreach \i in {0,...,11}
\draw [->] (\i) to ({\pgfmathparse{int(mod(\i+1,12))}\pgfmathresult});
\end{tikzpicture}
\end{document}
What I intended to do is to draw a series of 12 nodes evenly placed on a circle, and draw an arrow between every two neighbors. LaTeX gave an error message saying
!incomplete \iffalse; all text was ignored after ...
What is the correct way to do what I intended?
\tikzchaincount
which doesn't seem to be defined... – jub0bs Oct 29 '13 at 10:52circled placed{at
: that should becircled placed {at
I think. – Claudio Fiandrino Oct 29 '13 at 10:54