I now seem to having found a way to do it:
\def \n {5}
\foreach \x/\y in {1/a,2/b,3/c,4/d,5/e} {
\node[mynodestyle] (\y) at ({360/\n * (\x - 1)}:3) {$\y$};
}
At least I don't have to worry about node positioning any more.
\def \n {5}
\foreach \x/\y in {1/a,2/b,3/c,4/d,5/e} {
\node[mynodestyle] (\y) at ({360/\n * (\x - 1)}:3) {$\y$};
}
Learn LaTeX easily with newest books:
The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis
The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more
LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis