I would like to arrange images in a beamer presentation without having to set them in a predefined position.
Is there a package or a fast way to place randomly into the beamer a given number of images?
\begin{figure}
\includegraphics[width=0.3\linewidth]{img1}
\includegraphics[width=0.3\linewidth]{img2}
\includegraphics[width=0.3\linewidth]{img3}
\end{figure}
I would like to move them in the beamer and not having them on the same line.
Best Answer
You can use TikZ's nodes and
rnd
to randomize the position; the command\PlaceImageRnd
has as mandatory argument a comma separated list of the image name files:The line
makes each run of the code to update the locations.
The code:
On the first run I got: