Suppose I need to draw a Kantor set, or a Sierpinski carpet, or a Koch curve, or any such of simple fractal.
Tipically you can do that by drawing a picture, then rescalining it and replicating in several places.
I tried by using \foreach \a in {...} combined to \begin{scope}[shift{some function of \a},scale{some function of \a}]
but I did not succeed.
So which is the correct way to combine a cycle for with moving and rescaling a picture?
More precisely I tried:
\foreach \a in {0,1,2}
\begin{scope}[shift={(10\a,0)}, scale=1/3]
mypicture
\end{scope}
this gives errors
"Extra }, or forgotten \endgroup."
and with group parenthesis
\foreach \a in {0,1,2}
{\begin{scope}[shift={(10\a,0)}, scale=1/3]
mypicture
\end{scope}}
which seems just not working.
10*\a? – Henri Menke Nov 06 '17 at 20:01