I would like to place labels below edges such that the letters don't wobble. I can place them on the edge using the mid anchor, but when I use below some other anchor is used to calculate the distance.
\documentclass{minimal}
\usepackage{tikz}
\usetikzlibrary{positioning}
\begin{document}
\begin{tikzpicture}
\tikzstyle{vertex}=[circle, draw, inner sep=0.5ex]
\node [vertex] (0) {};
\foreach \n/\e in {1/a,2/b,3/c,4/d,5/e,6/f,7/g,8/h} {
\pgfmathtruncatemacro{\left}{\n-1}
\node [vertex] (\n) [right=of \left] {};
\draw (\left) -- node[anchor=mid] {\e} (\n); %on the edge, no wobble
\draw (\left) -- node [below] {\e} (\n); % below the edge, wobble
};
\end{tikzpicture}
\end{document}
positioninglibrary and\end{tikzpicture}was missing. – Torbjørn T. Aug 06 '13 at 09:194.90– percusse Aug 06 '13 at 09:47minimal. You can find some problems usingminimalbecause, sometimes, it's too minimal. Look at What is the advantage of using minimal over article when creating a standalone graphic? – Ignasi Aug 06 '13 at 09:47