Graphics, Figures & Tablesbeamer | Incremental Image in Presentation

Information and discussion about graphics, figures & tables in LaTeX documents.
Post Reply
Despot Despondency
Posts: 5
Joined: Sun Jul 03, 2011 10:55 am

beamer | Incremental Image in Presentation

Post by Despot Despondency »

Hi,

I'm trying to create a figure in a beamer presentation using tikz. I want the figure to change incrementally during the presentation. So for example I would like to have a picture of a graph, then when I page down a new edge is added to the graph.

I've had a look around and I can't find anything about this in tikz or beamer.

I know that I can create the different figures separately as pdf files and then load them into the presentation with

Code: Select all

\includegraphic{...}
but I would rather do it directly with tikz in my presentation tex file.

Is this possible?
Last edited by Despot Despondency on Sun Jul 03, 2011 1:42 pm, edited 1 time in total.

Recommended reading 2024:

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

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

localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

beamer | Incremental Image in Presentation

Post by localghost »

Despot Despondency wrote:[…] I've had a look around and I can't find anything about this in tikz or beamer. […]
I think Chapter 9 of the beamer user guide is very clear in this regard. Take a look at the below example for some inspiration.

Code: Select all

\documentclass[smaller]{beamer}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage{tikz}
\usepackage[math]{iwona}

\begin{document}
  \begin{frame}
    \begin{tikzpicture}
      \useasboundingbox (0,0) rectangle (3,3);
      \draw (0:0) -- (30:3) node[above right] {30};
      \draw<2> (0:0) -- (60:3) node[above right] {60};
    \end{tikzpicture}
  \end{frame}
\end{document}
I suggest to take a close look at the above mentioned chapter of the user guide. Probably searching specifically for overlays will help, too.


Thorsten
Despot Despondency
Posts: 5
Joined: Sun Jul 03, 2011 10:55 am

Re: beamer | Incremental Image in Presentation

Post by Despot Despondency »

OK, thanks.

I actually tried something like that earlier without success. Must have had a bug somewhere.

Anyway it's all working find now. Thanks again
Post Reply