I'm still new to LaTeX and I can't wrap my head around the foreach loop.
I want to draw a grid and some semi-circles on some chosen points.
Here's my minimal Non working example :
\documentclass[10pt, a4paper]{article}
\usepackage{tkz-euclide}
\begin{document}
\begin{tikzpicture}
\draw[very thick] (0,0) grid (10,8);
\foreach \i in { (1,0.5), (5,0.5)} { \tkzDrawSemiCircle(\i, \i+(0,-0.5)) };
\end{tikzpicture}
\end{document}
As I understand it, \i+(0,-0.5)) means the point situated 0.5 units below the point defined by \i at the moment. But when I try to run it, I get "Package pgf error : No shape named '(1,0.5)+(0,-0.5' is known. I suppose my syntax must be at fault but I can't find my mistake.
I read tkz-euclide documentation and I wonder if I don't have to have already defined and named the points I want to use in \tkzDrawSemiCircle. In that case, how can I do ti using \foreach ?
Any idea where I went wrong ? Thanks in advance !