I have made a figure as a macro consisting of several lines like this:
\newcommand{\rect}[2]
{
\draw(0,0)--(#1,0);
\draw(#1,0)--(#1,#2);
\draw(#1,#2)--(0,#2,);
\draw(0,#2)--(0,0);
}
(I know that this drawing could be made simpler and that a rectangle is part of tikz - it is used to illustrate my question).
How can I draw this figure at a point different from (0,0)?
In eepic I would have used this line:
\put(5,7){\rect{3}{2}}
Thanks