In presentations with the beamerpackage I use \put a lot to place graphic objects like this:
\newcommand{\putat}[3]{\begin{picture}(0,0)(0,0)\put(#1,#2){#3}\end{picture}} % just a shorthand
\putat{123}{45}{stuff}
Now I was thinking about writing a small macro to facilitate finding the x and y coordinate by just writing a grid of positions onto the slide from which I can read off which values to use as arguments to put:
\newcounter{xpos}
\newcounter{ypos}
\forLoop[20]{20}{200}{xpos}{%
\forLoop[10]{20}{100}{ypos}{%
\putat{\value{xpos}}{\value{ypos}}{(\arabic{xpos},\arabic{ypos})}
}
}
(This uses the forloop package.)
The problem is that I forgot that put uses relative positions (apparently). Can I somehow return to the same origin in every pass of the loop?
Or is there a simpler way to generate this grid?
textposwork together well withbeamerand graphics? – fuenfundachtzig Mar 04 '11 at 13:53