Tell me more ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

I'm having problems with this particular TikZ example:

http://www.texample.net/tikz/examples/prims-algorithm/

When I change the theme, for instance:

\usetheme{Madrid}

the footer is not working on the first slide, but it is on the rest of them. Any idea how to solve this particular problem?

share|improve this question
possible duplicate of \pause in tikzpicture breaks footline – Caramdir Jun 24 '11 at 11:39
(The newer question has a better mwe, so I propose to close the old question as a duplicate of the new one.) – Caramdir Jun 24 '11 at 11:40

1 Answer

I don't know why, but the \pause command seems to be causing troubles. If you replace

\begin{pgfonlayer}{background}
    \pause
    \foreach \source / \dest in {d/a,d/f,a/b,b/e,e/c,e/g}
        \path<+->[selected edge] (\source.center) -- (\dest.center);
    \foreach \source / \dest / \fr in {d/b/4,d/e/5,e/f/5,b/c/6,f/g/7}
        \path<\fr->[ignored edge] (\source.center) -- (\dest.center);
\end{pgfonlayer}

by

\begin{pgfonlayer}{background}
    \foreach \source / \dest / \fr in {d/a/2,d/f/3,a/b/4,b/e/5,e/c/6,e/g/7}
        \path<\fr->[selected edge] (\source.center) -- (\dest.center);
    \foreach \source / \dest / \fr in {d/b/4,d/e/5,e/f/5,b/c/6,f/g/7}
        \path<\fr->[ignored edge] (\source.center) -- (\dest.center);
\end{pgfonlayer}

it works.

share|improve this answer
I had this problem with different first slides also in my presentations. There must be some bug in beamer. – Martin Scharrer Feb 12 '11 at 15:10

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.