Graphics, Figures & Tablestikz | Background Image and Boxes

Information and discussion about graphics, figures & tables in LaTeX documents.
Post Reply
xeon123
Posts: 3
Joined: Thu Jun 23, 2011 5:57 pm

tikz | Background Image and Boxes

Post by xeon123 »

Hi,

I'm a newbie in tikz, and I creating a presentation with the beamer class in LaTeX.

I've an image in background, and as I go forward the slide, rectangles must be shown over the image. I put an examples of the slides that I want to have in attachment. In the slides we've an image that contains a DB with 4 clouds inside. This is image is comes from the file IMAGE.pdf. As I move the slides, a box appears around each cloud. How can I put a box moving around using tikz and the beamer class?

This is what I came up with, but it's not working. Any help please?

Code: Select all

\begin{frame}
  \frametitle{Example}
  \begin{tikzpicture}
    \node[anchor=south west,inner sep=0] (image) at (0,0) {\includegraphics[width=1\textwidth] {IMAGE.pdf}};
    \begin{scope}[x={(image.south east)},y={(image.north west)}]
      \begin{itemize}
        \item<1> \draw[red,ultra thick,rounded corners] (name)(0.14,0.1) rectangle (0.22,0.75);           
        \item<2> \draw[red,ultra thick,rounded corners] (0.35,0.1) rectangle (0.42,0.75);                 
        \item<3> \draw[red,ultra thick,rounded corners] (0.50,0.05) rectangle (0.60,0.80);                
        \item<4> \draw[red,ultra thick,rounded corners] (0.66,0.05) rectangle (0.75,0.83);                
      \end{itemize}
    \end{scope}
  \end{tikzpicture}  
\end{frame}
Attachments
tikzexample.pdf
(28.6 KiB) Downloaded 586 times

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

Post Reply