Is it possible to calculate (addition etc.) in style values? I wanted to do the following:
\documentclass{article}
\usepackage{tikz}
\usetikzlibrary{positioning,fit,chains}
\newcommand*{\mypath}[3][0.0]{% looseness adjustment (optional),1st node, 2nd node
\draw (#2.south east) to [in=90, out=90, looseness=0.85+#1] (#3.south west);
}
\begin{document}
\begin{tikzpicture}[start chain]
\node[on chain] (k11) {};
\node[on chain] (k12) {};
\mypath{k11}{k12}
\end{tikzpicture}
\end{document}
The problem is looseness=0.85+#1 which fails with Missing number, treated as zero and Illegal unit of measure (pt inserted).
/.styles instead of nesting macros to avoid such problems. – percusse Dec 30 '12 at 16:05