I am trying to make the "convexhull" code from this question to work for both pgf/tikz 3.0 and older versions work (the definition of atan changed from version 2.9 to 3.0). However, so far I have failed to do so.
In the preamble I defined
\newboolean{curr_tikzv}
\makeatletter
\@ifpackagelater{tikz}{2013/12/01}
{ \setboolean{curr_tikzv}{true}}
{ \setboolean{curr_tikzv}{false}
}
\makeatother
and I replaced the critical definitions of \n1 and \n2 by
\n1 = {\ifthenelse{\boolean{curr_tikzv}}{atan2(\y1,\x1) + 90}{atan2(\x1,\y1) + 90}},
and the corresp. change for \n2. Yet this produces an error, claiming there are unmatched "}".
What am I doing wrong? The first error message I get is
! Argument of \XC@definec@lor has an extra }.
\ifthenelsecontains assignments, groups, redefine macros, ... The extended syntax has its price. – Heiko Oberdiek Aug 07 '15 at 11:30